How do you connect Claude to stock market data?
Updated November 23, 2026
In claude.ai or Claude Desktop: open Customize, then Connectors; press + Add and choose Add custom connector; name it QuantGPT, paste https://terminal.quantgpt.co/mcp, press Continue, then Add, and sign in to QuantGPT when Claude asks. There is no key to paste. In Claude Code, run claude mcp add --transport http quantgpt https://terminal.quantgpt.co/mcp, then /mcp and Authenticate.
Without a connection, Claude and ChatGPT answer stock questions from memory: what they learned in training, which stops at a date and holds no price feed. Connected, Claude can search 175 documented strategies, run backtests on decades of US market history, grade a stock and query the warehouse, in the chat, with the numbers coming from the data. ChatGPT signs in the same way; Cursor, Gemini CLI and scripts send a key from your account page. Each assistant is in the table below.
- Why an AI gets market numbers wrong
- Five ways to give an AI stock market data
- Connect QuantGPT, by assistant
- Check it worked
- What comes back
- Limits
- Questions
Why an AI gets market numbers wrong
A chat assistant with no data source answers from memory. Its training stops at a date, it has no price feed, and it cannot run a test over decades of daily prices in its head, so a price, a return or a backtest it gives you without a tool can be out of date or invented, and the reply reads the same either way.
A connection changes where the number comes from. The assistant calls a tool, the tool reads the data or runs the computation, and the assistant explains what came back. Ask it to say which tool it called and with what settings, so you know the answer came from the data and exactly what was tested.
Five ways to give an AI stock market data
| Way | What the assistant gets | Who does the work | Fits |
|---|---|---|---|
| Paste or upload the data | Only the rows you paste or attach | You find, download and paste the data; the assistant works on what fits in the chat | A few tickers over a short window |
| The assistant's own web search | What a web page shows: a quote, a headline, a summary | The assistant reads pages; nothing is computed on a dataset | A current quote or the news |
| A market data API and your own code | Rows from the vendor, through a program you write | You write and run the code and keep the vendor's plan | Developers who want raw data in their own program |
| A market data MCP server | Rows on request, such as prices and fundamentals, inside the chat | The server sends rows; any computation over them happens in the chat | Looking up figures for a handful of names |
| A research MCP server (QuantGPT) | Finished results: backtests, sweeps, screens, stock grades and read-only SQL, computed on the server | QuantGPT computes on decades of US market history; the assistant gets the numbers and explains them | Testing an idea on decades of history without writing code |
Connect QuantGPT, by assistant
| Assistant | How it connects | What it needs | Guide |
|---|---|---|---|
| Claude (claude.ai and Claude Desktop) | Customize, Connectors, + Add and Add custom connector; name it, paste the URL, Continue, Add, then sign in to QuantGPT | Any Claude plan, per Anthropic's help page (custom connectors, read 2026-11-13): the $0 plan allows one custom connector; on Team or Enterprise an Owner adds it first | Connect Claude |
| Claude Code | claude mcp add with the URL, then /mcp and Authenticate to sign in to QuantGPT | Nothing more; a key from your account page for scripts and servers | Connect Claude |
| ChatGPT | chatgpt.com/plugins, Add, Add custom MCP server; the URL with OAuth, then sign in to QuantGPT | A plan that can add a custom MCP server (OpenAI listed Plus, Pro, Business, Enterprise and 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, then /mcp and Authenticate:
claude mcp add --transport http quantgpt https://terminal.quantgpt.co/mcp
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 from $1,499 a month, by 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, press + Add and choose Add custom connector, name it, paste https://terminal.quantgpt.co/mcp, press Continue, then Add, and sign in to QuantGPT; there is no key to paste. In Claude Code, run claude mcp add with the URL, then /mcp and Authenticate to sign in. Step by step: quantgpt.co/learn/connect-claude.html.
Why does ChatGPT or Claude get stock numbers wrong?
Without a data source it answers from memory: its training stops at a date and holds no price feed, and it cannot compute a backtest over decades of daily prices in its head, so a number it gives you can be out of date or invented. Connected to a source over MCP, it calls a tool and the number comes from the data. For QuantGPT, add https://terminal.quantgpt.co/mcp as a connector and sign in.
How do I connect ChatGPT to stock market data?
As a custom MCP server. In the browser go to chatgpt.com/plugins, press Add and choose Add custom MCP server, name it, enter https://terminal.quantgpt.co/mcp as the Server URL with Authentication on OAuth, create it and sign in to QuantGPT. It needs a ChatGPT plan that can add a custom MCP server (OpenAI listed Plus, Pro, Business, Enterprise and Education in September 2026). On a plan without it, 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. AlphaSense, Danelfin, TrendSpider, Trade Ideas and QuantGPT side by side: quantgpt.co/learn/ai-stock-research.
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
- LearnThe best AI for stock research, by the job
- ComputeMCP server for backtesting
- DataMarket data for AI agents
- ExecutionFrom a backtest to your broker
- CompareBest MCP servers for backtesting
- LearnBacktest a trading strategy without coding
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.