
SEC EDGAR
io.github.brechanbech由 GitHub 帳號 brechanbech 發布v0.10.0更新於 Oct 26, 2026
Rust MCP server for SEC EDGAR data — company filings, financial concepts, and company info
發布方自己的服務:edgar.tools SEC Intelligence
概覽
本機 MCP 伺服器,讓助理存取 SEC EDGAR:公司申報文件、XBRL 財務資料、內部人交易、機構持股與持股紀錄。
- 可以做什麼
- 將股票代號或公司名稱解析為 SEC CIK,並列出附交易所資訊的註冊股票代號
- 查詢公司資訊:SIC 代碼、產業、註冊州、會計年度結束日、地址
- 依表格類型列出近期申報,或即時列出全 EDGAR 最新申報,並附文件直連網址
- 讀取申報內文與附件:章節索引、依項目取章節、文內搜尋、分頁、文件清單
- 檢索 2001 年以來申報的全文,可依表格、股票代號與日期篩選
- 取得 XBRL 財務資料:營收、淨利等歷史指標,公司申報的全部指標,以及同期間的跨公司比較
- 適用情境
- 適合經常查詢美國上市公司申報、揭露財務數據、內部人交易、基金持股或 5% 以上股東,並希望用自然語言提問而不必自行拼湊 EDGAR 網址的情境。README 指出,若一年只查一兩次申報,直接把網址交給助理即可。
- 執行需求
- 以本機原生二進位檔執行,透過 Cargo 安裝(需 Rust 1.88 或更新版本);編譯需要 C 編譯器,不需要 Node、Python 或 Docker 執行環境。無需 API 金鑰。SEC 公平存取政策要求提供聯絡電子郵件:首次使用時透過 sec_configure 工具收集並存於本機設定檔。需要能連線至 SEC EDGAR 的網路。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 SEC EDGAR,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
sec-mcp
A Model Context Protocol server that gives Claude Desktop access to SEC EDGAR data — company filings, financial statements, and company info. No API key needed. It runs as a single native binary, with no Node, Python or Docker runtime behind it.
Why an MCP for this?
EDGAR is a set of public REST endpoints with no API key, and the documentation at sec.gov/search-filings/edgar-application-programming-interfaces is reasonable. So strictly speaking, an MCP isn't needed. What this wrapper buys you:
-
Persistent User-Agent identity. SEC's fair-access policy requires a contact email in the User-Agent header; without one, requests get throttled or rejected. You don't want to re-paste your email into every prompt. The MCP stores it in a config file and stamps every request.
-
Ticker → CIK resolution with caching. Every EDGAR endpoint is keyed by a zero-padded 10-digit CIK, not by ticker. Without a tool, each query would re-fetch the ~1 MB
company_tickers.jsonand parse it from scratch. The MCP caches it for an hour. -
URL-construction quirks the docs are quiet about. The
CY{period}prefix on the XBRL frames endpoint, the trailingIfor instant concepts, the zero-padded CIK, the dash-stripped accession number in archive URLs. Easy to get wrong on the fly; encoded once in the tool. -
Response shaping.
companyfactsresponses are tens of MB andfilings.recentis laid out as column-major parallel arrays. Both are usable, but a language model would burn a lot of context reformatting them. The MCP returns trimmed, row-shaped JSON. -
Discovery. With the MCP installed, the tool list itself tells Claude that it can query SEC filings, plus the common concept names. Without it, the model has to remember the endpoints exist.
If you only pull one or two filings a year, you don't need this — just give Claude the URL. At any higher volume, the wrapper pays for itself by turning "explain the URL grammar in every conversation" into "ask a natural question."
Install
Install with Cargo (Rust 1.88 or newer):
This compiles the rustls crypto backend (ring), which has a small amount of C,
so you need a C compiler on the build host — but no cmake or assembler.
macOS (Xcode Command Line Tools) and most desktop Linux distros already have one;
a minimal Linux image may not — install it first, e.g.
apt install build-essential on Debian/Ubuntu.
Configure Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json:
Restart Claude Desktop.
First use
On your first SEC-related request Claude will explain that a contact email is required by the SEC EDGAR fair-access policy and ask your permission before proceeding. Your email is stored locally in ~/Library/Application Support/sec-mcp/config.toml and is only used in the HTTP User-Agent header sent to the SEC — it is not shared anywhere else.
Example prompts
- "What are Apple's recent SEC filings?"
- "Show me Tesla's annual revenue for the last 5 years"
- "What was Microsoft's net income last quarter?"
- "What industry is NVDA in according to the SEC?"
- "What is Bridgewater Associates' CIK, and what has it filed recently?"
- "Who owns more than 5% of Sonos, and has any of them filed a 13D?"
- "How much did SpaceX raise in private rounds before it listed?"
- "What were Bridgewater's ten largest positions last quarter?"
- "Which 8-Ks were filed in the last hour, and what items did they report?"
- "List every Schedule 13D filed last week"
- "Show me Amazon's most recent 10-K filing"
- "What tickers are listed on NYSE with 'energy' in the name?"
- "What financial metrics does Apple report to the SEC?"
- "What revenue guidance did Airbnb give in its Q1 2025 earnings release?"
- "Summarize the risk factors in Tesla's latest 10-K"
- "Which companies had the highest revenue in 2024?"
Tools
Wherever a tool takes a ticker, it also takes a CIK (1163302, 0001163302 or
CIK0001163302). SEC's ticker list holds only current tickers, so a company that
was acquired, delisted or renamed is reachable only by CIK. sec_lookup_cik with
name finds it, and full-text search hits and frames rows carry one.
Amendments (10-K/A and friends)
A form ending in /A amends one filed earlier. A 10-K/A is often not a
complete annual report. Rule 12b-15 requires only the full text of each item
being changed, so the most common amendment is Part III alone (directors, pay,
ownership), filed when the proxy statement misses its 120-day window. Others add
or fix exhibits. The rest are restatements that replace the original's figures.
Apple's January 2010 10-K/A, for example, refiled fiscal 2009 under new
revenue-recognition rules.
sec-mcp therefore excludes amendments unless you ask for them:
sec_financial_concept'sannual/quarterlyperiod filters match base forms only. The amended period is already covered by the original filing, and admitting both would report two facts for one period. Passinclude_amendments: trueto admit them when the restatement is what you want: Apple's fiscal 2009 revenue is $36.5B on the original 10-K and $42.9B on the 10-K/A.amended_factsthen counts them.sec_full_text_searchwith a form filter drops amendments. EDGAR itself does not: it filters on a filing's root form, soforms=10-Kalso returns10-K/A. To get amendments, request the form directly (10-K/A), list both (10-K,10-K/A), or passinclude_amendments: true. Any amendment returned is markedamendment: true.
Because that search filtering happens after EDGAR's, two parts of the response behave differently from a plain search:
totalis still EDGAR's count, which includes the dropped amendments. It is flaggedtotal_is_upper_bound, ortotal_is_approximatewhen it has also saturated at 10000. Each page reportsamendments_excluded.- Paging must use
next_offset. A page can return fewer thanlimithits because amendments were skipped, sooffset + returnedwould revisit them.
Common XBRL concepts for sec_financial_concept
Development
There is also an opt-in live suite that drives the built server over stdio
against the real SEC EDGAR APIs — the thing offline tests can't see, like
EDGAR changing a response shape or a URL-construction quirk slipping through. It
is skipped unless SEC_MCP_LIVE_EMAIL is set, which both opts in and supplies
the contact email the fair-access policy
requires (the address is read from the environment, never committed):
The suite runs sequentially through one server process, so it stays well within EDGAR's rate limit.
License
MIT — see LICENSE.md for details.
MCP registry
Ownership-verification token for the MCP registry (read from this crate's rendered README on crates.io):
Registry ownership token:
mcp-name: io.github.brechanbech/sec-mcp
Releasing
A version is immutable once published — crates.io yanks, it does not delete, and a number is never reused — so the order matters:
-
cargo testandcargo clippy --all-targetsclean. -
Bump
versioninCargo.toml. -
Bump
versioninserver.json— both fields, the top-level one and the one underpackages[]. Nothing enforces this: no script, no CI, no test reads the file, and it is the step that goes missing. This manifest stayed correct, but the registry entry did not: 0.5.0, 0.5.1 and 0.5.2 all shipped to crates.io while the registry still advertised 0.4.4, because step 6 was never run. -
Commit and push; let CI go green before publishing rather than after.
-
cargo publish --dry-run, which compiles from the packaged copy and so catches a crate depending on a file it does not ship. Thencargo publish. Give both--target-dir target/package-verify. Without it, the verify build sharestarget/debugwith ordinary builds under the same unit hash, so the binary's fingerprint ends up tracking the packagedsrc/main.rsrather than yours. Later edits then never rebuildtarget/debug/sec-mcp, and the offline stdio test intests/live_smoke.rssilently runs the published code. If that has happened,cargo clean -p sec-mcprepairs it. -
Publish to the MCP registry, after crates.io and not before — the registry verifies the namespace by reading
mcp-namefrom this crate's rendered README on crates.io, andserver.jsonnames a cargo version that must already exist there: -
Create a release for the tag on both Codeberg and the GitHub mirror, with the version's CHANGELOG section as notes. A tag alone is not a release: Glama reads the GitHub mirror and reported "No stable releases found" while it carried every tag and no release.
來源:README.md,提交 c6c1da5
工具
0版本歷史
6- v0.10.0最新Oct 26, 2026
- v0.7.0Oct 26, 2026
- v0.6.1Oct 25, 2026
- v0.6.0Oct 23, 2026
- v0.5.2Sep 27, 2026
- v0.4.4Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分
其他 Edgar 整合
edgar.tools SEC Intelligence
tools.edgar官方發布者
遠端 MCP 伺服器,為助理提供 23 個工具與 5 個配方,用來查詢 SEC 申報文件、財務資料、內部人交易、13F 持股與基金。

SEC EDGAR Filings
由 GitHub 帳號 SudiptoHaldar 發布
依股票代號查詢 SEC EDGAR 申報中繼資料的唯讀伺服器:最新申報、按曆年的申報紀錄與表格類型代碼,附官方 sec.gov 連結。

SEC EDGAR — Recent Company Filing Index by CIK
由 GitHub 帳號 kriton-dev 發布
SEC EDGAR — Recent Company Filing Index by CIK 的託管 MCP 服務;需要憑證;Streamable HTTP。

Sec Edgar Mcp
由 GitHub 帳號 mrfentmen 發布
本機 MCP 伺服器,讓助理查詢 SEC EDGAR 申報文件與 XBRL 財務概念,包括依 CIK 查公司資料和全文檢索。

SEC EDGAR Insider Trades & Financials
由 GitHub 帳號 monriah-studio 發布
面向美國 SEC EDGAR 資料的遠端 MCP 伺服器,讓助理查詢內部人交易、公司申報文件、XBRL 財務資料與申報全文檢索。