
IRS SOI (income by ZIP)
io.github.mcpwrightPublished by GitHub account mcpwrightv0.1.2Updated Oct 24, 2026
IRS income & tax stats by ZIP in your agent: AGI distribution, tax, credits, deductions.
Overview
A local MCP server that gives an assistant read-only IRS Statistics of Income data by U.S. ZIP code: income, AGI brackets, tax, credits and deductions.
- What you can do
- Look up a ZIP and confirm it has SOI data, with state, return and individual counts and tax year. Retrieve income figures: AGI, average AGI per return, wages, interest, dividends, business income and capital gains. Break a ZIP's returns and AGI across the six IRS AGI brackets, or rank several ZIPs by a chosen metric. Read tax, credits (EITC by qualifying children, child tax credit) and deductions (standard vs itemized, SALT). Get filing-status and e-filing counts, whole-state totals and bracket mix, or the raw value of a single SOI field code.
- When to use it
- Useful when you want an assistant to answer questions about local income levels, tax burden or credit take-up for U.S. ZIP codes, or to compare neighborhoods and states, without an API key.
- Requirements
- Runs locally over stdio; needs Python 3.12+ and uv/uvx to launch the PyPI package. The first call downloads a roughly 200 MB IRS CSV into a local SQLite store in the OS cache directory; the optional SOI_MCP_STORE variable overrides that path. No API key or account.
Installation
In SourceWeft
- Open IRS SOI (income by ZIP) in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
soi-mcp
IRS income & tax statistics by ZIP code, inside your agent. An MCP
server that lets an LLM pull the income distribution, tax, credits, and deductions of any U.S. ZIP
straight from the IRS Statistics of Income (SOI) — built on Anthropic's official
mcp Python SDK.
All tools are read-only and the data is public domain (a U.S. government work) — no API key required. The dataset is downloaded once into a local SQLite store and served offline.
Status: published —
uvx mcpwright-soi(PyPI) and listed in the official MCP Registry asio.github.mcpwright/soi-mcp. 10 tools, working today (see below). The IRS SOI ZIP release lags ~2–3 years; the latest available year (currently Tax Year 2022) loads by default, and older years are onerefresh <year>away. See the roadmap for what's next.
Tools
All dollar amounts are returned in whole USD (the source reports thousands). Counts are numbers of returns, rounded by the IRS to the nearest 10.
Install
Requires Python 3.12+. The zero-clone way to run it (the PyPI package is mcpwright-soi; the
command, server, and tools are all "soi"):
The first tool call downloads the latest SOI ZIP file (~200 MB) into a local SQLite store under your OS cache directory and serves everything offline thereafter. To pre-load (or to pick a specific tax year) without waiting for the first query:
Claude Code
Claude Desktop
Add to claude_desktop_config.json:
OpenAI Agents SDK (Python)
It's a standard MCP server, so it works with any MCP-capable client — not just Claude. With the OpenAI Agents SDK:
Any other MCP client (Cursor, VS Code, Cline, Goose, Zed, …)
They all launch a stdio MCP server the same way — point yours at:
Hosted chat connectors (e.g. ChatGPT connectors) expect a remote MCP server over Streamable HTTP;
mcpwright-soiruns locally over stdio.
Storage: the dataset lives in a SQLite file under your OS cache dir (override with the
SOI_MCP_STOREenv var). Delete it any time;setup/refreshrebuilds it.
A note on suppression: the IRS excludes ZIPs with fewer than 100 returns (folding them into a "99999" bucket) and suppresses line items with fewer than 20 returns. Summed ZIP totals can therefore slightly understate reality and won't exactly equal the state total. All figures are aggregates of filed returns, not a population census.
Develop
Roadmap
-
lookup_zip/get_income/get_agi_distribution— the income backbone -
get_tax/get_credits/get_deductions/get_filing_status— the tax side -
compare_zips— rank ZIPs by a metric -
get_state_totals— state rollups from the IRS 00000 row -
get_soi_field— raw-field escape hatch -
setup/refresh [year]— download once, re-pull or pick an older tax year - Publish to PyPI (
mcpwright-soi) + the official MCP Registry (io.github.mcpwright/soi-mcp) - Multi-year queries in one call (trend a ZIP across tax years)
Privacy
soi-mcp runs entirely on your machine. It collects, stores, or transmits no personal data
— no accounts, no tracking, no telemetry. Its only outbound requests go to the U.S. IRS static
file host (www.irs.gov/pub/irs-soi) to download the public SOI ZIP-code CSV; no API key is
needed and nothing about your queries leaves your machine. The downloaded dataset is cached on
disk as a local SQLite file (under your OS cache dir, or SOI_MCP_STORE); delete it any time.
Full policy: https://mcpwright.com/privacy/
Questions & feedback
- Questions, ideas, or "could it do X?" → Discussions
- Bugs & concrete feature requests → Issues
Contributions welcome — and if you build something with it, I'd love to hear about it.
Part of mcpwright · built by Devender Gollapally
Source: README.md at commit 3b1614d
Tools
0Version history
1- v0.1.2LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts