SEC EDGAR Filings

io.github.SudiptoHaldar由 GitHub 帳號 SudiptoHaldar 發布v0.1.2更新於 Nov 5, 2026

Latest SEC filing and calendar-year filing history for a stock ticker, with official EDGAR links.

發布方自己的服務:edgar.tools SEC Intelligence

已驗證STDIO僅桌面金融資料與分析

概覽

AI 產生的概覽

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

可以做什麼
  • 查詢某股票代號的最新 SEC 申報,可依 10-K 等精確表格類型篩選
  • 依曆年列出公司申報,最新在前,支援分頁
  • 瀏覽 EDGAR 表格類型代碼及其說明與近期申報數量
  • 以資源形式讀取公司檔案、最新申報與表格目錄,並提供引導式審閱提示詞
適用情境
適合讓助理查出某家美國上市公司提交過哪些 SEC 申報並附上 sec.gov 連結,例如審閱最新年報或整理某一年的申報情形。它只回傳中繼資料與連結,不適合用來閱讀或分析申報內容。
執行需求
以 Python 套件形式透過 stdio 在本機執行(需 Python 3.11 或更新版本),通常以 uvx mcp-server-edgar 啟動。不需 API 金鑰或帳號,但需要能連線至 sec.gov。選用環境變數 MCP_EDGAR_USER_AGENT 可設定 SEC 公平存取所需的聯絡資訊。
安裝前請注意
唯讀:不讀取、下載或摘要申報內容,也不提供投資建議。它會向 SEC EDGAR 發出請求,因此查詢內容會離開本機。MCP_EDGAR_USER_AGENT 預設填入維護者的聯絡方式,建議依 SEC 要求改為自己的產品名稱與電子郵件。表格類型目錄是隨套件發布的快照,並非即時清單。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 SEC EDGAR Filings,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

SEC EDGAR MCP Server

[CI] [PyPI] [MCP Registry]

A read-only Model Context Protocol server, over stdio, that takes a stock ticker, resolves it to the SEC's Central Index Key (CIK), and returns filing metadata with official EDGAR links. It exposes three tools, five resources and three prompts. No API key is needed: SEC EDGAR is public, and the server only identifies itself with a descriptive User-Agent. The server never reads, downloads or summarises filing contents; it tells you which filings exist and where they are on sec.gov.

Published on PyPI as mcp-server-edgar and listed on the Official MCP Registry as io.github.SudiptoHaldar/mcp-server-edgar.

Install and run

The server is a Python package with a console entry point. The simplest way to run it is with uv, which fetches Python 3.11 or newer when needed:

sh
uvx mcp-server-edgar

Or install it into any environment with Python 3.11 or newer:

sh
pip install mcp-server-edgarmcp-server-edgar

The executable speaks MCP on stdin and stdout and is meant to be launched by an MCP client, so on its own it waits for a client. To try it interactively, use the MCP Inspector:

sh
npx -y @modelcontextprotocol/inspector uvx mcp-server-edgar

Configure your MCP client

Claude Desktop and most other JSON-configured clients take an mcpServers entry. The optional env block sets the SEC fair-access contact (see Configuration):

json
{  "mcpServers": {    "sec-edgar": {      "command": "uvx",      "args": ["mcp-server-edgar"],      "env": {        "MCP_EDGAR_USER_AGENT": "acme-research/1.0 ([email protected])"      }    }  }}

Claude Code:

sh
claude mcp add sec-edgar -- uvx mcp-server-edgar

Tools

All three tools are read-only and return a JSON object whose status field says what happened (see Results and errors). Years always refer to the filing date, the day the SEC received a filing, never to the period the filing covers.

get_latest_filing — Latest SEC filing

Newest filing for a ticker, optionally restricted to given form types.

ArgumentTypeDefaultMeaning
tickerstringrequiredStock ticker, e.g. AAPL; case and surrounding spaces are ignored; BRK.B and BRK-B are equivalent
formslist of stringsall formsExact form types, case-insensitive: ["10-K"] matches 10-K but not 10-K/A
cikstring or integernoneSEC CIK (1–10 digits), only after an ambiguous answer, to pick one of the listed candidates; it must be listed under the ticker

