# Financial Data MCP Server for Claude, Cursor, ChatGPT & Codex

> Connect Claude Desktop, Claude Code, Cursor, and Codex to provenance-stamped SEC XBRL filings, 67-country prices, and stock screens over Streamable HTTP MCP.

Canonical URL: https://quantset.dev/docs/guides/financial-data-mcp-server
Full LLM API Contract: https://api.quantset.dev/llms-full.txt

> ## For AI agents
> The QuantSet API is at https://api.quantset.dev. Send the key in the `X-API-Key` header. The sandbox key `mw_demo` needs no signup and reads the sample listings.
> No key yet? An agent can open an account on its own: https://api.quantset.dev/skill.md
> Connect an MCP client to https://api.quantset.dev/mcp. Client setup is at https://api.quantset.dev/agents.md.
> Start with https://api.quantset.dev/llms.txt or read the full reference at https://api.quantset.dev/llms-full.txt. The OpenAPI file is https://api.quantset.dev/openapi.json. Add `.md` to any docs URL to get that page as Markdown.

Most open-source stock MCP servers are thin wrappers over `yfinance` that hit rate limits halfway through a multi-company prompt and feed unverified numbers to the model. QuantSet hosts a read-only Streamable HTTP Model Context Protocol server backed by reconciled SEC XBRL statements, 67-country prices, 13F/Form 4 filings, and macro curves—working out of the box with zero local Python setup.
          

          

## Example MCP tool call

          

This example shows the arguments for `get_financial_statements` in an MCP client.
          
            
```
get_financial_statements { "kind": "income", "tickers": ["NVDA"], "period": "quarterly", "limit_per_instrument": 2 }
```

          

          

## Why AI equity research needs provenance-stamped tools

          
            
- **Zero hallucinated zeros:** Unverified or unreported accounting items return explicit `null` rather than `0`, preventing LLMs from inventing 0% debt or 0 R&D spend.
            
- **Filing dates & accession citations:** Statement rows include SEC form types, filing dates, and currencies so Claude or ChatGPT can cite the exact 10-K/10-Q vintage behind every ratio.
            
- **Read-only by design:** Every MCP tool is annotated `readOnlyHint: true` and `destructiveHint: false`—safe for autonomous research loops with zero trade-execution risk.
            
- **Instant sandbox:** Try it in 10 seconds with `mw_demo` / `qs_demo` before connecting a paid key.
          

          

## Connect in 30 seconds (OAuth, @quantset/mcp, or HTTP)

          

In **Claude.ai** or **ChatGPT** web connectors, paste `https://api.quantset.dev/mcp` and sign in via OAuth 2.1 (supports both paid keys and 1-click `qs_demo` sandbox). For local desktop clients like Claude Desktop or Cursor (`.cursor/mcp.json`), use the official `@quantset/mcp` launcher:
          
            
```
{
  "mcpServers": {
    "quantset": {
      "command": "npx",
      "args": ["-y", "@quantset/mcp"],
      "env": {
        "QUANTSET_API_KEY": "mw_demo"
      }
    }
  }
}
```

          
          

Or connect directly over remote Streamable HTTP in Claude Code—no Node wrapper required:
          
            
```
claude mcp add --transport http quantset https://api.quantset.dev/mcp --header "Authorization: Bearer mw_demo"
```

          

          

## Install the QuantSet Agent Skill (Claude Code, Codex & Cursor)

          

Writing code that integrates the REST API instead of chatting interactively? Install the portable QuantSet skill so your coding agent knows every endpoint, namespace prefix, and `snapshot_id` pagination rule without burning context tokens:
          
            
```
npx skills add quantset/skills
```

          
          

You can also feed [/llms.txt](https://api.quantset.dev/llms.txt) directly to any LLM workspace.

          

## 14 purpose-built read-only MCP tools

          

Unlike generic wrapper tools that force LLMs to guess URL strings, QuantSet exposes 21 typed, annotated tools: `get_capabilities`, `list_instruments`, `get_quotes`, `get_price_history`, `get_intraday_bars`, `get_company_snapshot`, `get_financial_statements`, `get_fundamentals`, `get_estimates_and_earnings`, `get_corporate_actions`, `get_sec_filings`, `get_etf_data`, `get_macro_and_fx`, and `screen_stocks`.

          

## High-signal prompts to test immediately

          
            
- *"Pull NVIDIA's last 4 quarterly income and cash flow statements from QuantSet, verify free cash flow conversion against net income, and cite the SEC filing dates."*
            
- *"Compare Apple, Microsoft, and NVIDIA trailing 1-year total return against index:SPX and check each company's latest share-count change."*
            
- *"Check the current U.S. Treasury yield curve from 3M to 30Y and summarize the 2s10s slope."*

---

## QuantSet Ecosystem & Integrations (https://quantset.dev/integrations)

- **MCP Clients & 7 Skills:** `npx quantset init` & `npx skills add quantset/skills` (Claude, Claude Code, Cursor, ChatGPT, Codex, Hermes, OpenClaw, Block Goose, Cline, Docker MCP Toolkit — `https://api.quantset.dev/mcp`)
- **Python SDK & Agent Frameworks:** `pip install "quantset[pandas]"` · `from quantset.tools import build_agent_functions, langchain_tools, crewai_tools` (PydanticAI, LangGraph, LangChain, CrewAI, Agno, AutoGen, Google ADK, OpenAI Agents SDK)
- **TypeScript SDK & Vercel AI / Mastra:** `npm install quantset` · `import { createQuantsetTools } from "quantset/tools"` (Node 20+, Bun, Deno, Cloudflare Workers, Vercel Edge)
- **Spreadsheets & Workspaces:** Google Sheets (`=QUANTSET()` & `=IMPORTDATA()`), Microsoft Excel Power Query (`?format=csv`), Notion MCP & n8n/Make webhooks (`https://quantset.dev/docs/guides/google-sheets-excel-notion-stock-templates`)
- **Drop-In Migrations & Machine Payments:** FMP `/stable/*` & `/v3/*` adapter (`https://quantset.dev/docs/switch/fmp`), `yfinance` migration (`https://quantset.dev/docs/switch/yfinance`), autonomous signup (`https://api.quantset.dev/skill.md`), and `x402` Base USDC.
