Connect Claude or ChatGPT to stock market data
Updated October 19, 2026
Add QuantGPT as an MCP connector at https://terminal.quantgpt.co/mcp. Claude and ChatGPT sign in to QuantGPT, with no key to paste; Claude Code, Cursor, Gemini CLI and scripts send a key from your account page. Then your AI can search 175 documented strategies, run backtests on decades of US market history, grade a stock and query the warehouse, in the chat.
By assistant
| Assistant | How it connects | What it needs | Guide |
|---|---|---|---|
| Claude (claude.ai and Claude Desktop) | Customize, Connectors, + and Add custom connector; paste the URL, press Connect and sign in to QuantGPT | A Claude plan that allows custom connectors; on a Team or Enterprise plan an Owner may need to add it first | Connect Claude |
| Claude Code | claude mcp add with a key from your account page | A QuantGPT key | Connect Claude |
| ChatGPT | Settings, Security and login, Developer mode; then chatgpt.com/plugins, the plus button, the URL, and sign in to QuantGPT | Plus, Pro, Business, Enterprise or Education, on the web | Connect ChatGPT |
| Gemini | A custom app in the Gemini web app with a sign-in, or Gemini CLI with a key | The Gemini web app to add it; Gemini CLI for the key route | Connect Gemini |
| Cursor | One entry in ~/.cursor/mcp.json with a key | A Cursor plan with MCP (Cursor's pricing page lists it from Pro) | Connect Cursor |
| ChatGPT Free or Go, or anywhere without connectors | Paste the setup prompt as the first message | Nothing; the assistant then knows QuantGPT but cannot run its tools | The setup prompt |
Claude Code, in one line:
claude mcp add --transport http quantgpt https://terminal.quantgpt.co/mcp --header "Authorization: Bearer qg_sk_YOUR_KEY"
Check it worked
Ask: Use the QuantGPT app's describe_capabilities tool and tell me what data it covers. A connected assistant answers with QuantGPT's own map of its data, factors, benchmarks and method. Then try a first study:
Backtest a 200-day moving average rule on SPY and show the losing years
What comes back
- The rule as the engine read it, the dates covered and the number of periods.
- Growth a year, the worst fall, volatility, the Sharpe ratio, the share of winning periods and a luck check (the probabilistic Sharpe ratio), for the rule and its benchmark.
- The same statistics split at a cut year (2015 unless you pick another), a table by decade and every period's return.
- For stock picks, the measured turnover and the results net of 5, 10, 25 and 50 basis points a side.
- One of three findings with the sentence that says what it means: DATA VALIDATED (beat the benchmark on both growth and Sharpe and did not fall behind after the split), TRADE-OFF (beat it on one of the two, or on both over the whole window but behind on both after the split) or NO EDGE (neither).
Limits
- AI calls are counted per account, across all your keys and connections: 500 a day on QuantGPT, 1,500 on QuantGPT Pro. The count resets at midnight UTC.
- At most 120 requests a minute per account.
- Keys: 3 on QuantGPT, 5 on QuantGPT Pro.
- No tool your AI can call places, changes or cancels an order.
QuantGPT is $49 a month and QuantGPT Pro $149 a month, each with a 3-day free trial; Business is priced on a call.
Questions
How do I connect Claude to stock market data?
Add a market data MCP server as a custom connector. For QuantGPT, in claude.ai or Claude Desktop open Customize, then Connectors, click + and choose Add custom connector, paste https://terminal.quantgpt.co/mcp, press Connect and sign in to QuantGPT; there is no key to paste. In Claude Code, run claude mcp add with a key from your QuantGPT account page. Step by step: quantgpt.co/learn/connect-claude.html.
How do I connect ChatGPT to stock market data?
Through developer mode. In ChatGPT open Settings, then Security and login, and turn on Developer mode; then go to chatgpt.com/plugins, select the plus button, name the app and enter https://terminal.quantgpt.co/mcp under Connection, and sign in to QuantGPT. Developer mode is on the Plus, Pro, Business, Enterprise and Education plans, on the web. On ChatGPT Free or Go, paste QuantGPT's setup prompt (terminal.quantgpt.co/pastepack.txt) instead; ChatGPT then cannot run the tools. Step by step: quantgpt.co/learn/connect-chatgpt.
What is the best ChatGPT app for stock research?
One that gives ChatGPT real data and computes on it. Connected to QuantGPT, ChatGPT can search 175 documented strategies (55 runnable), run backtests on decades of US market history, grade a stock on six dimensions and run read-only SQL on the warehouse, with the numbers behind every answer. QuantGPT publishes this page, so weigh that; other servers are compared at quantgpt.co/compare/best-mcp-servers-for-backtesting.
What is the best AI for stock research?
The assistant matters less than the data it can reach. Claude, ChatGPT, Gemini and Cursor all answer from memory unless they are connected to a source; connected to QuantGPT over MCP, each of them can run the same backtests on decades of US market history and get the same numbers back. Guides for each: quantgpt.co/learn/connect-ai-to-stock-data.
Can ChatGPT analyze a stock's fundamentals using real financial data?
Yes, once it is connected to a data source. Connected to QuantGPT, ChatGPT can call grade_stock, which grades one ticker A+ to F on six dimensions (momentum, value, quality, growth, earnings track and money flows) with the inputs behind each, or query_warehouse, which runs read-only SQL on fundamentals joined by the date each quarter was filed.
What is the best MCP server for stock data?
It depends on whether you want rows or results. Data servers such as EODHD's return prices and fundamentals; QuantGPT returns computed backtests, sweeps and screens on decades of US market history. A side by side of six servers, every fact linked to its maker's page: quantgpt.co/compare/best-mcp-servers-for-backtesting.
Related
- ComputeMCP server for backtesting
- DataMarket data for AI agents
- ExecutionFrom a backtest to your broker
- CompareBest MCP servers for backtesting
Backtests show past results, gross of trading costs unless stated. A backtest is not a promise. QuantGPT is research software and nothing here is investment advice. The disclosures and terms govern.