Example call get_latest_filing("AAPL", ["10-K"]); result abridged, values as of 2026-11-01:

json
{  "status": "ok",  "company": {"cik": "0000320193", "name": "Apple Inc.", "ticker": "AAPL", "exchange": "Nasdaq"},  "forms": ["10-K"],  "filing": {    "form": "10-K",    "filing_date": "2025-10-31",    "report_date": "2025-09-27",    "accession_number": "0000320193-25-000079",    "filing_url": "https://www.sec.gov/Archives/edgar/data/320193/000032019325000079/0000320193-25-000079-index.htm",    "primary_document_url": "https://www.sec.gov/Archives/edgar/data/320193/000032019325000079/aapl-20250927.htm"  },  "message": "Newest 10-K by Apple Inc. (AAPL): filed 2025-10-31."}

filing is null when the company has no filing of the requested forms.

list_filings_by_year — Filings by year

Every filing a company submitted during one calendar year, newest first, in pages.

ArgumentTypeDefaultMeaning
tickerstringrequiredAs above
yearintegerrequiredCalendar year of the filing date, 1993 or later; a future year returns an empty list
formslist of stringsall formsAs above
limitinteger100Page size; larger values are clamped to the server's cap
offsetinteger0Filings to skip; pass the previous result's next_offset
cikstring or integernoneAs above

The year is the filing year, not the fiscal year: Apple's 10-K for the fiscal year ending September 2025 was filed on 2025-10-31, so it belongs to year=2025; a 10-K filed in January 2026 for a fiscal year 2025 belongs to year=2026. Older years are served from the SEC's history files automatically.

Example call list_filings_by_year("AAPL", 2025, ["10-K", "10-Q"]); result abridged, values as of 2026-11-01:

json
{  "status": "ok",  "company": {"cik": "0000320193", "name": "Apple Inc.", "ticker": "AAPL", "exchange": "Nasdaq"},  "year": 2025,  "forms": ["10-K", "10-Q"],  "limit": 100,  "offset": 0,  "total_count": 4,  "returned_count": 4,  "next_offset": null,  "filings": [    {      "form": "10-K",      "filing_date": "2025-10-31",      "report_date": "2025-09-27",      "accession_number": "0000320193-25-000079",      "filing_url": "https://www.sec.gov/Archives/edgar/data/320193/000032019325000079/0000320193-25-000079-index.htm",      "primary_document_url": "https://www.sec.gov/Archives/edgar/data/320193/000032019325000079/aapl-20250927.htm"    }  ],  "message": "Apple Inc. (AAPL): 4 filings of form 10-K, 10-Q with a filing date in 2025."}

To page, call again with offset set to next_offset until it is null. Pages never overlap. A year with no filings is ok with total_count 0.

list_form_types — EDGAR form types

The EDGAR submission-type codes filed in recent quarters, most common first. Use it to learn which values forms accepts: form is exactly the code EDGAR uses (10-K, 10-K/A, SCHEDULE 13G/A, 424B2, NPORT-P).

ArgumentTypeDefaultMeaning
querystringnoneCase-insensitive text matched against the code and its description; "10-K" lists 10-K, 10-K/A, 10-KT, …; "/A" lists amendments
limitinteger100Entries per page
offsetinteger0Entries to skip; pass the previous next_offset

The catalogue is a snapshot bundled with the package, counted over the four completed quarters before the release and refreshed with each release; catalogue.generated_on and catalogue.quarters say which. Calling it makes no request to the SEC. description and topics come from the SEC Forms List when the form number is known, otherwise null.

Example call list_form_types("10-K"); result abridged, values as of 2026-11-01:

json
{  "status": "ok",  "query": "10-K",  "total_count": 6,  "returned_count": 6,  "next_offset": null,  "catalogue": {"generated_on": "2026-11-01", "quarters": ["2025Q4", "2026Q1", "2026Q2", "2026Q3"]},  "form_types": [    {"form": "10-K", "description": "Annual report pursuant to Section 13 or 15(d)", "amendment": false, "filings": 6723},    {"form": "10-K/A", "description": "Annual report pursuant to Section 13 or 15(d)", "amendment": true, "filings": 616}  ],  "message": "6 form types match '10-K' in 2025Q4-2026Q3."}

