Skip to main content
Glama

EDGAR MCP — SEC companyfacts, frames, Form 4, 13F

User-Agent で SEC EDGAR に接続する MCP サーバー。API キーは不要。財務データは FMP ではなく companyfacts / frames から読み取ります。XBRL タグのマッピングは xbrl_map.py にあります。

ツール

ツール

説明

search_company

ティッカー / CIK / 名前で検索

get_company

SIC、取引所、会計年度末

get_financials

マッピング済みの損益計算書、貸借対照表、キャッシュフロー

get_concept

単一の us-gaap/ifrs/dei タグの生シリーズ

get_frame

同じコンセプト+期間、全提出者(スライス)

list_filings

10-K、10-Q、8-K、4、13F-HR...

get_form4

インサイダー取引(発行体ティッカーまたは個人 CIK)

get_13f

機関の 13F-HR ポートフォリオ(株式ティッカーではない)

search_filings

全文検索(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=stdio

Cursor(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 は接続できません。

変数

キー

値

EDGAR_USER_AGENT

氏名 you@email.com(SEC の 403 を避けるため実名)

MCP_TRANSPORT

http(または追加しない)

MCP_AUTH_TOKEN

長いランダム文字列

確認: https://<host>/health → {"ok": true, ...}

Claude(claude.ai / Desktop Connectors)

  1. Customize → Connectors → Add custom connector

  2. URL: https://<host>/mcp(末尾に /sse は付けない)

  3. Request headers → Authorization = Bearer <MCP_AUTH_TOKEN>(Bearer のスペースを含む)

  4. 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

リソース

13F の値は SEC の慣例に従い千米ドルです。13F は株式ではなく、機関が提出します。

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Hosted 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.
    13 npm
    1
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    MCP server for SEC EDGAR that provides real-time access to filings, financial statements, and full-text search across all EDGAR documents.
    Apache 2.0
  • A
    license
    Not graded
    quality
    D
    maintenance
    A free, key-less MCP server for SEC EDGAR that provides company filings, XBRL financial facts, and full-text search directly from the SEC.
    MIT
  • A
    license
    A
    quality
    B
    maintenance
    An 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.
    8
    MIT