mcp-china-sourcing-map
# mcp-sec-filings-pull
MCP toolset for **SEC EDGAR public filings** — insider trading, beneficial
ownership, and reporting calendars. Read-only, public API only: no credentials,
no paid data vendors, nothing fabricated. Every row carries its live EDGAR
source URL.
## Tools
| Tool | What it returns |
|---|---|
| `insider_sales(ticker_or_cik, days=30)` | Form 4 open-market sales (code S) for one issuer, ranked by value |
| `insider_clusters(tickers=None, days=30, min_sellers=3)` | Issuers where N+ distinct insiders sold in the window, ranked |
| `new_insiders(tickers, days=30)` | Form 3 filings — who just became an insider (opening stake) |
| `ownership_13dg(ticker_or_cik, days=365)` | Schedule 13D/13G (+amendments) with source links |
| `reporting_calendar(tickers, days=30)` | Periodic filing dates (10-Q/10-K/8-K/20-F...) |
## Honest scope
- `reporting_calendar` returns **filing dates only**. Sell-side EPS consensus
is not public data and is deliberately not included — no invented estimates.
- Empty results are reported as empty with a note, never padded.
- Figures come from the filings themselves; not investment advice.
## Run
```
python main.py # stdio MCP server
pytest tests/ -q # offline tests (mocked endpoints, real XML shapes)
```
## Data source
- `https://www.sec.gov/files/company_tickers.json` — ticker→CIK map (cached on disk)
- `https://data.sec.gov/submissions/CIK##########.json` — filing history
- `https://www.sec.gov/Archives/edgar/data/.../<accession>-index.htm` — filing
document list; the raw Form 4 XML sits at the directory root but its filename
varies (`form4.xml`, `ownership.xml`, `form4-<date>_<time>.xml`), and the
directory may resolve under the issuer CIK or the filing-agent CIK. The
client tries the conventional root name first, then reads the index page for
the authoritative raw-XML link (the `xslF345X06/` copy is the XSL HTML view
and is never parsed as XML). SEC answers missing directories with HTTP 200 +
a soft-404 HTML page, so payloads are checked, not status codes.
Etiquette: descriptive User-Agent, ≤10 req/s, ticker map cached.
## License
MIT.TDQS
Scored across 5 tools
Each tool maps to a distinct filing type or view: Form 4 sales detail (insider_sales), aggregated seller ranking (insider_clusters), Form 3 openings (new_insiders), 13D/13G (ownership_13dg), and report dates (reporting_calendar). The only potential confusion is insider_clusters vs insider_sales, but the descriptions clearly separate cross-issuer ranking from single-issuer detail.
All five names are snake_case descriptive noun phrases with a consistent tone and no casing drift. They are not verb_noun style, and the word order varies slightly (insider_clusters vs ownership_13dg), but the pattern is predictable enough for an agent.
Five tools is lean but each covers a distinct SEC filing workflow, so nothing is redundant. It is slightly under-scoped for a screening-oriented server, but every tool earns its place.
The surface covers insider selling, new insiders, 13D/13G ownership, and filing dates, giving a usable research loop. However, insider buys (Form 4 code P) and 13F institutional holdings are absent, and there is no ticker/company lookup beyond passing a symbol or CIK, which are notable gaps for an ownership-screening tool.