EDGAR MCP
EDGAR MCP — SEC companyfacts, frames, Form 4, 13F
User-Agent で SEC EDGAR に接続する MCP サーバー。API キーは不要。財務データは FMP ではなく companyfacts / frames から読み取ります。XBRL タグのマッピングは xbrl_map.py にあります。
ツール
ツール | 説明 |
| ティッカー / CIK / 名前で検索 |
| SIC、取引所、会計年度末 |
| マッピング済みの損益計算書、貸借対照表、キャッシュフロー |
| 単一の us-gaap/ifrs/dei タグの生シリーズ |
| 同じコンセプト+期間、全提出者(スライス) |
| 10-K、10-Q、8-K、4、13F-HR... |
| インサイダー取引(発行体ティッカーまたは個人 CIK) |
| 機関の 13F-HR ポートフォリオ(株式ティッカーではない) |
| 全文検索(efts.sec.gov) |
Related MCP server: edgarmcp
インストール
cd edgar-mcp
python -m venv .venv
.venv\Scripts\activate
pip install -r requirements.txt
copy .env.example .env.env 内の EDGAR_USER_AGENT は実名+メールアドレスである必要があります。SEC は一般的な python-requests エージェントを 403 で遮断します。
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 がある場合、デフォルトのトランスポートは http で、エンドポイントは https://<railway-host>/mcp です。MCP_TRANSPORT=stdio を設定しないでください — プロセスは待機せず、Railway は「オンライン」と表示されますが、Claude は接続できません。
変数
キー | 値 |
|
|
|
|
| 長いランダム文字列 |
確認: https://<host>/health → {"ok": true, ...}
Claude(claude.ai / Desktop Connectors)
Customize → Connectors → Add custom connector
URL:
https://<host>/mcp(末尾に/sseは付けない)Request headers →
Authorization=Bearer <MCP_AUTH_TOKEN>(Bearerのスペースを含む)Add をクリックし、チャットで
+→ Connectors から開く
Claude Code
claude mcp add --transport http edgar https://<host>/mcp --header "Authorization: Bearer <MCP_AUTH_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 リクエスト/秒、User-Agent 必須)
13F の値は SEC の慣例に従い千米ドルです。13F は株式ではなく、機関が提出します。
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
EDGAR MCP — SEC EDGAR public APIs (free, no auth)
SEC MCP — SEC EDGAR public APIs (free, no auth)
Query SEC EDGAR filings, XBRL financials, and company data via MCP. STDIO or Streamable HTTP.
Read, search, and compare SEC EDGAR filings, pull tables, and run AI analysis from any MCP client.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceHosted 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.1MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for SEC EDGAR that provides real-time access to filings, financial statements, and full-text search across all EDGAR documents.Apache 2.0
- AlicenseNot gradedqualityDmaintenanceA free, key-less MCP server for SEC EDGAR that provides company filings, XBRL financial facts, and full-text search directly from the SEC.MIT
- AlicenseAqualityDmaintenanceAn MCP server that wraps SEC EDGAR APIs to provide company financial data, screening metrics, and disclosure signals for investment diligence, with every figure traced to its source filing.8MIT