Best MCP Servers for Stock Market Data 2027
The best MCP servers for stock market data, tested with real keys: statement depth, the SEC filing behind each number, response size and free tiers.

The best MCP server for stock market data is the one whose answers an AI agent can use without guessing: enough fields to do the analysis, small enough to fit in the model's context, and tied to the SEC filing the numbers came from. Measured that way, StockFit leads on company fundamentals, Financial Modeling Prep is close behind and wins on a bank, and Finnhub is the only other server whose statements name their filing.
I connected to six official MCP servers with real keys on December 5, 2026 and sent each one the same requests. Every number below comes from a response I saved, not from a vendor page. One disclosure: StockFit is my company, and it is one of the six. Where another server is the better pick, this post says so.
The best MCP servers for stock market data at a glance
| MCP server | Statement fields filled | Filing reference | Size of one answer | Free key | Tools |
|---|---|---|---|---|---|
| 1. StockFit | 114 / 113 / 103 / 76 | Accession number, form and filing date on every statement, and the XBRL concept behind each value on request | 1,866 characters | Statement tools are on the Free plan for the latest fiscal year. These tests ran on a Pro key. | 126 listed on a Pro key |
| 2. Financial Modeling Prep | 103 / 102 / 94 / 95 | CIK, filing date and accepted date. No accession number field. | 1,190 characters | Statements answered with a limit of 5. A limit of 100 and the form-type filing search were refused. | 20 listed, each covering many endpoints |
| 3. Finnhub | 52 / 108 / 90 / 116 (as reported, read over REST) | Accession number, form, filed and accepted dates on every as-reported statement | 214,133 characters for 17 annual reports | As-reported statements and the filing list answered. Standardized statements returned 403. | 70 by the vendor's count |
| 4. sec-api.io | The whole XBRL filing, not statement-shaped | Every answer is one filing, addressed by its accession number | 9,939,520 characters for one 10-K | 100 API calls in total. The allowance does not renew. | 49 listed |
| 5. Alpha Vantage | 57 / 56 / 51 / 50 | None. Statements carry a fiscal date only. | 105,852 characters, no limit parameter | 25 requests per day. Premium tools return artificial sample rows. | 133 listed |
| 6. EODHD | Not measured: fundamentals refused on the free key | Not measured | Not measured | 20 calls per day, end-of-day prices only. The fundamentals and SEC filings tools returned 403. | 100 listed |
The fields column lists four companies in this order: Microsoft / Chevron / Walmart / JPMorgan Chase. The size column is the text of one call for Microsoft's latest annual income statement. The ranking follows response depth first, then the filing reference, then size. Tool count is the last column on purpose: it is the number most roundups lead with, and it says the least about the data.
These six are data providers that run an official MCP server of their own. Community wrappers around scraped market data are not on the list, and neither are vendors I could not get a key for. The rest of this post shows the test behind each column.
How the six official MCP servers were tested
The Model Context Protocol is a standard way for an AI client to list a server's tools and call them. That makes servers easy to compare: the same two messages, tools/list and tools/call, work on every one. I wrote a small client that speaks the protocol over HTTP, with no AI model in between, so the result is what the server sends and not what a model made of it.
- Keys. A free key on Alpha Vantage, Financial Modeling Prep, EODHD, sec-api.io and Finnhub. StockFit ran on a Pro key, because that is the key I have. Its statement tools are also on the Free plan, for the latest fiscal year.
- The question. The latest annual income statement, balance sheet and cash flow for four companies: Microsoft, Chevron, Walmart, JPMorgan Chase. Three industrial and consumer companies and one bank, because banks report a different set of line items.
- The count. A field counts when it has a value that is not empty and not zero. Dates, symbols and currency codes do not count.
- The check. Microsoft's fiscal 2026 revenue of $331,839 million and net income of $133,749 million came back identical from StockFit, Financial Modeling Prep, Alpha Vantage and Finnhub. They match the SEC's own
companyconceptendpoint for the 10-K filed on July 29, 2026.
The limits of the test, so you can weigh the results:
- Finnhub's MCP server accepts OAuth only and rejected an API key, so I read its statements from its REST API with the same free account. Its tool count is the vendor's own figure.
- EODHD's free key answered its fundamentals tool with "Only EOD data allowed for free users", so its statements are not measured here.
- Counting filled fields is a proxy for depth. It does not tell you whether a field is the one your model needs, and four companies are a sample, not a census.
- One limit on our own side: a ticker whose SEC filer changed in 2026 returned no annual statements from StockFit during these tests, because the history under the old filer is not attached to the new one yet.
You can rerun the StockFit side in a minute. This script lists nothing and assumes nothing: it initializes a session and calls the three statement tools.
import json
import os
import requests
URL = "https://api.stockfit.io/mcp"
HEADERS = {
"Authorization": f"Bearer {os.environ['STOCKFIT_API_KEY']}",
"Accept": "application/json, text/event-stream",
"Content-Type": "application/json",
}
def rpc(method, params, request_id):
payload = {"jsonrpc": "2.0", "id": request_id, "method": method, "params": params}
response = requests.post(URL, headers=HEADERS, json=payload, timeout=60)
response.raise_for_status()
response.encoding = "utf-8"
if "text/event-stream" in response.headers.get("Content-Type", ""):
line = next(l for l in response.text.split("\n") if l.startswith("data:"))
return json.loads(line[5:])
return response.json()
client = {"name": "depth-check", "version": "1.0"}
rpc("initialize", {"protocolVersion": "2025-06-18", "capabilities": {}, "clientInfo": client}, 1)
tools = ("financials_income_statement", "financials_balance_sheet", "financials_cash_flow_statement")
total = 0
for request_id, tool in enumerate(tools, start=2):
arguments = {"symbol": "MSFT", "period": "annual", "limit": 1}
result = rpc("tools/call", {"name": tool, "arguments": arguments}, request_id)
statement = json.loads(result["result"]["content"][0]["text"])[0]
filled = [value for value in statement["facts"].values() if value not in (None, 0)]
total += len(filled)
print(f"{tool}: {len(filled)} fields from filing {', '.join(statement['sources'])}")
print(f"total: {total} fields")Its output on December 5, 2026:
financials_income_statement: 28 fields from filing 0001193125-26-323660
financials_balance_sheet: 49 fields from filing 0001193125-26-323660
financials_cash_flow_statement: 37 fields from filing 0001193125-26-323660
total: 114 fieldsResponse depth: how many statement fields each server fills
Company fundamentals are only useful to an agent if the line item it needs is there. A server that returns revenue and net income answers a headline question. One that also returns deferred revenue, lease liabilities and share repurchases can support financial research. So the first test is plain: across the three financial statements of one annual report, how many fields come back with a value?
| Company, fiscal year end | StockFit | Financial Modeling Prep | Finnhub (as reported) | Alpha Vantage |
|---|---|---|---|---|
| Microsoft, 2026-06-30 | 114 (28 / 49 / 37) | 103 (27 / 42 / 34) | 52 (20 / 0 / 32) | 57 (18 / 28 / 11) |
| Chevron, 2025-12-31 | 113 (26 / 50 / 37) | 102 (25 / 41 / 36) | 108 (37 / 41 / 30) | 56 (18 / 27 / 11) |
| Walmart, 2026-01-31 | 103 (23 / 47 / 33) | 94 (24 / 38 / 32) | 90 (27 / 32 / 31) | 51 (17 / 24 / 10) |
| JPMorgan Chase, 2025-12-31 | 76 (21 / 27 / 28) | 95 (25 / 37 / 33) | 116 (39 / 33 / 44) | 50 (17 / 25 / 8) |
| All four | 406 | 394 | 366 | 214 |
In brackets: income statement, balance sheet, cash flow. Four things are worth reading out of the table.
- StockFit fills the most fields on three of the four companies. For Microsoft it returned 114 values against 103 from Financial Modeling Prep and 57 from Alpha Vantage. Across the four companies, 338 of its 411 fields (82%) name the XBRL concept they were read from. The rest are sums and subtotals, and the response lists them in a
derivedarray. - On the bank, StockFit is behind. For JPMorgan Chase it returned 76 fields. Financial Modeling Prep returned 95 and Finnhub's as-reported statements 116. Bank balance sheets are where our standardized schema is thinnest, so for a bank model the other two give you more lines.
- A fixed schema pads with zeros. Financial Modeling Prep returns the same 123 statement fields for every company. Between 20 and 29 of them were zero in these four reports. A zero and a missing line look the same to an agent, which is why the count above leaves zeros out for every server.
- As-reported depth depends on the filing. Finnhub passes through the filer's own line items, so its count swings from 52 to 116. For Microsoft its balance sheet came back empty. Alpha Vantage lists 88 fields and filled 50 to 57 of them.
sec-api.io is not in the chart because it answers a different question. Its xbrl-to-json tool converts one whole filing, every statement and every disclosure note, so nothing is deeper. It is also not statement-shaped: the agent has to find the right block and the right period itself. Our guide to XBRL financial data explains why raw facts and finished statements are different products.
Which servers tell an AI agent the SEC filing behind a number
An agent that reports a figure should be able to say where it came from. For US company fundamentals that means the accession number, the ID the SEC gives every filing. With it, a reader can open the 10-K and check the number. Without it, the answer is a claim. Here is what came back with Microsoft's revenue on each server.
| MCP server | Accession number | Form type | Filing date | XBRL concept |
|---|---|---|---|---|
| StockFit | Yes, on every statement | Yes | Yes, with the acceptance time | Yes, per value, on request |
| Finnhub (as reported) | Yes, per report | Yes | Yes, with the acceptance time | Yes, each line keeps the concept the filer used |
| sec-api.io | Yes, it is the input | Yes | Yes | Yes, the raw XBRL |
| Financial Modeling Prep | No field, only inside filing links | No | Yes, with the acceptance time | No |
| Alpha Vantage | No | No | No, fiscal date only | No |
| EODHD | Not measured | Not measured | Not measured | Not measured |
StockFit: the filing on every statement, the concept on request
The call an MCP client sends to the StockFit tool behind /api/financials/income-statement:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "financials_income_statement",
"arguments": { "symbol": "MSFT", "period": "annual", "limit": 1, "includeSourceDetails": true }
}
}The answer, trimmed to three of its 28 line items:
{
"period": "2026-06-30",
"fiscalYear": 2026,
"fiscalPeriod": "FY",
"dateFiled": "2026-07-29",
"acceptedAt": "2026-07-29T20:08:01Z",
"facts": {
"revenue": 331839000000,
"netIncome": 133749000000,
"epsDiluted": 17.95
},
"sources": {
"0001193125-26-323660": {
"type": "10-K",
"dateFiled": "2026-07-29",
"acceptedAt": "2026-07-29T20:08:01Z",
"amendment": false,
"facts": {
"revenue": { "concept": "us-gaap:RevenueFromContractWithCustomerExcludingAssessedTax", "unit": "USD" },
"netIncome": { "concept": "us-gaap:NetIncomeLoss", "unit": "USD" },
"epsDiluted": { "concept": "us-gaap:EarningsPerShareDiluted", "unit": "USD/shares" }
}
}
}
}The sources map is keyed by accession number and is in every answer. Adding includeSourceDetails fills in the XBRL concept and unit for each value, which nearly doubles the answer from 1,866 to 3,287 characters. An agent can leave it off for a quick answer and turn it on when it has to defend one. The same receipt comes with /api/financials/balance-sheet and /api/financials/cash-flow-statement, and the /api/filings tool returns the link to the document on sec.gov. A worked example of an agent using this trail is in AI financial analysis with an SEC audit trail.
Finnhub: the accession number, on the as-reported statements
{
"accessNumber": "0001193125-26-323660",
"symbol": "MSFT",
"cik": "789019",
"year": 2026,
"quarter": 0,
"form": "10-K",
"filedDate": "2026-07-29 00:00:00",
"acceptedDate": "2026-07-29 16:08:01",
"report": {
"bs": [],
"ic": [
{
"concept": "us-gaap_RevenueFromContractWithCustomerExcludingAssessedTax",
"unit": "u_usd",
"label": "Revenue from Contract with Customer, Excluding Assessed Tax",
"value": 331839000000.0
}
]
}
}Every as-reported statement carries its accessNumber, form and dates, and each line keeps the filer's concept name. That is a real receipt, and it worked on a free account. Two caveats from the same response: bs, the balance sheet, is an empty array for Microsoft's 10-K, and concept names differ from filer to filer. Microsoft tags revenue with the long contract-revenue concept shown above, while another company uses plain Revenues, and the agent has to know both. Finnhub's standardized statements answered 403 on the free account.
Financial Modeling Prep: dates, no accession number
{
"date": "2026-06-30",
"symbol": "MSFT",
"cik": "0000789019",
"filingDate": "2026-07-29",
"acceptedDate": "2026-07-29 16:08:01",
"fiscalYear": "2026",
"period": "FY",
"revenue": 331839000000,
"otherExpenses": 0,
"netIncomeFromDiscontinuedOperations": 0,
"otherAdjustmentsToNetIncome": 0,
"netIncome": 133749000000,
"netIncomeDeductions": 0
}The statement names the company by CIK and gives the filing date and the acceptance time, which is enough to find the filing by hand. There is no accession number field and no form type. The four zeros are the padding from the section above. The secFilings tool returns sec.gov links that contain the accession number, so an agent can get there in a second call.
Alpha Vantage: a fiscal date only
{
"fiscalDateEnding": "2026-06-30",
"reportedCurrency": "USD",
"totalRevenue": "331839000000",
"investmentIncomeNet": "None",
"depreciation": "None",
"netIncome": "133749000000"
}Values are strings, a missing line is the string "None", and nothing in the answer points at a filing: no accession number, no form, no filing date. The numbers matched the 10-K in this test. The agent just cannot show that.
sec-api.io sits at the other end. Its tools take an accession number as input, so every answer is tied to one filing by construction. If filings are what you need, our sec-api.io alternatives comparison covers that side.
What one answer costs an AI agent's context
A REST client can throw away what it does not need. An AI agent cannot: every tool result is placed in the model's context window, and the model reads all of it. A server that sends 100 times more text for the same question leaves less room for the rest of the task and costs more per answer. This is the text each server returned for one question, Microsoft's latest annual income statement.
- Financial Modeling Prep and StockFit answer in under 2,000 characters. Both tools take a
limit, so one period means one period: 1,190 and 1,866 characters. - Alpha Vantage sends its whole history. The
INCOME_STATEMENTtool takes a symbol and nothing else. It returned 20 annual and 81 quarterly reports, 105,852 characters. If you want long historical data in one call, that is a feature. For a single figure it is a lot of context. - Alpha Vantage cuts off larger answers. Its
BALANCE_SHEETtool returned a preview of 171 of 4,047 lines with the message "This is a preview because the response exceeded the 32000 token limit. Full data (47165 tokens) is available at data_url or by retrying this tool with return_full_data=true." The preview held the latest year, so it was usable, but an agent has to notice the flag. - Finnhub returns every annual report at once. Over REST the as-reported call returned 17 annual reports in 214,133 characters. I could not measure its MCP tool, which may trim this.
- sec-api.io returned 9,939,520 characters for one 10-K. That is the whole XBRL filing as JSON. It is the right tool for a pipeline that stores the result and the wrong one to hand to a model in a single turn.
How many tools a server lists matters here too, because clients load tool descriptions into the context as well. Alpha Vantage listed 133 tools, StockFit 126, EODHD 100, sec-api.io 49 and Financial Modeling Prep 20. Financial Modeling Prep keeps its list short by grouping: its one statements tool takes an endpoint parameter with 23 choices. On a large server, allow only the tools your agent needs. Our stock research agent tutorial does that with a short allowlist.
Fourth-quarter figures: reported or derived?
Companies file a 10-Q for the first three quarters and a 10-K for the year. No filing reports the fourth quarter on its own. Any Q4 figure in a financial data API is arithmetic: the annual report minus the first nine months. An agent should know when a number is derived, so I asked each server for Microsoft's quarterly income statements.
- StockFit, Financial Modeling Prep and Alpha Vantage all return a quarter ended 2026-06-30 with the same revenue of $90,007 million and net income of $35,766 million.
- Financial Modeling Prep labels the row
Q4with the 10-K's filing date, 2026-07-29. Alpha Vantage lists it among the quarterly reports. Neither marks it as derived. - Finnhub's as-reported data has rows for quarters 1, 2, 3 only. It reports what was filed, so there is no fourth quarter to return.
- StockFit returns the quarter and says how it was built:
{
"period": "2026-06-30",
"fiscalYear": 2026,
"fiscalPeriod": "Q4",
"facts": { "revenue": 90007000000, "netIncome": 35766000000 },
"sources": {
"0001193125-26-323660": {
"type": "10-K",
"dateFiled": "2026-07-29",
"acceptedAt": "2026-07-29T20:08:01Z",
"amendment": false,
"facts": {}
},
"Q4-Recon-FY-9M": {
"type": "Q4-Recon",
"amendment": false,
"facts": { "revenue": {}, "netIncome": {} }
}
}
}The second source, Q4-Recon-FY-9M, is not a filing. It marks the values as reconstructed from the full year and the nine-month figures, and it sits next to the 10-K the full year came from. The method, and the cases where the subtraction goes wrong, are in how to calculate Q4 earnings.
What a free API key gets you on each server
Every server here can be tried without paying. What the free tier lets an agent do differs a lot, and so does what the server says when a call is outside the plan. That message matters more over MCP than over REST, because the model reads it and decides what to do next.
Alpha Vantage: 25 requests per day. The three statement tools answered on the free key. Premium tools do not refuse. They return placeholder rows under a warning:
{
"endpoint": "Realtime Options",
"message": "This is a premium endpoint. ***THE SAMPLE DATA SCHEMA BELOW IS ARTIFICIAL AND FOR ILLUSTRATION PURPOSES ONLY***. ...",
"data": [
{
"contractID": "XXYYZZ999999C00020000",
"symbol": "XXYYZZ",
"expiration": "2099-99-99",
"strike": "20.00",
"type": "call",
"last": "100.00"
}
]
}The warning is in capitals and the placeholder symbol is XXYYZZ, so a careful model will not mistake it for data. It is still a successful tool result with numbers in it, and worth knowing about before you let an agent quote options prices.
Financial Modeling Prep: statements work, larger requests are refused. A limit of 5 periods answered and a limit of 100 did not. The form-type filing search was refused with a message written for the model:
ACCESS DENIED: A parameter you passed to this tool ("secFilings") requires a higher plan.
The user is currently on the Free plan. Please inform the user they need to upgrade their FMP
subscription at https://financialmodelingprep.com/developer/docs/pricing to use this filter.
Do not retry this tool with the same parameter value; the user may retry with values their plan allows.That is the clearest refusal of the six: it names the plan, tells the model to inform the user, and tells it not to retry.
- EODHD: end-of-day data only. The free account allows 20 calls per day. Its fundamentals tool and its SEC filings tool both answered 403 with "Only EOD data allowed for free users". Historical prices are what the free key is for.
- sec-api.io: 100 API calls in total. The allowance does not renew, so the free key is a trial. The filing search and the XBRL converter both worked within it.
- Finnhub: as-reported yes, standardized no. The as-reported statements and the filing list answered on the free account. Standardized statements returned "You don't have access to this resource."
- StockFit: statements on the Free plan, for the latest fiscal year. Starter adds ten annual periods and Pro the full history. A tool outside your plan answers with the plans that include it, and a tool named
list_available_tools_of_current_plantells the agent what it can call. Free accounts also get 50 one-time calls to the premium tools. to run the script above; no card required.
The six servers one by one
1. StockFit: deepest standardized statements, with the filing attached
StockFit reads SEC filings directly and serves the result as financial statements, ownership data, fund holdings and footnote detail. It filled the most statement fields on three of four companies. Of the servers measured, it is the only one that puts the accession number on a standardized statement and marks a derived fourth quarter. What it does not have: options data, forex, crypto, technical indicators or macroeconomic data, and it covers companies that file with the SEC, not global exchanges. On a bank it returned fewer fields than the next two. The StockFit MCP server page has the setup for each client.
2. Financial Modeling Prep: a wide, fixed schema in small answers
Financial Modeling Prep has the smallest answers and the most predictable shape: the same 123 statement fields for every company, about 100 of them with a value. It was the deepest standardized source for JPMorgan Chase. Its tool list also covers quotes, crypto, forex, commodities, economic data and financial news. The trade-offs are the zero padding and the missing accession number. Our Financial Modeling Prep alternatives post goes deeper on the REST API.
3. Finnhub: as-reported statements with a receipt
Finnhub is the other server whose statements name their filing, and it does so on a free account. The as-reported data is exactly what the company tagged, which is ideal for checking a number and harder for comparing companies. Its MCP server is at mcp.finnhub.io/mcp, signs in with OAuth only, and by Finnhub's count has 70 tools covering equities, funds, forex, crypto and economic data. I could not test those tools with a key.
4. sec-api.io: the whole filing
sec-api.io is a filings platform with 49 tools: filing search, full-text search, section extraction, XBRL conversion and parsed forms such as 13F and Form 4. Nothing here is closer to the source. It suits an agent that works on documents. For statements across many companies it leaves the assembly to you, and one converted 10-K is far larger than a model's context.
5. Alpha Vantage: the broadest tool list
Alpha Vantage listed 133 tools, the most of the six: stock prices, options data, forex, crypto, commodities, economic data, technical indicators, financial news and earnings call transcripts. If your agent needs real-time and historical market data across asset classes, that range is the reason to pick it. For fundamentals it filled the fewest fields of the four servers measured, has no filing reference, and sends the full history on every call.
6. EODHD: not measured on fundamentals
EODHD listed 100 tools, including historical prices, intraday data, dividends, splits, insider transactions and macro indicators. Its free key is limited to end-of-day data, so its statements could not be counted and its place at the end of this list reflects that, not a measured weakness. If you have a paid EODHD key, run the same count before you rule it in or out.
For the REST side of the same vendors, see our comparison of the best financial data APIs.
Connecting a financial data MCP server to Claude or Cursor
All six are remote servers reached over HTTP, so there is nothing to install. You give the client a URL and a way to sign in. The servers differ in where the API key goes:
| MCP server | Endpoint | Sign-in |
|---|---|---|
| StockFit | https://api.stockfit.io/mcp | OAuth 2.1, or an API key as a Bearer token |
| Financial Modeling Prep | https://financialmodelingprep.com/mcp | API key in an X-API-Key header |
| Finnhub | https://mcp.finnhub.io/mcp | OAuth only. An API key is rejected. |
| sec-api.io | https://api.sec-api.io/mcp | API key in the URL |
| Alpha Vantage | https://mcp.alphavantage.co/mcp | API key in the URL |
| EODHD | https://mcp.eodhd.com/v1/mcp | API key in the URL, or OAuth on v2 |
A key in the URL is the simplest to set up and the easiest to leak, because URLs end up in logs and shared config files. A header is better. OAuth is the cleanest: the client opens a browser, you sign in, and no key is copied anywhere. For StockFit the whole client config is the URL:
{
"mcpServers": {
"stockfit": {
"type": "http",
"url": "https://api.stockfit.io/mcp"
}
}
}Whichever server you connect, give the agent two standing instructions: ask for one period unless it needs more, and state the source filing with every figure it reports. The first keeps answers small. The second only works on a server that returns the filing. This is a comparison of data sources, not investment advice.
FAQ
Q.What is the best MCP server for stock market data?
Q.Is there a free MCP server for stock market data?
Q.Which MCP servers return the SEC filing behind a financial number?
Q.How many tools does a financial data MCP server need?
Q.Why does MCP response size matter for AI agents?
Q.How do MCP servers handle fourth-quarter financial data?
Q.Do MCP servers for financial data work with Claude and Cursor?
Ready to build?
Free API key, no credit card.