Results and errors

Every tool answers with a JSON object. Anticipated conditions are reported in status, never as a protocol error, so a client can act on them:

statusMeaningAlso carries
okThe request succeededcompany, and filing / filings / form_types as shown above
not_foundNo SEC issuer is listed under the ticker—
ambiguousSeveral issuers share the ticker; none is chosencandidates: list of {cik, name, ticker, exchange}; call again with the chosen cik
invalid_inputAn argument was rejected before any request was madefield: the offending argument
upstream_errorSEC EDGAR did not answer in time, was rate-limited or returned bad dataretryable (boolean) and retry_after_seconds (may be null)

Every object also carries a one-line message. A filing record always has form, filing_date, report_date (the period covered, context only, may be null), accession_number and filing_url (the official filing index page on sec.gov); primary_document_url points at the main document when the SEC lists one and the file name is safe, otherwise it is null.

Resources

Clients that can attach resources as context may read these JSON documents directly, without a tool call. They are built by the same code path as the tools, so a resource and its tool always agree.

URIPayload
edgar://companies/{ticker}/profile{cik, name, ticker, exchange, tickers}: the issuer's identity plus every ticker the SEC lists under that CIK (GOOGL → ["GOOGL", "GOOG"])
edgar://companies/{ticker}/latest{company, filing}: exactly the company and filing of get_latest_filing(ticker); filing is null when the issuer has none
edgar://issuers/{cik}/profileThe profile addressed by CIK (any 1–10-digit spelling)
edgar://issuers/{cik}/latestThe latest filing addressed by CIK
edgar://form-types{catalogue, form_types}: the whole bundled catalogue, unpaged

Use the edgar://issuers/{cik}/… routes when a ticker is ambiguous; the CIK must be listed in the SEC ticker map. Resources have no status envelope: an unknown ticker, a malformed or unlisted CIK or an unmatched URI is a resource-not-found error, and an ambiguous ticker or an SEC outage is a resource error, each carrying the same message text the tools use.

Prompts

Prompts are reusable instructions a person selects from the client's prompt menu; the client inserts the rendered text and the model then uses the tools. They carry no live data.

PromptTitleArgumentsThe rendered text asks the model to
review_latest_filingReview latest SEC filingticker (required)call get_latest_filing, cite the form and filing_date, link filing_url, treat report_date as the period covered, separate what the filing states from interpretation
review_filings_by_yearReview filings for a calendar yearticker, year (both required)call list_filings_by_year, page with offset = next_offset until null, group by form type, summarise the year, link every item
explain_form_typesExplain EDGAR form typesquery (optional)call list_form_types, explain the common codes, note that /A means amendment and that the catalogue is a dated snapshot

Every prompt ends with the same guardrails: metadata and official sec.gov links only, the server does not read filing contents, cite the EDGAR link for every filing, give no investment advice, and on an ambiguous answer ask which issuer is meant before calling again with that cik.

Configuration

All settings are environment variables with defaults. Unset or empty values take the default; a bad value stops startup with exit code 1 and one line on stderr naming the variable.

VariableDefaultAcceptedPurpose
MCP_EDGAR_USER_AGENTmcp-server-edgar/<version> ([email protected])non-empty, must contain @SEC fair-access identification with a maintainer contact; set your own
MCP_EDGAR_TIMEOUT_SECONDS30number > 0HTTP timeout for SEC requests
MCP_EDGAR_TICKER_MAP_TTL_SECONDS86400integer ≥ 0 (0 = no cache)Cache lifetime of the SEC ticker map
MCP_EDGAR_SUBMISSIONS_TTL_SECONDS3600integer ≥ 0Cache lifetime of a company's submissions
MCP_EDGAR_PAGE_CAP100integer 1..1000Largest page list_filings_by_year and list_form_types return
MCP_EDGAR_MAX_REQUESTS_PER_SECOND10integer 1..10Request ceiling; the SEC allows at most 10 requests per second and the server cannot be set higher
MCP_EDGAR_LOG_LEVELINFODEBUG, INFO, WARNING, ERROR, CRITICALLog level

