The stock and crypto MCP server for Claude, ChatGPT, and Codex.
Connect Claude, ChatGPT, or Codex to https://darvas.app/mcp with OAuth. Ask about live charts, SEC filings, macro data, and your read-only accounts.
Server
Tool
Run sandboxed JavaScript with darvas.request() against any Darvas API endpoint
Request
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "execute",
"arguments": {
"code": "async () => darvas.request({ method: 'GET', path: '/company/dossier', query: { ticker: 'NVDA' } })"
}
}
}Example answer, first fields
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"structuredContent": {
"result": {
"ticker": "NVDA",
"dossier": {
"profile": {
"name": "NVIDIA CORP",
"cik": "0001045810",
"sector": "Technology"
},
"price": {
"date": "2026-11-27",
"close": 177.82
},
"valuation": {
"price_to_earnings_ratio": 44.6
}
}
},
"truncated": false,
"operation_calls": 1,
"credits_used": 1,
"elapsed_ms": 42
},
"_meta": {
"credits_used": 1
}
}
}Client
Connect Claude Code
claude mcp add --transport http --scope user darvas https://api.darvas.app/mcp? mode=code --header "X-API-KEY: $DARVAS_API_KEY"Each darvas.request() inside execute that returns data costs 1 credit, the same as REST. search and whoami cost 0.
Read the MCP guide- Darvas API MCP tools for Claude Code and Codex with an API key
- 164
- live Darvas operations behind three compact MCP tools
- 28
- account MCP requests a minute from Free to Ultra, with no daily cap
- 15 to 360
- orders ever sent. Every account tool is strictly read-only
- 0
What your assistant can use
Darvas MCP exposes three compact tools, docs, search, and execute, covering 28 operations without bloating your model context window. Developers needing raw dataset tools can also use the 164-tool Darvas API MCP server.
Live stock and crypto market data
Fetch OHLCV candles across nine timeframes, indicator readings, crypto derivatives metrics, market summaries, and 77-metric screener rankings directly inside Claude or ChatGPT.
SEC filings, fundamentals, and macro series
Pull standardized XBRL financial statements, SEC filings, Form 4 insider trades, earnings releases, central bank rates, and yield curves through the same MCP connection, counted against daily company data reads.
Read-only exchange and broker accounts
Inspect balances, open positions, orders, trade history, and OKX portfolio risk metrics across your connected OKX, Binance, Bybit, FxPro through cTrader, and partner broker accounts with zero order capability.
Human-approved alerts and schedules
Ask your assistant to create a price alert or recurring briefing. The propose_alarm and propose_scheduled_task operations draft the rule, and nothing activates until you click approve.
OAuth 2.1 with PKCE, no pasted keys
Connect without copying passwords or exchange secrets into chat apps. The client opens the Darvas consent screen and receives a 1-hour access token renewable for up to 30 days.
Darvas API MCP for Claude Code and Codex
Engineering agents in Claude Code, Codex, Cursor, or Gemini CLI that send custom headers can connect to https://api.darvas.app/mcp using X-API-KEY for 164 structured financial dataset tools on Pro, Max, or Ultra.
MCP tool and quota table
Capabilities reachable through https://darvas.app/mcp and the exact permission and quota boundary for each area.
| Area | What the assistant reads or does | Access |
|---|---|---|
| Market data | Multi-asset candles, indicator values, derivatives metrics, and summaries | Read-only, every plan |
| Charts | Every stock CFD, forex, commodity, and crypto pair charted in Darvas | Read-only, every plan |
| Screener | Live pair screening across 77 technical and derivatives metrics | Read-only, every plan |
| Company and macro data | SEC filings, XBRL statements, insider trades, 13F holdings, and macro series | Read-only, 50 to 20,000 reads a day by plan |
| Connected accounts | OKX, Binance, Bybit, FxPro cTrader, and partner broker balances and positions | Read-only, your own accounts |
| Memory and history | Your prior Darvas AI threads and saved trading records | Read-only, your own account |
| Alerts and schedules | Drafts price alerts and scheduled briefings through propose operations | Activates only after your approval |
Stock and crypto MCP workflows
Three practical ways traders and analysts run financial research inside ChatGPT, Claude, and coding agents.
Add Darvas as a custom MCP connector
- OAuth discovery metadata configures authorization and token endpoints automatically.
- Authorization code flow with PKCE requires no client secret and lets you revoke grants anytime.
- Access tokens expire every hour and refresh silently for up to 30 days.
Combine chart technicals, filings, and portfolio exposure
- Account MCP calls cost no credits and have no daily cap. Plans set requests a minute: 15 on Free, 60 on Pro, 180 on Max, and 360 on Ultra.
- Company filings and macro queries also draw from daily data reads: 50 on Free, 500 on Pro, 5,000 on Max, and 20,000 on Ultra.
- Responses ground your assistant in current data instead of stale training weights, and remain general information rather than advice.
Draft alerts and scheduled briefings with approval gates
- Approved alerts sync immediately with your Darvas web workspace and Telegram delivery.
- Every proposed monitor counts toward the alert and briefing limits of your plan.
- Edit, pause, or delete any approved rule inside Darvas at any time.
Protocol architecture and OAuth security
How OAuth 2.1 with PKCE, dual MCP endpoints, human-in-the-loop mutation approvals, compact context schemas, and read-only enforcement protect external AI assistants.
Your AI client
- ChatGPT
- Claude
- Codex
- Cursor
Darvas MCP
- OAuth 2.1 with PKCE
- search and execute
- Approval before writes
- No order tools
What it reads
- Charts and indicators
- SEC filings and macro
- Read-only accounts
- Alerts and schedules
- for every call to your own account at darvas.app/mcp, on every plan
- 0 credits
- requests a minute on the account server, from Darvas Free to Ultra
- 15 to 360
- data tools at api.darvas.app/mcp behind one API key
- 164
Questions about Darvas MCP
Key technical and security answers for connecting Claude, ChatGPT, Codex, or Cursor to Darvas.
What is a stock and crypto MCP server?
The Model Context Protocol lets AI clients call live tools during chat. Darvas MCP gives ChatGPT and Claude live multi-asset charts, indicators, SEC filings, macro data, and read-only broker positions so answers rely on verifiable current numbers rather than model memory.
Which AI clients work with Darvas MCP?
ChatGPT custom connectors in developer mode, Claude web and desktop, Codex, and any OAuth 2.1 PKCE client connect to https://darvas.app/mcp. Claude Code, Codex, Cursor, and Gemini CLI also connect to the Darvas API MCP server at https://api.darvas.app/mcp with an API key.
Can ChatGPT or Claude execute trades through Darvas MCP?
Never. Every exchange and broker tool is read-only, and a server-side gate rejects all order requests. Assistants can only draft price alerts and scheduled briefings, both gated behind your approval.
What are the MCP rate limits?
Account MCP has no daily cap and costs no credits. Darvas Free allows 15 requests a minute, Pro 60, Max 180, and Ultra 360. A request over the limit gets HTTP 429.
When should I use Darvas MCP vs the Darvas API MCP server?
Use Darvas MCP at https://darvas.app/mcp with OAuth inside ChatGPT or Claude for charts, watchlists, alerts, and read-only broker accounts. Use the Darvas API MCP at https://api.darvas.app/mcp with X-API-KEY for Claude Code, Codex, or custom agents that need all 164 dataset tools, up to 5,000,000 calls a month on Ultra.
Does ChatGPT or Claude ever see my exchange credentials?
No. Exchange tokens and read-only API keys stay encrypted in Darvas with AES-256-GCM. AI apps receive only a scoped Darvas OAuth token that you can revoke anytime in Settings.
Connect in three steps
Sign in to Darvas
Darvas MCP is included on Free, Pro, Max, and Ultra. Connect any OKX, Binance, Bybit, or FxPro account you want available read-only.
Add the MCP server URL
Create a custom connector in ChatGPT (developer mode) or Claude and enter this address:
https://darvas.app/mcpApprove OAuth access
Review scopes on the Darvas consent page, click allow, and start querying live markets and filings inside chat.