Server facts
sec-edgar-mcp
GitHub stars
393
Last commit
Nov 1, 2026
Runtime
python
License
AGPL-3.0
Project
- Author
- stefanoamorelli
- Repository
- github.com/stefanoamorelli/sec-edgar-mcp
- Website
- sec-edgar-mcp.amorelli.tech/
- License
- AGPL-3.0
- Category
- Finance & Commerce
Tech
- Runtime
- python
- Transports
- stdiostreamable-http
- Remote access
- No
- Authentication
- SEC EDGAR User-Agent (SEC_EDGAR_USER_AGENT)
Activity
- GitHub stars
- 393
- Last commit
- Data as of
Tags
- edgar
- edgar database
- finance
- genai
- llm
- mcp
- mcp server
Overview
Financial analysts and AI engineers building a `sec edgar mcp` setup can connect local MCP clients to U.S. Securities and Exchange Commission data through `stefanoamorelli/sec-edgar-mcp` (Python, AGPL-3.0, built on `sec-edgar-toolkit`). Deployment requires no paid API key—only a compliant `SEC_EDGAR_USER_AGENT` string formatted with your name and email address. The quickest local launch runs the container image `stefanoamorelli/sec-edgar-mcp:latest` via Docker with interactive `-i` enabled so MCP JSON-RPC communication flows cleanly over `stdio`; alternative `pip` and `uv` setups are documented on `sec-edgar-mcp.amorelli.tech`. Platforms such as Dify can instead launch the Python server module with `--transport streamable-http` listening on port `9870`, though HTTP mode carries no authentication and must remain restricted to private networks.
Rather than scraping web summaries, the server structures SEC EDGAR data across dedicated company, filing, financial, and insider-trading capabilities: CIK lookup alongside company metadata and facts, full `10-K`, `10-Q`, and `8-K` retrieval with section extraction, XBRL-parsed cash flow statements, income statements, and balance sheets, plus Form 3, Form 4, and Form 5 insider trading records. Every response attaches direct SEC filing URLs so analysts can verify cited figures, backed by a Promptfoo evaluation harness in `evals/`. This open-source server is independently maintained with no SEC affiliation or endorsement.
Install & configure
Requirements
- Docker (`stefanoamorelli/sec-edgar-mcp:latest`) or Python with `pip` / `uv`
- `SEC_EDGAR_USER_AGENT` environment variable set to your identifying name and email (e.g., `Your Name (your@email.com)`)
- Private network isolation if running `--transport streamable-http` on port 9870 (no built-in HTTP authentication)
docker run -i --rm -e "SEC_EDGAR_USER_AGENT=Your Name (your@email.com)" stefanoamorelli/sec-edgar-mcp:latestAdd `docker run -i --rm -e SEC_EDGAR_USER_AGENT=... stefanoamorelli/sec-edgar-mcp:latest` under `mcpServers` for local stdio clients (keep `-i` for JSON-RPC). For `pip` or `uv` installs, see `sec-edgar-mcp.amorelli.tech/setup/quickstart`; for Dify or HTTP platforms, run `python -m sec_edgar_mcp.server --transport streamable-http --port 9870` on a private network.
Examples are translated from the published configuration. Supply your own credentials and verify requirements in the upstream README. Remote connectors are shown only where a supported configuration format is known.
Config file · macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Use Settings → Developer → Edit Config when available. Do not assume a Linux configuration path; check the client documentation for your platform. Remote servers use the app’s connector flow when supported, not the local stdio file shown here. Merge this example with existing settings; do not overwrite unrelated servers.
{
"mcpServers": {
"sec-edgar-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"SEC_EDGAR_USER_AGENT=Your Name (your@email.com)",
"stefanoamorelli/sec-edgar-mcp:latest"
]
}
}
}Config file · Project: .cursor/mcp.json
User: ~/.cursor/mcp.json
The project path is relative to the workspace root. The tilde denotes your user home directory. Use Cursor’s MCP settings to confirm which configuration and scope your installed version is reading. Merge this example with existing settings; do not overwrite unrelated servers.
{
"mcpServers": {
"sec-edgar-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"SEC_EDGAR_USER_AGENT=Your Name (your@email.com)",
"stefanoamorelli/sec-edgar-mcp:latest"
]
}
}
}Config file · Workspace: .vscode/mcp.json
For user scope, use the “MCP: Open User Configuration” command if available. Do not guess a user configuration path across operating systems, profiles, containers, or remote workspaces; check the client documentation. Merge this example with existing settings; do not overwrite unrelated servers.
{
"servers": {
"sec-edgar-mcp": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"SEC_EDGAR_USER_AGENT=Your Name (your@email.com)",
"stefanoamorelli/sec-edgar-mcp:latest"
]
}
}
}Config file · macOS/Linux: ~/.codeium/windsurf/mcp_config.json
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Open the MCP configuration through Windsurf’s settings when possible to confirm the active file. Paths can differ in managed or future releases; check the client documentation if this location is not present. Merge this example with existing settings; do not overwrite unrelated servers.
{
"mcpServers": {
"sec-edgar-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"SEC_EDGAR_USER_AGENT=Your Name (your@email.com)",
"stefanoamorelli/sec-edgar-mcp:latest"
]
}
}
}Config file · Project scope: .mcp.json at the repository root
The project file uses mcpServers. For user scope, use claude mcp add --scope user rather than assuming .mcp.json in your home directory is the user configuration. Check the client documentation for managed settings and storage details. Merge this example with existing settings; do not overwrite unrelated servers.
{
"mcpServers": {
"sec-edgar-mcp": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"SEC_EDGAR_USER_AGENT=Your Name (your@email.com)",
"stefanoamorelli/sec-edgar-mcp:latest"
]
}
}
}Examples are translated from the published configuration. Supply your own credentials and verify requirements in the upstream README. Remote connectors are shown only where a supported configuration format is known.
Use cases
- Look up company CIK identifiers, baseline company profiles, and structured SEC company facts during equity screening.
- Extract specific sections from 10-K, 10-Q, and 8-K filings with direct SEC filing URLs attached for auditability.
- Inspect XBRL-parsed balance sheets, income statements, and cash flow statements with exact numeric precision.
- Track executive and director buying or selling through Form 3, Form 4, and Form 5 insider transaction queries.
Strengths
- Returns XBRL-parsed financial statements with exact numeric precision and includes direct SEC filing URLs on every response.
- Requires no third-party financial data subscription—only a standard `SEC_EDGAR_USER_AGENT` header.
- Supports both containerized `stdio` for desktop MCP clients and `streamable-http` (port 9870) for platforms like Dify.
- Ships a Promptfoo-based evaluation suite (`evals/`) and a Zenodo DOI citation for reproducible financial research.
Limitations
- Licensed under AGPL-3.0, so proprietary commercial deployments that cannot comply with AGPL terms need separate commercial licensing.
- Streamable HTTP mode includes no authentication layer and must stay strictly inside private networks.
- The root README summarizes tool categories rather than enumerating individual tool names and parameter schemas.
sec-edgar-mcp setup notes
- sec-edgar-mcp's example uses stdio, while its catalog transports are stdio / streamable-http; use the example's connection type.