The SEC asks every automated client to identify itself with a contact address, so set MCP_EDGAR_USER_AGENT to your own product name and e-mail. Logs go to stderr only; stdout carries the protocol.

How it uses SEC EDGAR

  • Ticker to CIK: https://www.sec.gov/files/company_tickers_exchange.json, cached for a day. One ticker listed under several CIKs is reported as ambiguous; one CIK with several tickers (GOOGL, GOOG) is one issuer.
  • Filings: https://data.sec.gov/submissions/CIK##########.json (CIK zero-padded to ten digits), cached for an hour. Older years are read from the history files the submissions document lists, and only those whose date range overlaps the requested year.
  • Links: the filing index page …/Archives/edgar/data/<cik>/<accession>/<accession>-index.htm is always returned; the primary document link is built from the SEC's file name after rejecting anything that is not a plain file name.
  • Fair access: at most 10 requests per second, a descriptive User-Agent, in-memory caching per process, and bounded retries with backoff on HTTP 429 and transient 5xx responses. When the SEC still does not answer, the tool returns upstream_error with a retry hint rather than an empty result. See the SEC's EDGAR API documentation.

Known limits

  • Metadata and links only: no filing contents, no XBRL financial facts, no summaries, no investment advice.
  • year means the calendar year the SEC received the filing, not the fiscal year it reports on.
  • Years before 1993 (the start of electronic filing) are rejected as invalid_input.
  • Only issuers in the SEC ticker map can be looked up; funds and private filers without a listed ticker are out of scope, and the server never queries an arbitrary CIK.
  • The form-type catalogue is a snapshot taken before each release, not a live list.
  • Transport is stdio only; there is no HTTP endpoint and no authentication.
  • Caches live in memory for the lifetime of one server process.
  • This project is not affiliated with or endorsed by the U.S. Securities and Exchange Commission.

Development

sh
git clone https://github.com/SudiptoHaldar/mcp_server_edgarcd mcp_server_edgaruv syncuv run pytest -q                                  # unit tests never touch the networkuv run pytest -q -m live                          # opt-in checks against the real SECuv run ruff check .uv run mcp dev src/mcp_edgar/server.py            # MCP Inspector GUIuv run python scripts/inspector_checklist.py      # 27-row CLI checklist (needs Node and network)

Before a release, refresh the bundled form-type catalogue, then build:

sh
uv run python scripts/refresh_form_types.pyuv build

Releases are published by the tag-triggered workflow in .github/workflows/release.yml: a vX.Y.Z tag on this repository builds, publishes to PyPI (Trusted Publishing, with attestations) and to the MCP Registry, and verifies both.

Issues and pull requests: https://github.com/SudiptoHaldar/mcp_server_edgar/issues.

License

MIT, see LICENSE. SEC EDGAR data is public domain and is served here under the SEC's fair-access rules.

來源:README.md,提交 948a9e1

工具

3

get_latest_filing

Latest SEC filing

Newest SEC filing for a stock ticker, with official EDGAR links. Resolves the ticker to its SEC CIK and returns the filing with the latest `filing_date` (the date the SEC received it). `forms` restricts the search to exact form types, case-insensitive: `["10-K"]` matches `10-K` but not `10-K/A`; omit it to consider every form. `report_date` (the period the filing covers) is returned as context only, so a 10-K filed in January 2026 for the fiscal year ending September 2025 has a 2026 `filing_date`. Args: ticker: Stock ticker symbol, e.g. `"AAPL"`. Case and surrounding whitespace are ignored; `BRK.B` and `BRK-B` are equivalent. forms: Optional list of SEC form types, e.g. `["10-K", "10-Q"]`. cik: Optional SEC CIK (1-10 digits, string or integer) to pick one issuer when a previous call returned `"ambiguous"`; it must be listed under `ticker`. Returns: A JSON object with `status` and a one-line `message`. On `"ok"`: `company` {cik, name, ticker, exchange}, `forms` (normalised list or null) and `filing` {form, filing_date, report_date, accession_number, filing_url, primary_document_url}, or `filing` null when the company has no filing of those forms; `filing_url` (the filing index page) is always present, `primary_document_url` may be null. The other statuses (`not_found`, `ambiguous` with `candidates`, `invalid_input` with `field`, `upstream_error` with `retryable`) are defined in the server instructions. Example: `get_latest_filing("AAPL", ["10-K"])` returns Apple's most recent annual report.

