EDGAR MCP
MCP server for SEC EDGAR data, providing company search, financial statements, XBRL concepts/frames, filings, Form 4 insider trades, and 13F filings via User-Agent authentication.
README
EDGAR MCP — SEC companyfacts, frames, Form 4, 13F
SEC EDGAR'a User-Agent ile bağlanan MCP sunucusu. API key yok. Finansallar FMP değil, companyfacts / frames üzerinden okunur; XBRL tag eşlemesi xbrl_map.py içindedir.
Tool'lar
| Tool | Ne işe yarar |
|---|---|
search_company |
Ticker / CIK / ad |
get_company |
SIC, borsa, mali yıl sonu |
get_financials |
Eşlenmiş gelir, bilanço, nakit akış |
get_concept |
Tek us-gaap/ifrs/dei tag'inin ham serisi |
get_frame |
Aynı kavram + dönem, tüm filers (kesit) |
list_filings |
10-K, 10-Q, 8-K, 4, 13F-HR... |
get_form4 |
Insider işlemleri (issuer ticker veya kişi CIK) |
get_13f |
Kurumun 13F-HR portföyü (hisse ticker'ı değil) |
search_filings |
Full-text (efts.sec.gov) |
Finansal eşleme notları
balance.balance_check, aktiflerin yükümlülükler + özkaynak + azınlık paylarıyla kapanıp kapanmadığını kontrol eder; eksik bileşenleri açıkça listeler.- FD/EV hesabında
minority_interestile birlikte mezzanine/temporary equity niteliğindekiredeemable_noncontrolling_interestda borç benzeri kalem olarak eklenmelidir.
Kurulum
cd edgar-mcp
python -m venv .venv
.venv\Scripts\activate
pip install -r requirements.txt
copy .env.example .env
.env içinde EDGAR_USER_AGENT gerçek isim + e-posta olmalı. SEC generic python-requests ajanlarını 403 ile keser.
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 varsa varsayılan transport http ve endpoint https://<railway-host>/mcp. MCP_TRANSPORT=stdio koyma — süreç dinlemez, Railway "online" görünür ama Claude bağlanamaz.
Variables
| Key | Değer |
|---|---|
EDGAR_USER_AGENT |
Ad Soyad you@email.com (SEC 403 olmasın diye gerçek) |
MCP_TRANSPORT |
http (veya hiç ekleme) |
MCP_AUTH_TOKEN |
Claude.ai için koyma. Connector formu header göndermez; token 401 + "Authentication failed" üretir. |
Kontrol: https://<host>/health → {"ok": true, ...}
Claude (claude.ai / Desktop Connectors)
- Customize → Connectors → Add custom connector
- URL:
https://<host>/mcp(sonunda/ssedeğil) - OAuth alanlarını boş bırak, Individual sign-in kapalı
- Add, sohbette
+→ Connectors ile aç
Claude Code header gönderebiliyorsa MCP_AUTH_REQUIRED=true ve Authorization: Bearer <token>.
Eski /sse için MCP_TRANSPORT=sse (Claude connector için tercih etme).
Test
python -m unittest tests.test_xbrl_map tests.test_form_parsers tests.test_http_auth tests.test_client_utils
Kaynaklar
- 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 (max 10 req/s, User-Agent zorunlu)
13F değerleri SEC konvansiyonuyla bin USD. 13F'i hisse değil, kurum doldurur.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.