SEC EDGAR

v1.0.5Finance & Fintechstable

SEC EDGAR MCP server that provides access to the US public filings through the US SEC EDGAR API

aiartificial-intelligenceedgaredgar-databasefinance
Share:
270
Stars
0
Downloads
0
Weekly
0/5

What is SEC EDGAR?

SEC EDGAR is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to sec edgar mcp server that provides access to the us public filings through the us sec edgar api

SEC EDGAR MCP server that provides access to the US public filings through the US SEC EDGAR API

This server falls under the Finance & Fintech category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • SEC EDGAR MCP server that provides access to the US public f

Use Cases

Access SEC public filings
Analyze financial documents
Research company information
stefanoamorelli

Maintainer

LicenseAGPL-3.0
Languagepython
Versionv1.0.5
UpdatedMay 22, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

NPM

npx -y sec-edgar

PIP

pip install sec-edgar-mcp

Manual Installation

npx -y sec-edgar

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use SEC EDGAR

The SEC EDGAR MCP server connects AI assistants directly to the U.S. Securities and Exchange Commission's public EDGAR database, enabling retrieval and analysis of company filings, financial statements, and insider trading data through natural language. Built on the edgartools Python library, it exposes tools for looking up companies by CIK or ticker, retrieving 10-K, 10-Q, and 8-K filings, parsing XBRL financial data with exact numeric precision, and monitoring insider trading transactions. Financial analysts and developers use it to automate due diligence research, extract structured financial data from SEC filings, and build AI-powered financial analysis workflows.

Prerequisites

  • Python 3.11 or higher (for pip installation) or Docker
  • A user agent string in the format 'Your Name ([email protected])' for the SEC EDGAR API
  • No SEC API key required — the service uses public data
  • An MCP-compatible client such as Claude Desktop or Claude Code
1

Install the sec-edgar-mcp package

Install via pip, conda, or use the Docker image. The pip method is the simplest for local development.

pip install sec-edgar-mcp
# or via conda:
conda install -c stefanoamorelli sec-edgar-mcp
# or via npx:
npx -y sec-edgar
2

Set your SEC EDGAR user agent

The SEC EDGAR API requires a user agent identifying who is making requests. Set the SEC_EDGAR_USER_AGENT environment variable to your name and email in the required format.

export SEC_EDGAR_USER_AGENT="Your Name ([email protected])"
3

Add the server to Claude Desktop config

For the Docker installation (recommended for isolation), add this block to your claude_desktop_config.json. Replace the user agent value with your own name and email.

{
  "mcpServers": {
    "sec-edgar-mcp": {
      "command": "docker",
      "args": [
        "run", "-i", "--rm",
        "-e", "SEC_EDGAR_USER_AGENT=Your Name ([email protected])",
        "stefanoamorelli/sec-edgar-mcp:latest"
      ]
    }
  }
}
4

Or use the Python / npx installation

If you prefer not to use Docker, configure the server to run via the installed Python package or via npx.

{
  "mcpServers": {
    "sec-edgar-mcp": {
      "command": "npx",
      "args": ["-y", "sec-edgar"],
      "env": {
        "SEC_EDGAR_USER_AGENT": "Your Name ([email protected])"
      }
    }
  }
}
5

Restart Claude Desktop and query SEC filings

Restart Claude Desktop after saving the config. You can now ask Claude to look up companies, retrieve filings, extract financial statements, and analyze insider trading data from SEC EDGAR.

SEC EDGAR Examples

Client configuration

Claude Desktop config using Docker to run the sec-edgar-mcp container with user agent identification.

{
  "mcpServers": {
    "sec-edgar-mcp": {
      "command": "docker",
      "args": [
        "run", "-i", "--rm",
        "-e", "SEC_EDGAR_USER_AGENT=Jane Smith ([email protected])",
        "stefanoamorelli/sec-edgar-mcp:latest"
      ]
    }
  }
}

Prompts to try

Sample prompts for researching public companies and their SEC filings.

- "Look up Apple's CIK number and retrieve their most recent 10-K filing"
- "Get the income statement from Tesla's latest 10-Q with exact revenue and net income figures"
- "Show me all insider trading transactions filed by Microsoft executives in the last 90 days"
- "Compare the balance sheets of Amazon and Google from their most recent annual reports"
- "Find all 8-K filings from Nvidia in the past 6 months and summarize the key announcements"

Troubleshooting SEC EDGAR

403 Forbidden error from the SEC EDGAR API

The SEC requires a valid user agent header. Ensure SEC_EDGAR_USER_AGENT is set to the exact format 'Your Name ([email protected])' with real identifying information. The SEC blocks requests from generic or missing user agents.

Docker image not found or pull fails

Ensure Docker is running and you have internet access. Pull the image manually first: docker pull stefanoamorelli/sec-edgar-mcp:latest. If Docker is not available, use the pip or npx installation method instead.

XBRL financial data is missing or incomplete for some filings

Not all SEC filings include structured XBRL data, especially older filings or some smaller company reports. Try requesting a more recent filing year, or use the document retrieval tools to get the raw filing text and ask Claude to extract the numbers.

Frequently Asked Questions about SEC EDGAR

What is SEC EDGAR?

SEC EDGAR is a Model Context Protocol (MCP) server that sec edgar mcp server that provides access to the us public filings through the us sec edgar api It connects AI assistants to external tools and data sources through a standardized interface.

How do I install SEC EDGAR?

Install via npm with the command: npx -y sec-edgar. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).

Which AI clients work with SEC EDGAR?

SEC EDGAR works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is SEC EDGAR free to use?

Yes, SEC EDGAR is open source and available under the AGPL-3.0 license. You can use it freely in both personal and commercial projects.

Browse More Finance & Fintech MCP Servers

Explore all finance & fintech servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "sec-edgar": { "command": "npx", "args": ["-y", "sec-edgar"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use SEC EDGAR?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides