sec-engine
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
sec-engine
LLM-optimized SEC EDGAR MCP server. Provides nine tools that wrap the SEC's public JSON APIs for financial data extraction and analysis — no authentication required.
Tools
Tool | Purpose |
| Ticker/CIK to company identity (name, SIC, exchanges, fiscal year end) |
| List SEC filings with form type and date filtering |
| Full-text search across every filer, 2001-present |
| Latest key metrics (~20) + full XBRL concept index |
| Time series for one XBRL metric across all filings |
| Compare one metric across ALL filers for peer/sector screening |
| Extract narrative text from 10-K/10-Q Items (MD&A, Risk Factors, etc.) |
| List every file in a filing's archive directory |
| Read any file in any filing, of any form type |
Reaching filings that aren't 10-K/10-Q
filing_section parses Item N headers, so it only works on Item-structured
filings. Everything else — Form 144, Form 4, N-CSR, 424B3, DEF 14A, exhibits —
goes through filing_document, which dispatches on file type:
XML (Form 144, Forms 3/4/5) parses into nested structured data. Repeated rows such as a Form 144's Table II become arrays.
HTML is stripped to clean text.
Prospectuses and N-CSRs routinely exceed 5 MB. Pass contains= to jump
straight to a phrase and get context windows back, rather than paging through
the document with offset=.
Some filers submit a PDF converted to HTML — each page a background image with
every word absolutely positioned over it. Such a document has no tables and no
reading order in its markup, so filing_document detects the layout and
rebuilds the order from the coordinates, marking column breaks with |.
Without this, figures shred into their digits and columns are lost. Detection
is structural and conventional filings are unaffected.
When the filer differs from the issuer — as it does for Form 144 and Form 4 —
the filing won't appear under the issuer in filings(). Use search_filings,
which returns the archive_cik and document name needed to fetch it.
Related MCP server: edgar-mcp
Installation
pip install sec-engineOr with uv:
uv pip install sec-engineUsage
Claude Desktop
Add to your Claude Desktop config (claude_desktop_config.json):
{
"mcpServers": {
"sec-engine": {
"command": "sec-engine"
}
}
}Docker Compose
Edit SEC_EDGAR_USER_AGENT in compose.yml with your name and email, then:
docker compose up --buildDirect (stdio)
sec-engineDirect (streamable HTTP)
SEC_ENGINE_TRANSPORT=streamable-http sec-engineThe server supports both stdio and streamable HTTP transports via the Model Context Protocol.
Configuration
All configuration is via environment variables:
Variable | Default | Description |
|
| User-Agent sent to SEC.gov (SEC requires a descriptive UA) |
|
| Transport protocol: |
|
| Listen address (streamable-http only) |
|
| Listen port (streamable-http only) |
|
| HTTP endpoint path (streamable-http only) |
| Comma-separated allowed hosts for DNS rebinding protection (e.g. |
Requirements
Python >= 3.11
Disclaimer
This software retrieves publicly available data from the SEC EDGAR system. It is provided as-is for informational purposes only and does not constitute financial, legal, or investment advice. The authors are not responsible for how you use this data or any consequences arising from its use. You are solely responsible for complying with all applicable SEC policies, regulations, and terms of service.
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
SEC EDGAR filings for AI agents: company lookup, filings, financials, insider trades. No keys.
SEC EDGAR filings for AI agents: company lookup, filings, financials, insider trades. No keys.
SEC EDGAR data as tools: filing search, full text, XBRL financials, insider trades, 13F, 8-K events.
SEC filings — 13F, Form 4, 8-K, 13D, IPO and short-interest data — as 17 agent tools.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables LLMs to download, parse, and analyze SEC EDGAR filings, including 10-K/Q reports, XBRL financial statements, and insider trading data. It provides structured access to institutional holdings, corporate events, and financial facts for comprehensive investment research.19MIT
- 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
- AlicenseAqualityBmaintenanceQuery SEC EDGAR for company filings, financial data, and executive disclosures. Search by company name or ticker, retrieve 10-K/10-Q/8-K filings, and extract structured financials — backed by the official SEC EDGAR API, built for AI agents.4MIT
- AlicenseNot gradedqualityDmaintenanceEnables LLMs to access SEC EDGAR data: search filings, extract sections, pull structured financials, and track insider transactions.20 npmMIT