IRS income & tax stats by ZIP in your agent: AGI distribution, tax, credits, deductions.
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.
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.
| Tool | What it does |
|---|---|
lookup_zip(zip_code) | Confirm a ZIP has SOI data β state, number of returns, number of individuals, tax year. A good first call. |
get_income(zip_code) | Adjusted gross income (AGI), average AGI per return, and income components: salaries/wages, taxable interest, ordinary dividends, business net income, net capital gain. |
get_agi_distribution(zip_code) | The distinctive one. The ZIP's returns and AGI split across the six IRS AGI brackets (<$25k, $25β50k, $50β75k, $75β100k, $100β200k, $200k+), with each bracket's share β the income shape of a ZIP, not just an average. |
get_tax(zip_code) | Income tax, income tax before credits, total tax liability (broader β includes self-employment tax, etc.), total tax payments, and average total tax per return. |
get_credits(zip_code) | EITC take-up (overall and split by number of qualifying children: none / one / two / three or more) and the additional (refundable) child tax credit. |
get_deductions(zip_code) | Standard vs. itemized deductions (count and amount), the taxes-paid (SALT) deduction, and the percent of returns that itemized. |
get_filing_status(zip_code) | Single / married-filing-jointly / head-of-household return counts, elderly returns (age 65+), and the count and share of electronically filed returns. |
compare_zips(zips, metric) | Rank several ZIPs by one metric (e.g. avg_agi_per_return, pct_returns_200k_plus, total_tax_liability, eitc_amount), highest first. |
get_state_totals(state) | A whole state's totals and AGI-bracket mix (returns, individuals, AGI, average AGI per return, income tax, total tax liability), from the IRS state rollup. Accepts "CA" or "California". |
get_soi_field(zip_code, field) | Escape hatch: the raw value of one SOI field code (e.g. A00100 for AGI, N1 for returns) for a ZIP, summed across brackets, with its label and unit. Limited to the fields in the store. |
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.
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:
Add to claude_desktop_config.json:
It's a standard MCP server, so it works with any MCP-capable client β not just Claude. With the OpenAI Agents SDK:
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.
lookup_zip / get_income / get_agi_distribution β the income backboneget_tax / get_credits / get_deductions / get_filing_status β the tax sidecompare_zips β rank ZIPs by a metricget_state_totals β state rollups from the IRS 00000 rowget_soi_field β raw-field escape hatchsetup / refresh [year] β download once, re-pull or pick an older tax yearmcpwright-soi) + the official MCP Registry (io.github.mcpwright/soi-mcp)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/
Contributions welcome β and if you build something with it, I'd love to hear about it.
Part of mcpwright Β· built by Devender Gollapally
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/irs-soi-income-by-zip)<a href="https://allmcps.com/mcp/irs-soi-income-by-zip"><img src="https://allmcps.com/api/badge/irs-soi-income-by-zip?style=directory" alt="IRS SOI (income by ZIP) on AllMCPs" /></a>