SEC EDGAR

io.github.danishashko由 GitHub 账号 danishashko 发布v1.0.2更新于 Oct 24, 2026

SEC EDGAR filings (10-K, 10-Q, 8-K), XBRL financials, and full-text filing search. No API key.

发布方自己的服务:edgar.tools SEC Intelligence

已验证STDIO仅桌面网页搜索与抓取金融

概览

AI 生成的概览

一个本地 MCP 服务器,让助手按股票代码、CIK 或公司名查询美国 SEC EDGAR 公司申报文件、XBRL 财务数据和申报全文检索。

可以做什么
按公司名或股票代码查找公司并解析其 CIK,所有工具都支持结果数量限制以及 markdown 或 JSON 输出格式。列出任意表格类型的近期申报文件(含日期和文档链接),或一次调用获取某类型的最新申报。读取 XBRL 主要财务数据,如营收、净利润、资产、权益、现金和每股收益,或获取单个 GAAP 科目历年的报告数值。对约近十年的申报文件做关键词或短语全文检索,可按表格类型筛选。
适用场景
适合用自然语言询问美国上市公司情况:最新年报或季报、近期重大事项申报、主要财务数据、某项指标多年趋势,或哪些公司在申报中提及某话题。面向个人、教学和研究用途,而非生产级财务分析。
运行要求
通过 stdio 在本地运行,通常用 npx 从 npm 包 edgar-mcp 启动;需要 Node.js 16+ 和 Python 3.10+,首次启动会创建 Python 环境并安装依赖。环境变量 SEC_USER_AGENT 应填写带联系方式的描述性 User-Agent。需要能访问公开的 SEC EDGAR API;无需 API 密钥或账号。
安装前请注意
SEC_USER_AGENT 要求填写你自己的姓名或邮箱,并会随每次请求发送给 SEC;虽有默认值,但应设置自己的信息以符合 SEC 政策。请求由你的机器直接发往 SEC,不存储也不经代理。EDGAR 限制约每秒 10 次请求,服务器会在限流时重试。数据按原样提供,依赖前应核对原始申报文件;该项目与 SEC 无关联,也未获其认可。

安装

在 SourceWeft 中

  1. 打开 控制台中的 SEC EDGAR,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

SEC EDGAR MCP Server 🏛️

[npm version] [npm downloads] [Python] [License: MIT]

U.S. SEC filings and financial data for Claude Desktop and any MCP-compatible client, powered by SEC EDGAR. Search companies, pull filings (10-K, 10-Q, 8-K, Form 4, ...), read XBRL financials, and full-text search across all filings — all from natural language. No API key required.

npm package: edgar-mcp  ·  GitHub repo: danishashko/edgar-mcp.

🎯 What You Get

  • 🔎 Company lookup by name or ticker → CIK
  • 🗂️ Recent filings (any form type) with direct document links
  • 📄 Latest filing of a type (newest 10-K / 10-Q / 8-K) in one call
  • 💰 Financial highlights (revenue, net income, assets, equity, EPS) from XBRL
  • 📈 Concept history — any GAAP line item over time
  • 🔬 Full-text search across the last ~10 years of filings

Every tool returns human-readable markdown by default, or structured JSON on request (response_format: "json"). Lightweight (Python standard library + mcp only), no API key, retries on rate limits.

🚀 Quick Start

Add this to your Claude Desktop config and restart Claude:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
json
{  "mcpServers": {    "edgar": {      "command": "npx",      "args": ["-y", "edgar-mcp"],      "env": {        "SEC_USER_AGENT": "your-app-name [email protected]"      }    }  }}

The SEC asks every API client to send a descriptive User-Agent with contact info. Set SEC_USER_AGENT to your own name/email (a default is provided so it works out of the box). On first launch the npx wrapper creates an isolated Python environment and installs the dependency (one-time, ~a minute). You need Python 3.10+ and Node.js 16+.

Prefer a global install?

bash
npm install -g edgar-mcp
json
{  "mcpServers": {    "edgar": {      "command": "edgar-mcp",      "env": { "SEC_USER_AGENT": "your-app-name [email protected]" }    }  }}

