npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

statetakehome-mcp

v0.1.1

Published

Take-home pay MCP server for all 50 US states + DC — 2026 federal & state brackets, FICA, and the new OBBBA tips/overtime deductions, straight from statetakehome.com's calculation engine.

Readme

statetakehome-mcp

npm version License: MIT

A Model Context Protocol (MCP) server that puts a full US paycheck-tax engine directly at your AI assistant's fingertips: federal brackets, all 50 states + DC, FICA, self-employment tax, and capital gains — all for the 2026 tax year, and all sourced from the same engine that powers statetakehome.com.

Why it's different: most take-home-pay calculators stop at "gross minus taxes." This one also understands the 2026 OBBBA (One Big Beautiful Bill Act) landscape — the current-year federal brackets and thresholds it ships with already reflect the post-OBBBA baseline, so estimates stay accurate as the rules that shaped the 2026 tax year continue to roll out.

Quick Start

No installation needed — run it with npx.

Claude Desktop / Claude Code

Add to your MCP config (claude_desktop_config.json or .mcp.json):

{
  "mcpServers": {
    "statetakehome": {
      "command": "npx",
      "args": ["-y", "statetakehome-mcp"]
    }
  }
}

Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "statetakehome": {
      "command": "npx",
      "args": ["-y", "statetakehome-mcp"]
    }
  }
}

Restart your client and the three tools below become available.

Tools

1. us_take_home_pay

Net pay for a US W-2 employee: federal income tax, state income tax (all 50 states + DC), Social Security, Medicare, Additional Medicare, and state-specific extras (CA SDI, OR transit tax, etc.). Handles pre-tax 401(k) and health-insurance deductions and returns a per-paycheck breakdown for every pay frequency.

Example call:

{
  "gross": 75000,
  "state": "CA",
  "filingStatus": "single"
}

Response (abridged, from the live engine):

{
  "result": {
    "gross": 75000,
    "federalTax": 7670,
    "stateTax": 2940.85,
    "socialSecurity": 4650,
    "medicare": 1087.5,
    "totalTax": 17323.35,
    "takeHome": 57676.65,
    "effectiveRate": 0.2310,
    "perPaycheck": { "biweekly": 2218.33, "monthly": 4806.39 }
  }
}

The same input with "state": "TX" (no state income tax) returns stateTax: 0 and takeHome: 61592.5 — $3,915.85 higher on the same gross pay.

2. self_employment_tax

Schedule SE self-employment tax (15.3% on 92.35% of net profit, split into the Social Security and Medicare portions), the 0.9% Additional Medicare surtax, federal income tax, an optional state income tax, and a quarterly estimated-payment figure.

Example call:

{
  "netProfit": 90000,
  "filingStatus": "single",
  "state": "TX"
}

Response (abridged, from the live engine):

{
  "result": {
    "netProfit": 90000,
    "seTax": 12716.6,
    "seTaxDeduction": 6358.3,
    "federalIncomeTax": 9571.17,
    "totalTax": 22287.77,
    "quarterlyEstimate": 5571.94,
    "setAsidePct": 0.2477
  }
}

3. capital_gains_tax

Federal capital gains tax — long-term stacked 0%/15%/20% bands or short-term ordinary rates — plus the 3.8% Net Investment Income Tax (NIIT) above the MAGI threshold, and an optional state estimate (most states tax gains as ordinary income).

Example call:

{
  "gain": 50000,
  "ordinaryTaxableIncome": 80000,
  "filingStatus": "single",
  "term": "long"
}

Response (abridged, from the live engine):

{
  "result": {
    "gain": 50000,
    "taxableGain": 50000,
    "federalTax": 7500,
    "niit": 0,
    "totalTax": 7500,
    "netProceeds": 42500,
    "ltcgRate": 0.15
  }
}

Data & Methodology

  • Tax year: 2026.
  • Federal brackets & standard deduction: IRS Rev. Proc. 2025-32.
  • State brackets & standard deductions: Tax Foundation — State Individual Income Tax Rates and Brackets, as of January 1, 2026, cross-checked against individual state Departments of Revenue.
  • FICA: current Social Security wage base and Medicare rates, including the 0.9% Additional Medicare surtax.
  • Capital gains: long-term bands and the NIIT threshold per Rev. Proc. 2025-32, cross-checked against Tax Foundation and Schwab.
  • Every response includes a source block naming the underlying publication and a reference_url pointing to the matching calculator on the live site for further reading and methodology notes:
    • https://statetakehome.com/
    • https://statetakehome.com/self-employment-tax-calculator
    • https://statetakehome.com/capital-gains-tax-calculator

The calculation code in this package is the same engine that runs statetakehome.com, kept in sync by hand — it is not a reimplementation.

Disclaimer

This tool produces estimates for planning purposes only. It is not tax advice. Tax situations vary; consult a licensed CPA or tax professional before making financial decisions.

License

MIT © tresor4k