EDGAR MCP
EDGAR MCP — SEC companyfacts、frames、Form 4、13F
通过 User-Agent 连接 SEC EDGAR 的 MCP 服务器。无需 API key。财务数据不通过 FMP,而是通过 companyfacts / frames 读取;XBRL tag 映射位于 xbrl_map.py 中。
工具
工具 | 用途 |
| Ticker / CIK / 名称 |
| SIC、交易所、财年结束日 |
| 映射后的收入、资产负债表、现金流量 |
| 单个 us-gaap/ifrs/dei tag 的原始序列 |
| 同一概念 + 期间,所有 filers(截面) |
| 10-K、10-Q、8-K、4、13F-HR... |
| 内部人交易(issuer ticker 或个人 CIK) |
| 机构的 13F-HR 投资组合(不是股票 ticker) |
| 全文检索(efts.sec.gov) |
Related MCP server: sec-edgar-mcp
安装
cd edgar-mcp
python -m venv .venv
.venv\Scripts\activate
pip install -r requirements.txt
copy .env.example .env.env 中的 EDGAR_USER_AGENT 必须是真实姓名 + 电子邮件。SEC 会以 403 拒绝通用的 python-requests 代理。
EDGAR_USER_AGENT=Your Name your.email@example.com
MCP_TRANSPORT=stdioCursor(stdio)
%USERPROFILE%\.cursor\mcp.json:
{
"mcpServers": {
"edgar": {
"command": "python",
"args": ["server.py"],
"cwd": "C:\\Users\\yunus\\Documents\\dev\\edgar-mcp",
"env": {
"MCP_TRANSPORT": "stdio",
"EDGAR_USER_AGENT": "Your Name your.email@example.com"
}
}
}
}Railway → Claude(Streamable HTTP)
如果存在 PORT,默认 transport 为 http,endpoint 为 https://<railway-host>/mcp。不要设置 MCP_TRANSPORT=stdio — 进程不会监听,Railway 显示 "online",但 Claude 无法连接。
变量
Key | 值 |
|
|
|
|
| 对于 Claude.ai 不要设置。Connector 表单不会发送 header;token 会产生 401 + "Authentication failed"。 |
检查: https://<host>/health → {"ok": true, ...}
Claude(claude.ai / Desktop Connectors)
Customize → Connectors → Add custom connector
URL:
https://<host>/mcp(末尾不是/sse)OAuth 字段留空,关闭 Individual sign-in
点击 Add,在聊天中用
+→ Connectors 打开
如果 Claude Code 能发送 header,则设置 MCP_AUTH_REQUIRED=true 和 Authorization: Bearer <token>。
旧版 /sse 使用 MCP_TRANSPORT=sse(Claude connector 不推荐)。
测试
python -m unittest tests.test_xbrl_map tests.test_form_parsers tests.test_http_auth tests.test_client_utils资源
companyfacts / concept / frames:https://data.sec.gov
submissions:https://data.sec.gov/submissions
archives:https://www.sec.gov/Archives/edgar
full-text:https://efts.sec.gov/LATEST/search-index
Fair Access:https://www.sec.gov/os/webmaster-faq#code-support(最多 10 req/s,必须提供 User-Agent)
13F 数值按 SEC 惯例以 千美元 为单位。13F 由机构填写,而非个股。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityAmaintenanceMCP server providing read-only access to SEC EDGAR filings, allowing LLMs to look up companies, search filings, and retrieve securities offering data.31MIT
- Alicense-qualityBmaintenanceHosted MCP server that gives AI agents real-time access to SEC EDGAR filings search, 10-K/8-K reading, XBRL financial facts, and insider-trade (Form 4) alerts.91MIT
- Alicense-qualityDmaintenanceMCP server for SEC EDGAR that provides real-time access to filings, financial statements, and full-text search across all EDGAR documents.Apache 2.0
- Alicense-qualityCmaintenanceA free, key-less MCP server for SEC EDGAR that provides company filings, XBRL financial facts, and full-text search directly from the SEC.MIT
Related MCP Connectors
Query SEC EDGAR filings, XBRL financials, and company data through MCP. STDIO & Streamable HTTP.
SEC XBRL MCP — wraps SEC EDGAR XBRL API (data.sec.gov)
SEC EDGAR filings for AI agents: company lookup, filings, financials, insider trades. No keys.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/emresoykan/edgar-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server