Read SEC EDGAR and XBRL filings with an AI: 18 tools over the filing itself. Local, free, no account
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Work with XBRL filings above Arelle: fetch a filing, parse it once into a neutral typed model, and project that model into whichever portable representation you need β or hand it one of those representations and get the model back.
Three ways in β the SEC, everyone else through
filings.xbrl.org, and the filing itself: an
XBRL package or archive (.zip), an iXBRL document (.htm), a bare instance
(.xml), a filing directory, or an http(s) URL to any of them. Nothing about
the middle of this requires EDGAR, or a regulator at all β a report that was
never filed with anybody parses like one that was.
Four projections out, and two of those read back, so a report that was never an
SEC filing gets the same treatment. A fifth surface, the filing's text, reads
the primary HTML directly and needs neither Arelle nor the network. And
xbrlkit view puts a filing on screen.
It is also a local MCP server. The package stands alone β a library and a
CLI β but xbrlkit serve holds filings in memory and exposes them to Claude,
ChatGPT or any MCP client through eighteen shaped tools, which makes reading a
filing a conversation instead of a script: ask for a statement, the concepts
behind a phrase, what foots to a subtotal, a segment breakdown, an exhibit, or
a regex across the prose. Nothing is indexed and no database sits behind it β
every answer is read from the filing in memory, on your machine.
What you can ask it β
Arelle stays the parser β nobody should reimplement DTS resolution. What it
does not give you is anything ergonomic to hold: ModelXbrl is a large
mutable object graph tied to a controller you have to close. XbrlModel is the
answer to that β stateless, single-filing, lossless, and the waist every
projection hangs off.
The one architectural rule: everything goes through XbrlModel. A feature
that reaches into Arelle's ModelXbrl directly is bypassing the waist, and
that is the change that turns a kit into a junk drawer.
parse | Arelle in, XbrlModel out | the load, the DTS cache policy, taxonomy packages |
serialize | the four projections | holon, TAVI (+ its gap report), xBRL-JSON, the property graph |
deserialize | the importers | a holon or a TAVI read back into the model, no Arelle |
edgar | the SEC | discovery, download, full-text search, 1994 onward |
filings_org | everyone else | ESEF and the national regimes, by LEI |
text | the filing as prose | inline text blocks, 10-K/10-Q Items, the XML forms |
serve | the local MCP server | eighteen shaped tools over a filing in memory |
model.py is the waist itself, schema/ declares the property graph's tables,
query.py runs SPARQL over a built holon, and view.py is the loopback server
behind xbrlkit view and the view_filing tool.
Exposes the xbrlkit CLI (build, fetch, query, cache, serve) and the
library. Two optional extras: xbrlkit[lpg] for the property-graph projection
(pyarrow, LadybugDB) and xbrlkit[mcp] for the MCP server.
From a source checkout:
SEC fair access asks for a User-Agent identifying you with contact info.
EDGAR works out of the box under a default that names the project, and the
first unattributed fetch says so once β SEC rate limits per IP, so the shared
default costs nobody else their budget. Identifying yourself is a courtesy,
and one worth extending. just install already created your .env:
.env is loaded automatically by every command run from a checkout of this
repo β the lookup is relative to the installed code, not your working
directory, so a uvx or pip install never picks one up. There, use
export SEC_GOV_USER_AGENT=β¦, --user-agent, or an MCP env block (see
Serve to an MCP client). Nothing outside EDGAR
needs it β a local file, a JSON report and filings.xbrl.org all load without.
From a source checkout, just wraps the same CLI: just build 320193 0000320193-23-000106 and just fetch NVDA.
Two ways to run it. They differ in which process does the fetching, and so in where your SEC identity goes.
stdio β the client launches the server. The identity belongs in the
server's own env block:
HTTP β you start the server, the client only points at a URL. An env
block in the client config would reach nothing here; set it on the command:
or, equivalently:
A .env file is not a channel for either of these. The lookup is relative
to the installed code rather than your working directory, so it resolves only
inside a checkout of this repo β a uvx or pip install never sees one. Use
the environment, the env block, or --user-agent.
Both are optional: EDGAR works unattributed under the default, saying so once. And filings.xbrl.org, local packages and TAVI/holon JSON need no identity at all.
Load a filing from the chat β a ticker, an EDGAR cik:accession, a lei: for
ESEF and the national regimes, a local package, or a holon or TAVI by path or
URL. A ticker or cik:accession loads the filing's published holon first when
the RoboSystems CDN has one, falling back to EDGAR. Then:
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/xbrlkit)<a href="https://allmcps.com/mcp/xbrlkit"><img src="https://allmcps.com/api/badge/xbrlkit?style=directory" alt="Xbrlkit on AllMCPs" /></a>