Fahali

Kecerdasan pasar yang dapat dipanggil oleh agen AI Anda

Dokumentasi

Fahali MCP Server

Market-intelligence MCP server that ships uncertainty-aware intelligence with provenance on every response. Fahali runs an ensemble of independent detection engines across ~2,000 live crypto and US equity/ETF instruments in real time — public-market absorption patterns, liquidity anomalies, crash precursors, regime shifts — and detections are tracked against realized market outcomes in a signal→outcome ledger.

Informational only — not financial advice. Fahali detects anomalies; it does not tell you or your agent what to buy or sell.

Tools

Markets & verdict

ToolWhat it returnsMinimum tier
fahali_get_market_decisionPrimary market-wide judgment: what changed, why it matters, horizon, evidence, conflicts, and invalidationProfessional
fahali_get_symbol_decisionPrimary binding judgment for exactly one named instrumentProfessional
fahali_get_market_verdictAudit-compatible canonical verdict path retained for existing integrationsProfessional
fahali_get_market_snapshotLive prices, changes, asset class for all instrumentsFree
fahali_get_market_regimeHMM 4-regime detection: bullish/bearish/neutral/high_volProfessional
fahali_get_market_sentimentSentiment history with score, source, directionFree
fahali_get_highest_conviction_signalsPriority risk clusters with risk conviction separated from directional convictionFree
fahali_daily_briefYesterday vs today market intelligence diff (alert deltas, regime, intel reference)Free teaser / Professional

Risk & crash

ToolWhat it returnsMinimum tier
fahali_get_market_risk_scoreGlobal 0-100 market-risk context from the canonical detection snapshot; not participant or portfolio riskProfessional
fahali_get_flash_crash_riskUncalibrated early-warning strength and triggers; probability/action withheld unless calibratedProfessional
fahali_get_portfolio_riskRisk score, VaR, drawdown, per-position breakdownElite
fahali_analyze_custom_portfolioStateless risk, canonical direction reconciliation, and covariance coverage for a supplied book; binding action withheldElite
fahali_run_shock_testNatural-language scenario stress test with capital at riskFree

Detection activity & flow proxies

ToolWhat it returnsMinimum tier
fahali_get_detection_activityPer-symbol detection counts and bullish-versus-bearish alert-type balance; this is alert activity, not executed trade flowProfessional
fahali_get_unusual_money_movementParticipant-agnostic, candle-derived buy-versus-sell volume imbalance with conflicts and freshness explicitProfessional
fahali_get_microstructure_proxyAbsorption observations derived from public aggregate trades and order-book snapshots, with source and limitations explicitProfessional
fahali_get_capital_flowMeasured 60-minute USD buy-vs-sell imbalance for requested symbols, or the strongest available readings. Candle-derived proxy; zero detector score does not erase measured flowProfessional
fahali_get_forecastCrash/pump/neutral probabilities with a p10/p50/p90 uncertainty cone over the registered horizonProfessional
fahali_get_lead_timePer engine: measured hours of warning ahead of correct calls, misses included. Quote headline — selected by recall among strata clearing the publication floor with positive lift. Never cherry-pick; always name the class and horizonFree
fahali_get_market_briefingFull executive market analysis for today; PARTIAL when subsystems disagreeProfessional

Contagion & correlation

ToolWhat it returnsMinimum tier
fahali_get_contagion_mapContagion graph with tail-dependence edges and clustersElite
fahali_get_correlation_matrixRequested-book Pearson matrix from the canonical 45-day covariance artifact, with pair observations and coverageFree

Portfolio & alerts

ToolWhat it returnsMinimum tier
fahali_get_portfolio_metricsSentiment momentum, cascade risk, liquidity stress, leverageProfessional
fahali_get_realtime_alertsUnified detection feed from the active fleet right nowProfessional

Persistent monitoring, history & delivery

ToolWhat it returnsMinimum tier
fahali_watch_portfolioDurable portfolio + mandate + thresholds; evaluates immediately and continuouslyElite
fahali_list_portfolio_watchesExisting watches, sources, mandates, cadence and latest verdict IDsElite
fahali_update_portfolio_watchUpdate positions or mandate and immediately see the new judgmentElite
fahali_get_portfolio_decisionBinding HOLD/WATCH/REDUCE/EXIT judgment with what, why, when and invalidationElite
fahali_get_watch_deltaWhat changed since the previous immutable judgment and whyElite
fahali_get_verdict_historyCursor- and time-queryable immutable replay, including as_ofElite
fahali_get_verdict_by_idOne permanent judgment with its evidence and content hashesElite
fahali_subscribe_riskSigned webhook/callback, Slack, Teams, account email or registered push deliveryElite
fahali_list_risk_subscriptionsDelivery configuration and health without exposing secretsElite
fahali_update_subscriptionPause, resume, filter or rotate a delivery targetElite
fahali_unsubscribe_riskStop delivery while preserving its audit trailElite

The monitor stores only user-scoped positions, mandate and evidence references. Callback configuration is encrypted. Delivery is deduplicated through a durable outbox, retried after transient failures, and marked failed rather than reported as sent when a channel does not accept it.

Proof & system

ToolWhat it returnsMinimum tier
fahali_get_track_record_scorecardHonest 4-axis accuracy with base-rate liftProfessional
fahali_get_case_studies40 verified signal→outcome cases with track recordProfessional
fahali_get_engine_statusLiveness report for the active detection fleetFree
fahali_get_visual_intelligenceUnified constellation graph of the active fleetFree

Connect (remote SSE)

SSE endpoint:  https://mcp.fahaliai.com/sse
Auth:          Authorization: Bearer <your sk_live_ key>
               OAuth is preferred. Query-string keys are legacy-only because URLs may be logged.

Bring your own API key. Create one free in the Fahali app: app.fahaliai.com/developer (sign in → Developer / API).

  • Free developer key — the canonical market-decision path (fahali_get_market_decision, fahali_get_symbol_decision, and the compatible fahali_get_market_verdict) with reduced depth, 50 calls/day.
  • Full key (Professional tier and above) — all tools at your subscription tier.

Local / stdio

npm install && npm run build
FAHALI_API_KEY=sk_live_... node dist/index.js --stdio

Claude Desktop config:

{
  "mcpServers": {
    "fahali": {
      "command": "node",
      "args": ["/path/to/mcp-server/dist/index.js", "--stdio"],
      "env": { "FAHALI_API_KEY": "sk_live_..." }
    }
  }
}

Cursor config (~/.cursor/mcp.json):

{
  "mcpServers": {
    "fahali": {
      "type": "sse",
      "url": "https://mcp.fahaliai.com/sse?api_key=sk_live_..."
    }
  }
}

Windsurf config: open Settings → Cascade → MCP, click Add custom server, and paste:

{
  "mcpServers": {
    "fahali": {
      "type": "sse",
      "url": "https://mcp.fahaliai.com/sse?api_key=sk_live_..."
    }
  }
}

Or edit Windsurf's MCP config file directly (location varies by OS; use the UI if unsure).

Why this server

Most market-data MCP servers proxy raw prices. Fahali returns judged intelligence: each verdict carries a confidence score, the reasoning chain that produced it, and provenance you can audit. Detection accuracy is measured continuously against realized outcomes — engines that haven't earned a number report "calibrating", never an invented one.

Multi-tenant: each SSE connection is isolated with its own key; keys are never shared across sessions. Informational only, not financial advice.