SEC Financial Analyst MCP
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@SEC Financial Analyst MCP How has Apple's free cash flow changed over the last five years?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
SEC Financial Analyst MCP
An MCP server that gives AI assistants source-cited financial analysis of US public companies from SEC EDGAR filings.
Why
Ask a language model about a company's finances and it will answer confidently, but the numbers may be out of date, mixed up between years or invented. This server lets the model look up the figures instead:
Code computes, the model interprets. Ratios, cash metrics and growth rates are calculated deterministically from SEC XBRL data. The model only explains them.
Every number has a source. Each result names the 10-K it came from, its filing date, the formula used and the raw reported inputs.
Missing data stays missing. If a company does not report an input, the metric is
nullwith a warning. It is never estimated.
Related MCP server: edgar-mcp
Tools
Tool | What it returns |
| Companies matching a ticker or name, with their SEC CIK |
| Legal name, exchanges, industry, fiscal year end, state of incorporation |
| Recent 10-K or 10-Q filings with links to the original documents |
| Leverage, liquidity and profitability ratios, free cash flow and net debt for one fiscal year |
| One metric over up to ten fiscal years, with year-over-year growth computed in code |
All tools are read-only.
Example

Quick start
Requirements: uv.
Add the server to your Claude Desktop configuration (claude_desktop_config.json). SEC requires every request to identify its sender, so replace the placeholder with your name and email:
{
"mcpServers": {
"sec-financial-analyst": {
"command": "uvx",
"args": ["sec-financial-analyst-mcp"],
"env": {
"SEC_USER_AGENT": "Your Name your.email@example.com"
}
}
}
}Restart Claude Desktop and ask, for example: "How has Apple's free cash flow changed over the last five years?"
If Claude Desktop cannot find uvx, use its full path instead (where uvx on Windows, which uvx on macOS and Linux).
Run from source
Clone the repository and install the dependencies:
git clone https://github.com/Yigituysgl/sec-financial-analyst-mcp.git cd sec-financial-analyst-mcp uv syncSEC requires every request to identify its sender. Copy
.env.exampleto.envand add your name and email:SEC_USER_AGENT="Your Name your.email@example.com"Add the server to your Claude Desktop configuration (
claude_desktop_config.json), using the absolute path of the cloned folder:{ "mcpServers": { "sec-financial-analyst": { "command": "uv", "args": ["--directory", "/path/to/sec-financial-analyst-mcp", "run", "sec-financial-analyst-mcp"] } } }Restart Claude Desktop.
How it works
Claude Desktop ──MCP (stdio)──▶ server.py tool definitions and model instructions
│
▼
services/ XBRL period selection, ratios, trends
│
▼
clients/ SEC EDGAR HTTP client, rate limiting
│
▼
SEC EDGAR APIs submissions, company facts (XBRL)The layers are separated so the financial logic can be tested without MCP and reused by other clients.
Design decisions
Decision | Why |
Values are selected by period end date, not by SEC's | Every 10-K repeats the prior year's figures, and both carry the same |
When a period appears in several filings, the latest filing wins | Companies restate past figures; the most recent filing has the corrected value. |
Income and cash flow items must span about twelve months | Annual reports also contain quarterly figures. Without this filter a quarter's revenue can replace a year's. |
No proxy for an unreported item | Apple does not report interest expense separately for fiscal 2026. A wrongly matched tag is more dangerous than an honest gap, so interest coverage is |
Net debt = long-term debt + commercial paper − cash − short-term investments | Long-term marketable securities are excluded as less liquid. |
Capital expenditure is subtracted from operating cash flow | SEC reports it as a positive payment. Adding it by mistake would overstate free cash flow with no error raised. |
Growth is | A two-year change is never shown as one year's growth, and a percentage change from a negative base is meaningless. |
Tool descriptions carry interpretation rules | Large share buybacks inflate debt to equity and return on equity. The tool tells the model to judge leverage with net debt to free cash flow, and in testing it did. |
SEC fair-access compliance | Every request carries a User-Agent, requests are capped at 8 per second (SEC's limit is 10) and responses are cached in memory. |
Development
uv run pytest # unit tests
uv run ruff check # lint
uv run ruff format # formatThe tests use small synthetic XBRL payloads, so they run offline and do not change when a company files a new report. Each one is built to fail if the rule it protects is removed.
Limitations
Covers US-listed companies that file XBRL financial statements with the SEC; annual 10-K data only.
Companies that report a line item under an uncommon tag will show
nullfor that metric.Net debt does not include lease liabilities.
Data is cached for the lifetime of the server process; restart it to pick up a newly filed report.
Roadmap
Risk factor extraction and comparison from 10-K text
Compound annual growth rate in trend results
MCP resources and prompts for methodology and common analyses
Disclaimer
This project is for research and educational use. It is not investment advice. Figures come from company filings with the SEC and may contain errors made by the filer.
License
Available Tools
5 toolsget_company_profileGet Company ProfileA
Return a company's identity details from its SEC submissions record.
Includes legal name, CIK, tickers, exchanges, industry, fiscal year end and state of incorporation. Check the fiscal year end before interpreting any financial figures. Requires an exact ticker; call search_company first if you only have a company name.
Inputs: ticker (required). Returns: Identity details of a company from its SEC submissions record.
get_financial_ratiosGet Financial RatiosA
Compute a company's key financial ratios and cash metrics for one fiscal year from its 10-K.
Returns debt to equity, current ratio, interest coverage, net profit margin, return on equity, free cash flow, free cash flow margin, net debt and net debt to free cash flow. Each metric has a unit, either "ratio" or "USD". Every metric includes its formula and the raw reported inputs, and the result names the source form and filing date, so cite them in your answer. A metric is null when SEC data lacks a required input: say it could not be computed and never estimate it. For growth over time, call get_metric_trend instead of calculating it yourself. Large share buybacks shrink equity and can inflate debt to equity and return on equity, so judge leverage with net debt and net debt to free cash flow instead. Uses the latest fiscal year unless period_end (YYYY-MM-DD) is given. Requires an exact ticker; call search_company first if you only have a company name.
Inputs: ticker (required), period_end. Returns: A company's key ratios for one fiscal year, traced to its SEC filing.
get_metric_trendGet Metric TrendA
Return one financial metric for a company over recent fiscal years with growth.
Use this for questions about growth or change over time, and use its growth figures instead of calculating growth yourself. Growth is (value - previous) / previous, computed in code; it is null when no earlier year exists, the previous value is not positive, or a fiscal year is missing. Values are in USD from annual 10-K filings, each with its filing date. Supported metrics: Revenues, NetIncomeLoss, OperatingIncomeLoss, OperatingCashFlow, CapitalExpenditure, FreeCashFlow, LongTermDebt, CommercialPaper, CashAndEquivalents, ShortTermInvestments, StockholdersEquity, Liabilities, AssetsCurrent, LiabilitiesCurrent and InterestExpense. Returns at most 10 years. Requires an exact ticker.
Inputs: metric (required), ticker (required), years. Returns: One metric over several fiscal years, traced to the 10-K filings.
list_filingsList FilingsA
List a company's most recent SEC filings of one type, newest first.
Each filing includes the period it covers, the date it was filed and a link to the original document, so answers can cite their source. Use form_type "10-K" for annual reports and "10-Q" for quarterly reports. Returns at most 20 filings.
Inputs: ticker (required), limit, form_type. Returns: result
search_companySearch CompanyA
Find US-listed companies by ticker or name and return their SEC CIK.
Use this first whenever the user mentions a company, because the other SEC tools need its ticker or CIK. Example queries: "AAPL", "apple".
Inputs: query (required), limit. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool targets a distinct SEC data need: ticker/CIK resolution, company identity, filing list, one-year ratios, and multi-year metric trends. The descriptions explicitly separate use cases (e.g., trends vs. ratios) and even cross-reference when to use the other tool, eliminating misselection risk.
All five tools follow a consistent snake_case verb_noun pattern (search_company, get_company_profile, list_filings, get_financial_ratios, get_metric_trend). There is no mixing of conventions or vague verbs.
Five tools is well-scoped for an SEC financial analyst server, with each tool owning a clear step in the research workflow. No tool feels redundant or missing at the count level.
The surface covers company lookup, identity, filings, ratios, and metric trends, which are the core SEC analyst workflows. Minor gaps exist, such as retrieving filing document contents directly or searching across filings, but agents can work around these via the provided links and metrics.
Maintenance
Related MCP Connectors
SEC-filed company financials with filing citations, plus market data, for AI agents
Provide AI assistants with real-time access to official SEC EDGAR filings and financial data. Enab…
SEC EDGAR financials, insider trading, and economic data for AI agents. US GAAP + IFRS.
SEC EDGAR filings for AI agents: company lookup, filings, financials, insider trades. No keys.
Related MCP Servers
- AlicenseAqualityBmaintenanceProvides access to SEC EDGAR financial data, enabling AI agents to fetch company filings, financial metrics, and narrative sections. It supports natural-language metric searching and extracts structured data from 10-K, 10-Q, and 8-K reports.640 PyPIMIT
- FlicenseNot gradedqualityDmaintenanceProvides AI assistants direct access to SEC EDGAR filing data — financials, filings, and filing text — with no API key required.-
- AlicenseNot gradedqualityCmaintenanceEnables searching SEC EDGAR for companies, retrieving recent filings (e.g., 10-K, 10-Q), and accessing structured XBRL financial facts.75 npmMIT
- AlicenseAqualityBmaintenanceGives an AI agent read-only access to SEC EDGAR for company lookup, reported financial statements, individual XBRL concepts, filing and exhibit lists, filing text, segment revenue, and full-text search. Every answer carries its source accession number, form, filing date, URL, hash and retrieval time, and it needs no API key.11MIT