Listed from the MCP registry; nobody on Odel publishes it.
SEC Form 13F holdings as they could have been known on a given date (stdio).
Runs on your machine from its package; the steps are below.
At most: only reads or looks up information.
Odel charges nothing per call. The publisher may charge for its own service.
Runs locally over stdio
This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).
Run
uvx edgar13f-mcp
MCP client config
{
"mcpServers": {
"edgar-13f-point-in-time": {
"command": "uvx",
"args": [
"edgar13f-mcp"
]
}
}
}An MCP server that answers questions about SEC Form 13F holdings as they could have been known on a given date. It comes with an evaluation that was frozen before the server was written.
Institutional managers with US$100m or more in 13F securities file Form 13F every quarter, up to 45 days after the quarter ends. Many of them later amend the report. A restatement replaces the whole report. A new-holdings amendment adds rows to it. So "what did manager X hold at 2024-12-31?" has different correct answers on different days: nothing before the filing date, then the original report, and later the amended one.
A tool that always returns the latest version leaks the future into backtests, research notes
and agent answers. This server takes an as_of date with every call and follows two rules
(full text in contracts/CONTRACTS.md):
as_of only if its EDGAR filing date is on or
before as_of. Nothing filed later affects the answer: not the rows, the citations, the
filing list, or which filing counts as "latest".Python 3.11, with the official MCP Python SDK 2.x. The server speaks MCP over stdio only.
One command (needs uv). The package is
edgar13f-mcp on PyPI, uploaded by this repository's
release workflow with trusted publishing, and listed in the official
MCP Registry as io.github.Serios16/edgar13f-mcp:
export SEC_USER_AGENT="Your Name your.email@example.com" # required by SEC fair access
uvx --python 3.11 edgar13f-mcp # pin a release: edgar13f-mcp@1.2.2
For an MCP client such as Claude Desktop:
{"mcpServers": {"edgar13f": {
"command": "uvx",
"args": ["--python", "3.11", "edgar13f-mcp"],
"env": {"SEC_USER_AGENT": "Your Name your.email@example.com"}}}}
Any commit or tag also runs straight from GitHub:
uvx --python 3.11 --from git+https://github.com/Serios16/edgar13f-mcp@v1.2.2 edgar13f-mcp.
The older command name edgar13f-server still works. Both names are tested on the built wheel by
tests/tools/install_smoke.sh (empty uv cache, MCP handshake; output in
reports/artifacts/install_smoke_stage6.txt). From a clone instead:
python3.11 -m venv .venv && . .venv/bin/activate
pip install -e .
export SEC_USER_AGENT="Your Name your.email@example.com" # required by SEC fair access
python -m edgar13f.server # or: edgar13f-server
Environment variables:
SEC_USER_AGENT: the User-Agent sent to sec.gov. It is required; without it the server
does not contact sec.gov.EDGAR13F_CACHE_DIR: the on-disk cache. The default is $XDG_CACHE_HOME/edgar13f (or
~/.cache/edgar13f), then a private per-user temp dir. The server writes nowhere else.EDGAR13F_REDACT: set to exactly off to return the rows that are redacted by default (see
Limits). Any other value, or none, keeps redaction on.EDGAR13F_AGENT_MODE: set to exactly on to cap unnarrowed holdings and diff answers at the
50 largest positions (see Agent use). Unset, every v1 call answers
byte for byte as in v1.1.0.EDGAR13F_FIXTURE_DIR: serve recorded fixtures instead of EDGAR (used by the tests; refused
together with EDGAR13F_REDACT=off).SEC access follows the fair-access policy. Across processes that share a cache dir, request starts are spaced at least 0.25 s apart (under 5 per second). 403/429/5xx responses and HTML error pages trigger exponential backoff. Responses are cached on disk.
| Tool | Returns |
|---|---|
find_manager(name[, as_of][, limit]) | CIK candidates whose current or former EDGAR name contains name, managers with 13F filings first. entity_name is EDGAR's current name (not point-in-time); with as_of, has_13f_filings counts only 13F filings dated on or before it. |
list_13f_filings(cik, as_of[, period]) | Every 13F-HR, 13F-HR/A, 13F-NT and 13F-NT/A filed by the manager on or before as_of (only those for period if given), with period, amendment number and type, report type, manager name and an EDGAR link. |
get_holdings_as_of(cik, period, as_of[, cusip][, issuer][, max_positions][, position_type]) | The effective holdings for one quarter as known on as_of, row by row as filed (no merging or rescaling). It cites the base filing and every applied amendment. |
diff_holdings(cik, period_a, period_b, as_of[, cusip][, issuer][, max_positions]) | Position changes between two quarters, both resolved on the same as_of, keyed by (CUSIP, put/call, SH/PRN): added, removed, increased, decreased or unchanged. |
find_manager, period, issuer and max_positions come from
Addendum A (additive: a call that uses none of them gets
exactly the v1.1.0 answer).
Every response is a JSON object with the disclaimer "13F reports long positions only; data
may lag the period end by up to 45 days." When the server cannot answer, it returns a normal
result with status: "declined" and one of six reasons: unknown_cik, not_yet_filed,
notice_only, invalid_period, invalid_argument, unsupported_request.
The extensions are meant for LLM agents, which usually start from a name and cannot read a 40 MB answer. A typical sequence:
// 1. name -> CIK (managers that have filed Form 13F come first)
{"tool": "find_manager", "arguments": {"name": "berkshire hathaway", "as_of": "2025-08-27"}}
// 2. which filings make up one quarter, as of a date
{"tool": "list_13f_filings", "arguments": {"cik": "1067983", "as_of": "2025-08-27", "period": "2025-03-31"}}
// 3. one issuer only; the answer adds matched_cusips
{"tool": "get_holdings_as_of", "arguments": {"cik": "1067983", "period": "2025-03-31", "as_of": "2025-08-27",
"issuer": "apple"}}
// 4. the 10 largest positions; the answer adds total_positions, truncated and order
{"tool": "get_holdings_as_of", "arguments": {"cik": "1067983", "period": "2025-03-31", "as_of": "2025-08-27",
"max_positions": 10}}
// 5. the 20 largest changes by |value_delta|
{"tool": "diff_holdings", "arguments": {"cik": "1067983", "period_a": "2024-12-31", "period_b": "2025-03-31",
"as_of": "2025-08-27", "max_positions": 20}}
issuer (2-100 characters) keeps rows whose issuer name contains it, ignoring case and runs of
whitespace; it combines with cusip as AND.max_positions (1-200) ranks positions, i.e. (CUSIP, put/call, SH/PRN) groups, by summed value
(holdings) or by |value_delta| (diff), and returns the top ones with all their rows. A position
is never split, so a manager that files many rows per position can still return many rows; use
issuer or cusip for one security.accession_number,
source_accessions, filing_date) and point-in-time behaviour are unchanged, and redaction
happens before any filter.find_manager matches every current and former EDGAR name, returns EDGAR's current name, and
is therefore not point-in-time for names. Its first call on an empty cache reads EDGAR's
quarterly form indexes since 1993 (about a minute, once per cache directory); later calls take
milliseconds.With EDGAR13F_AGENT_MODE=on, a get_holdings_as_of or diff_holdings call that has none of
cusip, issuer or max_positions is answered as if max_positions were 50, and the answer
adds auto_limited: true. Every other call is unaffected. MCP client config:
{"mcpServers": {"edgar13f": {
"command": "uvx",
"args": ["--python", "3.11", "edgar13f-mcp"],
"env": {"SEC_USER_AGENT": "Your Name your.email@example.com", "EDGAR13F_AGENT_MODE": "on"}}}}
skills/edgar13f/SKILL.md is an agent skill (open SKILL.md format) for
point-in-time Form 13F questions: which tool to call, why every call needs as_of and the period,
how amendments and citations work, what each decline means, how to keep large answers small, and
the limits. tests/unit/test_skill.py fails if it names a tool, parameter or decline reason that
is not in the contracts.
position_type other than
"long" is declined.as_of.ok with no rows. Redaction applies to holdings rows; find_manager
returns entity names unfiltered (ruling N1). To switch redaction off, set EDGAR13F_REDACT=off (exactly
off); rows read that way are cached in a separate directory and never served once
redaction is back on. See CLAUDE.md rule 2 and ruling D2 in REGISTER.md.contracts/PREREG_COMMITMENT.md holds the
SHA-256 of that repository's manifest and of the contract files copied here. Everything will
be published after the final stage so the hash can be checked.find_manager(as_of)) and a no-op
control;tests/unit/test_restatement.py);tests/tools/unprivileged_probe.sh).tests/tools/datasets_crosscheck.py compares
answers for randomly sampled (cik, period, as_of) triples against the SEC Form 13F Data
Sets. The server never reads the data sets.Item-level results are withheld by design. Gate 2, the pre-registered decision gate, passed on
commit b208c47, which is tagged v1.0.0. Gates 3, 4 and 5 passed on commits ca60c5c, f7ee806
and cc61944, tagged v1.1.0, v1.2.0 and v1.2.1. All five gates have the same
aggregates. v1.2.2, the first release on PyPI, changes only the packaging: it adds the
edgar13f-mcp command, and under src/ only the version string differs from v1.2.1.
| Measure | Gate 1 | Gate 2 (v1.0.0) | Gate 3 (v1.1.0) | Gate 4 (v1.2.0) | Gate 5 (v1.2.1) |
|---|---|---|---|---|---|
| Primary gates | all PASS | all PASS | all PASS | all PASS | all PASS |
| Generated items | 698 / 700 | 698 / 700 | 698 / 700 | 698 / 700 | 698 / 700 |
| Generated misses | 1 restatement_before, 1 restatement_after | same | same; both are D2 over-matches | same | same |
| Citation validity | 669 / 671 | 669 / 671 | 669 / 671 | 669 / 671 | 669 / 671 |
| Leakage | 0 violations over 3,114 cases | 0 over 3,114 | 0 over 3,114 | 0 over 3,114 | 0 over 3,114 |
| Curated items | 34 / 34 | 34 / 34 | 34 / 34 | 34 / 34 | 34 / 34 |
| Declines | 6 / 6 | 6 / 6 | 6 / 6 | 6 / 6 | 6 / 6 |
Both generated misses come from ruling D2: the blocklist removes rows the grader expected (see Limits for the two known over-match patterns). D2 forbids narrowing the list to win them back.
Out of sample. On filings dated 2025-09 to 2026-08, outside the window the frozen evaluation covers (as_of up to 2025-08-27), all primary gates PASS: generated 699 / 700, 0 leakage violations over 3,102 cases, citations 639 / 640, declines 6 / 6. The one miss is a D2 over-match, predicted before grading.
Pre-registered before the run (2026-10-14): the same model (Claude Sonnet 5.5, effort medium), the same 80 plain-English questions, the same instructions, a 12-turn budget and a 50,000-character cap per tool result, 2 runs per question. Every tool result passed through the same redaction before the model saw it. Each question names the manager and the issuer (not the CIK or CUSIP), the quarter, and "as filed with the SEC on or before" a date.
| Toolbox | Correct | Leaks | Tool calls per run | Cost per correct answer |
|---|---|---|---|---|
| No tools | 5 / 150 (declines only; stopped at its budget cap) | 0 | 0 | $0.17 |
| edgar13f v1.2.0, agent mode | 160 / 160 | 0 | 2.2 | $0.017 |
| EdgarTools MCP 5.60.0 | 105 / 160 | 0 | 9.0 | $0.145 |
Paired difference against EdgarTools: +34 points (95% CI +24 to +44), so by the pre-registered rule edgar13f is better. EdgarTools was weakest on diffs (7 / 20), amendments (7 / 20) and point-in-time questions (23 / 40); edgar13f answered every type correctly.
Why EdgarTools missed. A pre-registered diagnostic re-run of its 31 missed questions (2026-10-15) reproduced the misses (49 of 62 runs), again with no wrong numbers and no leaks:
A larger turn budget would probably close part of the gap, at a higher cost; that has not been measured. The pre-stated reading also expected fewer leaks with edgar13f, but there were none on either side. Leak prevention is therefore shown at the tool level (the gates above), but neither supported nor refuted for agents.
Caveats:
Around the Q3 2026 filing deadline (16 November 2026), the evaluator captures v1.1.0's answers
for 300 randomly drawn managers on 13, 17, 19 and 26 November, each time asking about the
previous day. The answers are graded once the SEC publishes the data set that covers those
filings. v1.1.0 is the release that was current when the test was pre-registered. These calls use
none of v1.2.0's new parameters, and v1.2.0's defaults are byte-identical to v1.1.0 (3,689 fixture
calls and 1,328 live calls compared), so the result applies to v1.2.0 as well. The capture and
grading code were frozen before the first capture; their hashes are in
reports/LIVE_TEST_COMMITMENT.md.
Cold start (empty cache), get_holdings_as_of(cik, 2025-03-31, as_of=2025-08-27) for the five
13F-HRs of that quarter with the most rows after redaction, measured in-process (MEASURED;
tests/tools/cold_latency.py, artifacts reports/artifacts/cold_latency_stage3_*.json). Each
cell is the worst of two runs (v1.0.0) or three runs (v1.1). For 1776033 a restatement filed the
next day replaces the 34,332-row original, so the answer has 1,599 rows.
| CIK | Rows | v1.0.0 | v1.1 | SEC requests |
|---|---|---|---|---|
| 2012383 | 50,158 | 8.3 s | 4.1 s | 9 -> 6 |
| 319933 | 49,594 | 8.1 s | 4.3 s | 9 -> 5 |
| 1761755 | 44,548 | 16.2 s | 4.2 s | 31 -> 5 |
| 895421 | 44,192 | 44.5 s | 7.6 s | 118 -> 13 |
| 1776033 | 1,599 | 8.1 s | 2.9 s | 23 -> 6 |
v1.1 reads only the cover pages and history pages that can affect the requested quarter.
Warm calls take under 0.6 s. list_13f_filings still reads every filing's cover page, so its
first call costs 2-36 s for these managers. Over MCP stdio the server adds about 1 s for a
50k-row answer (~40 MB), but the MCP Python SDK's stdio client (2.2.0) itself needs 6-15 s to
read a message that large (quadratic in the message size; an upstream report is drafted in
reports/upstream/).
Agent-use extensions, same five managers, two runs (MEASURED; tests/tools/agent_latency.py,
artifacts reports/artifacts/agent_latency_run1.json and _run2.json):
| Call | First call, empty cache | Later |
|---|---|---|
find_manager(name) | 63-79 s (EDGAR's name file and 136 quarterly form-index prefixes, once per cache directory) | 0.02-0.05 s; 1.7-3.2 s in a new process |
list_13f_filings(cik, as_of, period) | 0.7-3.7 s (the full list: 2-36 s) | under 0.05 s |
max_positions=50 shrinks a 17-19 MB holdings answer (44-50k rows) to 0.4-1.0 MB for three of the
four large managers, and the SDK client then reads it in 0.2-0.3 s instead of 6-14 s. The fourth
reports each position in hundreds of rows, so its 50 positions are still 17,741 rows (6.7 MB).
Diff answers drop from 0.4-2.1 MB to about 13 KB.
Stage reports with measured artifacts are in reports/.
pip install -e ".[test]"
python -m pytest -q tests # offline; sockets are refused
python tests/checks/size_budget.py . && python tests/checks/map_check.py . && python tests/checks/claims_check.py .
Protocol checks: the inspector CI job runs the pinned MCP Inspector CLI
(tests/inspector/inspector_check.sh) against the server on recorded fixtures, in both protocol
eras (2025-11-25 with the initialize handshake, 2026-07-28 without), checks the result against
reports/artifacts/inspector_stage5.json, and must fail on a stub that lists three tools.
Lifecycle checks (stdin close, malformed lines, SIGTERM/SIGKILL mid-call) are in
tests/invariants/test_lifecycle.py. Registry metadata: server.json; steps in PUBLISHING.md.
MAP.md lists the modules and shows where each contract rule is enforced and tested.
REGISTER.md records rulings, assumptions and proposals.
MIT; see LICENSE. Runtime dependencies use permissive OSI licences only
(MIT/Apache/BSD/PSF/ISC). The server does not use edgartools (the evaluation uses it only as a
comparison baseline) and contains no code from AGPL projects. It is not affiliated with the SEC,
and nothing it returns is investment advice.