🏛️ irs-taxpayer-mcp
Exact US tax numbers for year-end decisions, without sending your finances to a chatbot.
Deterministic TY2024 to TY2026 estimates · local no-model CLI · 45 MCP tools

English | 中文 | Español | 日本語 | Website
Estimates for planning and education only. Not tax, legal, or financial advice, and not filing software. See the legal notice.
Know the number before December 31
Should you convert $30,000 to Roth this year? Harvest gains in the 0% bracket? Top up your 401(k)? These decisions have deadlines, and a chatbot guess is not good enough when real money is on the line.
irs-taxpayer-mcp is a deterministic US individual tax engine for TY2024 through TY2026. It does the math from IRS annual tables, shows its work, and refuses to guess when a case is not supported.
- 🔒 Your numbers can stay on your machine. The direct CLI calculates locally, starts no MCP connection, calls no model, and sends no tax data anywhere.
- 🎯 Deterministic, not generated. The same inputs always give the same answer. A language model never does the arithmetic.
- 🛑 Fails closed. Unsupported states, years, or missing required facts return an error instead of a rough estimate.
- 🤖 Works with your AI assistant too. 45 MCP tools for Claude, Kiro, Cursor, and other MCP clients.
🚀 Try it in 30 seconds
npm install --global irs-taxpayer-mcp
irs-taxpayer-mcp intake --output taxpayer-facts.json # guided local questionnaire
irs-taxpayer-mcp plan --facts taxpayer-facts.json
Example result for a synthetic TY2026 household (married filing jointly, $185,000 W-2, $12,000 long-term gains, two children):
# Local Tax Plan for TY2026
Adjusted gross income: $197,000
Taxable income: $164,800
Federal tax after refundable credits: $20,440
Employee FICA: $14,122
Total modeled tax: $34,562
Take-home income: $162,438
## Privacy
Calculated directly by the local deterministic engine. No model, network request,
persistence, or telemetry was used.
Add --json for structured output with assumptions, official sources, a calculation trace, and privacy.modelInvoked: false.
💡 Decisions it helps with
| Question |
Tool |
Example (synthetic, TY2026) |
| What does a Roth conversion cost me this year? |
simulate_tax_scenario |
MFJ, $150,000 income: a $30,000 conversion adds $6,600 of federal tax, a flat 22% |
| Can I sell winners at 0% tax? |
optimize_capital_gains |
Shows room left in the 0% bracket and warns when losses would only offset tax-free gains |
| Should I itemize or take the standard deduction? |
standard_vs_itemized |
Applies the TY2026 SALT cap, charitable floor, and non-itemizer charitable deduction |
| What are my quarterly estimates as a freelancer? |
estimate_quarterly_tax |
1040-ES amounts with safe harbor guidance |
| Is my paycheck withholding on track? |
analyze_paycheck |
Projects annual tax, including credits, and suggests W-4 changes |
| Will moving states save money? |
analyze_relocation_taxes |
Compares exact-year state profiles; unsupported states fail closed |
| What changed between tax years? |
what_changed_between_tax_years |
TY2025 and TY2026 rule changes with primary-source citations |
🔒 Privacy Architecture
| Layer |
Design |
| Deterministic engine |
Local execution with no runtime network calls |
Direct intake, validate, and plan commands |
No MCP connection, model invocation, telemetry, or automatic persistence |
| Local facts files |
Strict versioned JSON, no identity fields, 1 MiB maximum, mode 0600 on POSIX |
| MCP server |
Sends and stores no taxpayer data |
| MCP client and model |
Privacy depends on the selected host and model provider; prompts and tool arguments may leave the machine |
| Authentication |
No SSN, IRS login, or taxpayer identity required |
| Public IRS data |
Bundled and versioned locally |
| Source code |
Open-source MIT code with auditable calculations |
⚡ Getting Started
Option A: Direct local mode (recommended for taxpayer facts)
Install once, before entering any tax facts:
npm install --global irs-taxpayer-mcp
Run the guided local questionnaire. It does not start MCP or invoke a model:
irs-taxpayer-mcp intake --output taxpayer-facts.json
Or create and edit a strict local template:
irs-taxpayer-mcp template --output taxpayer-facts.json
irs-taxpayer-mcp validate --facts taxpayer-facts.json
Calculate directly through the deterministic engine:
irs-taxpayer-mcp plan --facts taxpayer-facts.json
irs-taxpayer-mcp plan --facts taxpayer-facts.json --json
New facts files are created with mode 0600 on POSIX. On Windows, the CLI rejects existing symbolic links but relies on the current user's filesystem permissions. Existing files are not replaced unless --force is explicit. Imported JSON is limited to 1 MiB, rejects symbolic links and unknown fields, and does not accept names, SSNs, addresses, employer IDs, or account numbers.
Using npx may download the public package before execution, but the direct commands do not send the facts file or its values over the network.
Option B: MCP mode for AI assistants
The MCP server makes no network requests and stores no taxpayer data. However, facts typed into an MCP client may be processed by that client's model provider. Use direct local mode or a local-model MCP client when end-to-end local handling is required.
MCP Step 1: Add to your AI assistant
Add this to your MCP client configuration:
Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"irs-taxpayer": {
"command": "npx",
"args": ["-y", "irs-taxpayer-mcp"]
}
}
}
Kiro (.kiro/settings/mcp.json):
{
"mcpServers": {
"irs-taxpayer": {
"command": "npx",
"args": ["-y", "irs-taxpayer-mcp"]
}
}
}
Cursor: same format in Cursor's MCP settings.
MCP Step 2: Restart your AI assistant
After saving the config, restart the app. The MCP server will auto-download and connect.
MCP Step 3: Ask supported tax questions
The client model converts natural language into tool arguments. Do not enter real taxpayer facts here unless the selected MCP host and model satisfy your privacy requirements:
- "Calculate my federal tax: $150k income, married filing jointly, 2 kids"
- "Compare California vs Texas vs Washington for $200k income"
- "I'm a freelancer making $80k: what are my quarterly estimated taxes?"
- "What tax credits am I eligible for? AGI $60k, single, one child"
- "Should I itemize or take the standard deduction? I pay $15k in mortgage interest and $12k in state taxes"
- "Explain the Backdoor Roth IRA strategy"
- "How much is the EITC for a family of 4 earning $35k?"
- "I exercised ISOs this year: will I owe AMT?"
- "Help me plan my year-end tax moves. I have a 401k and HSA."
Alternative: Docker
docker build -t irs-taxpayer-mcp .
docker run -i irs-taxpayer-mcp
Alternative: Streamable HTTP Transport
npx irs-taxpayer-mcp --http --port 3000
# MCP endpoint: http://127.0.0.1:3000/mcp
# Health check: http://127.0.0.1:3000/health
HTTP mode is stateless and binds only to a loopback host by default. Browser requests must use an exact allowed Origin. Add a trusted browser Origin with a repeatable flag:
npx irs-taxpayer-mcp --http \
--allowed-origin https://trusted-client.example
The legacy --sse flag remains a deprecated alias for --http. The old /sse and /messages endpoints are not exposed.
🛠️ Tools (45)
All tools use the current MCP registerTool API. Each advertises read-only annotations and an output schema, and returns both human-readable text and structuredContent. Error results include a stable error code, message, and recovery suggestion.
The 1.0 flagship generate_tax_plan workflow returns domain structured results, assumptions, official source provenance, a calculation trace, and explicit unsupported boundaries. The deterministic engine performs no network requests, persistence, or telemetry. Its structured privacy metadata reports whether the MCP adapter or direct CLI path was used. Unsupported tax years, state profiles, and required worksheet facts fail closed. See Local Tax Planner 1.0 Contract.
Federal Tax Calculations
| Tool |
What it does |
calculate_federal_tax |
Full federal tax with bracket breakdown, AMT, NIIT (3.8%), Additional Medicare Tax (0.9%), QBI deduction, SE tax, capital gains, CTC |
get_tax_brackets |
Tax brackets and standard deduction by filing status and year |
compare_filing_statuses |
Side-by-side comparison of all 4 filing statuses for the same income |
estimate_quarterly_tax |
Estimated quarterly payments (1040-ES) with safe harbor guidance |
calculate_total_tax |
Combined federal + state tax in one call, with take-home pay and monthly income |
calculate_w4_withholding |
Per-paycheck withholding estimate with step-by-step W-4 form recommendations |
Deduction Analysis
| Tool |
What it does |
list_deductions |
Browse all deductions with eligibility rules, limits, and forms |
standard_vs_itemized |
Compare standard vs itemized with year-specific SALT cap ($10K for TY2024, $40K for TY2025) |
Tax Credits
| Tool |
What it does |
list_tax_credits |
20+ federal credits: CTC, EITC, AOTC, EV, solar, saver's credit, and more |
check_credit_eligibility |
Quick screening based on your income, family, and situation |
calculate_eitc |
Precise EITC calculation with phase-in/plateau/phase-out for 0-3 children |
estimate_premium_tax_credit |
TY2026 Premium Tax Credit (Form 8962) with the 400% limit, full APTC repayment, monthly allocation, and the below-100% and MFS exceptions |
Retirement & Strategy
| Tool |
What it does |
get_retirement_accounts |
IRA, Roth, 401k, SEP, Solo 401k, HSA, 529: limits, tax treatment, tips |
get_retirement_strategy |
Backdoor Roth, Mega Backdoor, Roth Conversion Ladder, Tax Loss/Gain Harvesting |
Tax Planning & Scenarios
| Tool |
What it does |
generate_tax_plan |
Privacy-first local plan with structured results, assumptions, sources, trace, and explicit boundaries |
get_tax_planning_tips |
Personalized year-end optimization: 401k maxing, HSA, Roth conversion, tax-loss harvesting, charitable bunching |
compare_tax_years |
Compare TY2024 vs TY2025 to see how bracket changes and OBBB affect your tax |
estimate_self_employment_tax |
Full SE tax breakdown: Schedule C profit, SE tax, QBI deduction, quarterly payments, SEP/Solo 401k limits |
analyze_mortgage_tax_benefit |
Mortgage interest + property tax deduction analysis with year-specific SALT cap |
analyze_education_tax_benefits |
AOTC vs Lifetime Learning Credit comparison, student loan deduction, 529 plan guidance |
State Taxes
| Tool |
What it does |
get_state_tax_info |
Reference data and notes for all 50 states + DC |
estimate_state_tax |
Estimate supported state paths; unsupported bracket data fails closed |
compare_state_taxes |
Compare states only when every requested calculation is supported |
list_no_income_tax_states |
All 9 states with no broad individual income tax |
IRS Information
| Tool |
What it does |
get_tax_deadlines |
Key IRS dates and deadlines by tax year |
check_refund_status |
How to check your refund (guidance only: no IRS account access) |
get_irs_form_info |
Info about 14 common IRS forms (1040, W-2, 1099s, Schedules, etc.) |
OBBB Act (2025) Tools