mcp-sec-edgar
v0.1.0 · Model Context Protocol (MCP) server · Streamable HTTP
Reported financial statement values and recent filings for SEC registrants, fetched live from the SEC's official EDGAR APIs. Values are returned exactly as filed in XBRL; nothing is estimated or back-filled.
https://mcp-sec-edgar.scorematic.workers.dev/mcpQuick start
Add the server to any MCP client that supports remote (Streamable HTTP) servers:
{
"mcpServers": {
"mcp-sec-edgar": {
"url": "https://mcp-sec-edgar.scorematic.workers.dev/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}
Or call a tool directly over JSON-RPC:
curl -s https://mcp-sec-edgar.scorematic.workers.dev/mcp \
-H 'content-type: application/json' \
-H 'accept: application/json, text/event-stream' \
-H 'mcp-protocol-version: 2025-06-18' \
-H 'authorization: Bearer YOUR_API_KEY' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_company_financials","arguments":{"ticker":"AAPL","metrics":["revenue","net_income"],"periods":4,"frequency":"annual"}}}'
Tools
initialize and tools/list are always free. Every tool returns structured JSON
with source (upstream URL) and retrieved_at. When a value can't be determined, the tool returns an
error result with a machine-readable error.code instead of a guess, and failed calls are never billed.
get_company_financials
Reported financial values from SEC EDGAR XBRL company facts. metrics accepts aliases (revenue, net_income, operating_income, gross_profit, eps_basic, eps_diluted, total_assets, total_liabilities, stockholders_equity, cash, operating_cash_flow, capex, long_term_debt, shares_outstanding) or raw XBRL concepts like 'us-gaap:Revenues'. Values are exactly as filed; nothing is estimated.
Billing: $0.02 per successful call
| Input | Type | Notes |
|---|---|---|
ticker | string | Stock ticker, e.g. AAPL (min length 1, max length 10) |
metrics | string[] | |
periods (optional) | integer | Number of most recent periods (min 1, max 20, default 4) |
frequency (optional) | "annual" | "quarterly" | (default "annual") |
Output: ticker, cik, entity_name, frequency, metrics{alias: {concept, label, unit, values[{value, start, end, fiscal_year, fiscal_period, frame, form, filed, accession_number}]}}, missing_metrics, source, retrieved_at.
Example arguments:
{
"ticker": "AAPL",
"metrics": [
"revenue",
"net_income"
],
"periods": 4,
"frequency": "annual"
}get_latest_filings
Most recent EDGAR filings for a ticker, filtered by form type (e.g. 10-K, 10-Q, 8-K, 4). Empty form_types = all forms.
Billing: $0.02 per successful call
| Input | Type | Notes |
|---|---|---|
ticker | string | (min length 1, max length 10) |
form_types (optional) | string[] | (default []) |
limit (optional) | integer | (min 1, max 50, default 10) |
Output: ticker, cik, entity_name, form_types, count, filings[{form, filing_date, report_date, accepted_at, accession_number, description, document_url, index_url}], source, retrieved_at.
Example arguments:
{
"ticker": "MSFT",
"form_types": [
"10-K",
"10-Q"
],
"limit": 5
}
Pricing
| Pay per call (x402 USDC or metered API key) | $0.02 per successful billed call |
| Pro (API key, flat monthly) | $29.00/month for this server |
Secure checkout by Stripe. Your API key is shown once on the confirmation page.
Authentication
- API key:
Authorization: Bearer <API_KEY>. Pro keys are scoped to this server. Manage or cancel a Pro subscription:curl -X POST https://mcp-sec-edgar.scorematic.workers.dev/billing/portal -H 'authorization: Bearer YOUR_API_KEY'returns a Stripe Customer Portal link. - x402: Not enabled yet on this deployment (
wallet_not_configured). Use an API key.
Limitations
- Only values a company actually tagged in XBRL are returned; metrics a filer didn't report come back in missing_metrics rather than being derived.
- Periods are selected by SEC calendar frames. Many companies don't report a standalone fiscal Q4, so quarterly series can skip Q4.
- Filers reporting under IFRS or custom taxonomies may not have us-gaap concepts; pass raw concepts (e.g. ifrs-full:Revenue) where needed.
- Ticker lookup uses SEC's company_tickers.json (cached up to 1 hour); delisted or very new tickers may not resolve.
- Subject to SEC fair-access rate limits; upstream failures return error.code = upstream_error and are not billed.
Data sources
Not legal, tax, customs or investment advice. Data is returned as published by the upstream source.