sec-edgar-mcp

by @stefanoamorelli

Sec Edgar MCP Server

Pull U.S. SEC EDGAR filings, XBRL-parsed financial statements, and Form 3/4/5 insider transactions straight into AI assistants with exact numeric precision and source filing URLs. Built in Python on sec-edgar-toolkit under AGPL-3.0, it launches via Docker stdio or private-network Streamable HTTP.

Finance & Commerce393pythonAGPL-3.0

Server facts

sec-edgar-mcp

GitHub stars

393

Last commit

Nov 1, 2026

Runtime

python

License

AGPL-3.0

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)
Documented launch / install command
docker run -i --rm -e "SEC_EDGAR_USER_AGENT=Your Name (your@email.com)" stefanoamorelli/sec-edgar-mcp:latest

Add `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.

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.

Claude Desktop configuration
{
  "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"
      ]
    }
  }
}

Read the Claude Desktop setup guide

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.

Cursor configuration
{
  "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"
      ]
    }
  }
}

Read the Cursor setup guide

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.

VS Code configuration
{
  "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"
      ]
    }
  }
}

Read the VS Code setup guide

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.

Windsurf configuration
{
  "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"
      ]
    }
  }
}

Read the Windsurf setup guide

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.

Claude Code configuration
{
  "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"
      ]
    }
  }
}

Read the Claude Code setup guide

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.

Frequently asked questions

Run the official Docker image over `stdio` by placing `docker run -i --rm -e SEC_EDGAR_USER_AGENT="Your Name (your@email.com)" stefanoamorelli/sec-edgar-mcp:latest` inside your client's `mcpServers` config, making sure the `-i` flag stays enabled for JSON-RPC. If you prefer Python via `pip` or `uv` instead of Docker, follow the quickstart instructions at `sec-edgar-mcp.amorelli.tech/setup/quickstart`.

Related MCP servers