MCP server for SEC EDGAR — resolve issuers (public & private), browse Reg CF/D/A raises, screen offerings, and read XBRL financials and insider trades.
Project description
edgar-mcp
SEC EDGAR filings, inside your agent. An MCP server that
lets an LLM resolve companies, search filings, and pull recent securities offerings straight from
the SEC — built on Anthropic's official mcp Python SDK.
All tools are read-only and hit public SEC endpoints (no API key required).
Status: 11 tools, working today (see below). Published on PyPI as
mcpwright-edgarand in the official MCP Registry. See the roadmap for what's next.
Tools
| Tool | What it does |
|---|---|
lookup_issuer(query, limit=10) |
Resolve a ticker or company name → CIK, legal name, tickers, exchange. Works for exchange-listed and private / non-exchange filers (Reg CF / Reg A issuers, funds). |
list_filings(cik_or_query, form_type=None, limit=20) |
An issuer's most recent filings, newest first. Optional form-type filter (e.g. 10-K, C, D). |
search_filings(query, forms=None, date_from=None, date_to=None, limit=20) |
Full-text search across filing documents. |
get_recent_offerings(form="C", since=None, state=None, limit=20) |
Recent securities offerings, newest first — form="C" (Reg CF), "D" (Reg D), or "A" (Reg A), optionally filtered by issuer state (e.g. "CA"). |
get_filing(accession_or_url, cik=None) |
Open one filing: form, filing date, primary-document link, and every document in the filing. |
get_form_d_details(accession_or_url, cik=None) |
Parse a Form D (Reg D) raise: offering amount, sold/remaining, min investment, # investors, industry, revenue range, security types, exemptions, and the officers/directors/promoters. |
get_form_c_details(accession_or_url, cik=None) |
Parse a Form C (Reg CF) raise: target/max amount, price, security type, deadline, intermediary, employees, and a two-year financial snapshot (revenue, net income, assets, debt). |
get_company_facts(cik_or_query) |
Headline financials from a public company's XBRL facts: latest annual revenue, gross/operating income, net income, assets, liabilities, equity, cash. |
get_filing_text(url, offset=0, max_chars=20000) |
Fetch a document's text (HTML stripped) for reading/summarizing — paginated, since filings can exceed 1M characters. |
get_insiders(cik_or_query, limit=25) |
A company's insiders (officers, directors, >10% owners) from recent Section 16 filings, with roles. |
get_insider_trades(cik_or_query, limit=20) |
Recent insider transactions (Form 4): owner, role, buy/sell/grant, shares, price, shares owned after. |
Install
Requires Python 3.12+. The zero-clone way to run it (the PyPI package is
mcpwright-edgar; the command, server, and tools are all "edgar"):
uvx mcpwright-edgar
Claude Code
claude mcp add edgar -- uvx mcpwright-edgar
Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"edgar": { "command": "uvx", "args": ["mcpwright-edgar"] }
}
}
SEC etiquette: the SEC requires a descriptive
User-Agentwith contact info and rate-limits to ~10 req/s. Set your own via theEDGAR_MCP_USER_AGENTenv var (e.g."your-app your-email@example.com"). The client throttles and retries for you.
Caching: responses are cached in-memory (byte-budgeted LRU) to cut latency and SEC load — immutable filing-archive content for days, the ticker map for 24h, everything else briefly. Set
EDGAR_MCP_CACHE=0to disable.
Develop
git clone https://github.com/mcpwright/edgar-mcp && cd edgar-mcp
uv sync
uv run pytest # tests (mocked SEC responses)
uv run ruff check . && uv run ruff format --check . # lint + format
uv run mypy src tests # strict type checking
uv run mcp dev src/edgar_mcp/server.py # poke the tools in the MCP Inspector
Roadmap
-
get_recent_offerings(form=C|D)— recent Reg CF / Reg D raises -
get_filing(accession_or_url)— open a filing and list its documents -
get_form_d_details(...)— parse Reg D offering data (amount, investors, people) -
get_form_c_details(...)— parse Reg CF offering data (target/max, financials, terms) -
get_insiders/get_insider_trades— Section 16 (Form 3/4/5) insiders & trades - State filter on
get_recent_offerings(industry isn't filterable — EDGAR omits SIC on these listings; screen viaget_form_d_details.industry_group) - Reg A (Form 1-A) support in
get_recent_offerings -
get_company_facts(cik)— XBRL headline financials -
get_filing_text— return a document's text for summarization - Publish to PyPI + the official MCP Registry
Contributions and issues welcome.
Part of mcpwright · built by Devender Gollapally
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcpwright_edgar-0.1.0.tar.gz.
File metadata
- Download URL: mcpwright_edgar-0.1.0.tar.gz
- Upload date:
- Size: 24.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.17 {"installer":{"name":"uv","version":"0.11.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
99a933f1b46f5ce3e272e7ce4f8bb20081fec20fb042793db8247ec1c0b9711a
|
|
| MD5 |
77413103f61e1e092fee667976659c90
|
|
| BLAKE2b-256 |
a35e58ca8d07ec72c304be11ea1f3cce94336104e1a44cce3c202950c471f6e7
|
File details
Details for the file mcpwright_edgar-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mcpwright_edgar-0.1.0-py3-none-any.whl
- Upload date:
- Size: 30.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.17 {"installer":{"name":"uv","version":"0.11.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00435b9b5ec43035d419a3fd8c2e4a375cfb8108be2be92306e7ff2b4ca5c599
|
|
| MD5 |
0a98bef452ced97189d9fff5117e83c0
|
|
| BLAKE2b-256 |
df8dac951fed663a1442ba9ac26184df769fc905d568811560b2c6015e0ae46f
|