
IRS SOI (income by ZIP)
io.github.mcpwright由 GitHub 账号 mcpwright 发布v0.1.2更新于 Oct 24, 2026
IRS income & tax stats by ZIP in your agent: AGI distribution, tax, credits, deductions.
概览
本地 MCP 服务器,让助手按美国 ZIP 代码查询 IRS 收入统计数据(只读):收入、AGI 分档、税款、抵免与扣除。
- 可以做什么
- 查询某个 ZIP 是否有 SOI 数据,返回州、申报数、人数和税年。读取收入数据:AGI、每份申报平均 AGI、工资、利息、股息、经营所得和资本利得。按六个 IRS AGI 档位拆分该 ZIP 的申报数与 AGI,或按指定指标对多个 ZIP 排序。读取税款、抵免(按合格子女数划分的 EITC、儿童税收抵免)和扣除(标准与分项、SALT)。获取申报身份与电子申报数量、全州汇总与档位构成,或单个 SOI 字段代码的原始值。
- 适用场景
- 适合让助手回答美国各 ZIP 地区收入水平、税负或抵免使用情况的问题,或比较社区与州,且无需 API 密钥。
- 运行要求
- 通过 stdio 本地运行;需要 Python 3.12+ 以及 uv/uvx 启动 PyPI 包。首次调用会从 IRS 下载约 200 MB 的 CSV 到操作系统缓存目录下的本地 SQLite 存储;可选环境变量 SOI_MCP_STORE 可覆盖该路径。无需 API 密钥或账户。
安装
在 SourceWeft 中
- 打开 控制台中的 IRS SOI (income by ZIP),将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
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
来源:README.md,提交 3b1614d
工具
0版本历史
1- v0.1.2最新Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分