輸入參數cikformsticker必填

list_filings_by_year

Filings by year

Filings a company submitted to the SEC during one calendar year, newest first, paged. `year` selects filings by `filing_date`, the date the SEC received the filing, not by `report_date` (the period the filing covers): a 10-K for the fiscal year ending September 2025 that was filed in January 2026 belongs to `year=2026`. `forms` restricts the list to exact form types, case-insensitive (`["10-K"]` matches `10-K` but not `10-K/A`). Older years are served from the SEC's history files automatically. Args: ticker: Stock ticker symbol, e.g. `"AAPL"`; case and surrounding whitespace are ignored. year: Calendar year of the filing date, 1993 or later; a future year returns an empty list. forms: Optional list of SEC form types, e.g. `["10-K", "10-Q"]`; omit it for every form. limit: Page size (default 100); larger values are clamped to the server's cap. offset: Filings to skip, for paging; pass the previous result's `next_offset`. cik: Optional SEC CIK (1-10 digits, string or integer) to pick one issuer when a previous call returned `"ambiguous"`; it must be listed under `ticker`. Returns: A JSON object with `status` and a one-line `message`. On `"ok"`: `company` {cik, name, ticker, exchange}, `year`, `forms`, `limit` (the effective page size), `offset`, `total_count`, `returned_count`, `next_offset` (null on the last page) and `filings` (newest first; each has form, filing_date, report_date, accession_number, filing_url, primary_document_url); an empty year is `"ok"` with `total_count` 0. Page with `offset=next_offset` until null. The other statuses (`not_found`, `ambiguous` with `candidates`, `invalid_input` with `field`, `upstream_error` with `retryable`) are defined in the server instructions. Example: `list_filings_by_year("AAPL", 2025, ["10-K", "10-Q"])` lists Apple's 2025 reports.

輸入參數cikyear必填formslimitoffsetticker必填

list_form_types

EDGAR form types

EDGAR form types (submission-type codes) filed in recent quarters, most common first. Use this to learn which values the `forms` argument of `get_latest_filing` and `list_filings_by_year` accepts: `form` is exactly the code EDGAR uses (`10-K`, `10-K/A`, `SCHEDULE 13G/A`, `424B2`, `NPORT-P`). The list is a snapshot bundled with the server (see `catalogue.generated_on` and `catalogue.quarters`); `filings` counts filings of that type over those quarters; `description` and `topics` come from the SEC Forms List when the form number is known, otherwise null. Amendments end with `/A`. No request is made to the SEC. Args: query: Optional case-insensitive text matched against the code and description (`"10-K"` lists `10-K`, `10-K/A`, `10-KT`, ...; `"/A"` lists amendments). limit: Maximum entries per page (default 100; clamped to the server's cap). offset: Entries to skip, for paging; pass the previous result's `next_offset`. Returns: A JSON object with `status` and a one-line `message`. On `"ok"`: `query`, `limit`, `offset`, `total_count`, `returned_count`, `next_offset` (null on the last page), `catalogue` {generated_on, quarters, sources} and `form_types` (each: form, description, amendment, filings, topics). `"invalid_input"` carries `field`, as defined in the server instructions; no other status occurs. Example: `list_form_types("13G")` lists the Schedule 13G submission types and their counts.

輸入參數limitqueryoffset

版本歷史

3
  1. v0.1.2最新Nov 5, 2026
  2. v0.1.1Nov 4, 2026
  3. v0.1.0Nov 3, 2026

評分

已滿足適用檢查項的 90%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分
  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Edgar 整合