🔧 Available Tools

ToolWhat it returnsParameters
search_companyCompanies matching a name/ticker, with their CIKquery, limit
get_recent_filingsRecent filings (form, dates, link), optional form filteridentifier, form_type, limit
get_latest_filingThe newest filing of a given type, with a document linkidentifier, form_type
get_company_factsHeadline financials (revenue, net income, assets, equity, cash, EPS)identifier
get_conceptOne XBRL concept's reported history over timeidentifier, concept, limit
full_text_searchFilings matching a keyword/phrase across all companiesquery, forms, limit

Every tool also accepts response_format ("markdown", the default, or "json"). identifier accepts a ticker, CIK, or company name.

Common XBRL concepts for get_concept: Revenues / RevenueFromContractWithCustomerExcludingAssessedTax, NetIncomeLoss, Assets, Liabilities, StockholdersEquity, EarningsPerShareDiluted.

💬 Example Prompts

Once the server is connected, just ask Claude:

  • "What's Apple's latest 10-K?"
  • "Show me Tesla's recent 8-K filings."
  • "What are Microsoft's headline financials?"
  • "Show me NVIDIA's net income over the last few years."
  • "Which companies mention 'quantum computing' in their 10-Ks?"
  • "Find the CIK for Berkshire Hathaway."

🐛 Troubleshooting

"SEC EDGAR is rate-limiting requests" EDGAR allows ~10 requests/second. The server retries automatically; wait a moment if it persists.

"Not found" Use search_company to confirm the exact ticker/CIK first.

"Command not found" / "Python not found" Ensure Python 3.10+ and Node.js 16+ are installed and on your PATH. On macOS/Linux, try python3.

Tools not showing up in Claude

  1. Confirm the config file is valid JSON (no trailing commas).
  2. Fully quit and reopen Claude Desktop.

Using a different model or provider (LiteLLM, OpenRouter, NVIDIA NIM, a local model) This server never talks to a model. Your client starts it as a local process and speaks JSON-RPC over stdin/stdout, so changing ANTHROPIC_BASE_URL or swapping the model behind your client has no effect on it. If tools stop firing after a switch like that, check two things: the model has to support function calling, and a proxy configured to drop unsupported parameters can silently strip your tool definitions, which produces no error at all. Run /mcp in your client (or claude mcp list) to confirm the server is connected before suspecting the server.

🛠️ Manual Installation (Alternative)

If you would rather run the Python file directly instead of via npx:

1. Download the server and install the dependency

bash
pip install mcp

(or pip3 on macOS/Linux)

2. Point Claude Desktop at it

json
{  "mcpServers": {    "edgar": {      "command": "python3",      "args": ["/absolute/path/to/edgar_mcp.py"],      "env": { "SEC_USER_AGENT": "your-app-name [email protected]" }    }  }}

On Windows use "command": "python" and a path like "C:\\path\\to\\edgar_mcp.py".

3. Restart Claude Desktop.

🔒 Privacy & Rate Limits

  • Uses the official SEC EDGAR APIs — public, no key.
  • Requests go straight from your machine to the SEC. Nothing is stored or proxied.
  • The SEC requires a descriptive User-Agent with contact info and limits ~10 requests/second.
  • Intended for personal, educational, and research use.

📝 Notes

  • identifier is flexible: ticker (AAPL), CIK (320193), or name (Apple).
  • Financial data comes from XBRL, first required by the SEC in 2009, so history goes back that far for most filers.
  • get_company_facts returns highlights; use get_concept for the full series of any one metric.

📋 Changelog

See CHANGELOG.md for the full version history.

📚 Resources

⚖️ Legal Disclaimer

This tool uses the public SEC EDGAR APIs but is not affiliated with or endorsed by the U.S. Securities and Exchange Commission. Use is subject to the SEC's website policies. Data is provided as-is for personal, educational, and research purposes; verify against the original filings before relying on it.

👤 Author

Daniel Shashko

📄 License

MIT © Daniel Shashko

来源:README.md,提交 6732796

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.0.2最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

其他 Edgar 集成