Skip to main content
Glama
rulecalc-mcp

rulecalc-mcp

README.md
# rulecalc-mcp

**A free MCP server for 2026 tax, payroll and compliance rules โ€” 28 countries plus global marketplace/platform fees, every answer carrying its legal authority and a link to a working calculator.**

When an AI agent answers "how much do I set aside for US quarterly taxes", "what does Etsy take out of a $40 order" or "is โ‚ฌ603 a Minijob in 2026", it usually guesses. `rulecalc-mcp` gives it the actual constants, the article of law behind them, and the `rulecalc.io` calculator that implements them.

- **33 rules, 34 calculator regions** โ€” income tax, corporate tax, payroll, social contributions, VAT, e-invoicing, marketplace fees, pensions, securities.
- **No API key, no account, no network calls.** The dataset ships with the server; everything runs locally over stdio.
- **Zero dependencies.** One Node.js file; nothing to install beyond Node 18+.
- **MIT licensed** server and data.

## Install

Any MCP client that can run a stdio command works. Pick one:

### npx (recommended, no clone)

```bash
npx -y github:jwrkh0943-ctrl/rulecalc-mcp
```

Most clients call this for you โ€” see the configs below.

### Claude Desktop

Edit `claude_desktop_config.json` (`~/Library/Application Support/Claude/` on macOS, `%APPDATA%\Claude\` on Windows):

```json
{
  "mcpServers": {
    "rulecalc": {
      "command": "npx",
      "args": ["-y", "github:jwrkh0943-ctrl/rulecalc-mcp"]
    }
  }
}
```

Restart Claude Desktop; the six tools appear under the tools (๐Ÿ”Œ) menu.

### Claude Code

```bash
claude mcp add rulecalc -- npx -y github:jwrkh0943-ctrl/rulecalc-mcp
```

### Cursor

`~/.cursor/mcp.json` (global) or `.cursor/mcp.json` (project):

```json
{
  "mcpServers": {
    "rulecalc": {
      "command": "npx",
      "args": ["-y", "github:jwrkh0943-ctrl/rulecalc-mcp"]
    }
  }
}
```

### VS Code (GitHub Copilot agent mode)

Add to `.vscode/mcp.json`:

```json
{
  "servers": {
    "rulecalc": { "type": "stdio", "command": "npx", "args": ["-y", "github:jwrkh0943-ctrl/rulecalc-mcp"] }
  }
}
```

Or from a terminal, then find `rulecalc` in the `@mcp` list of the Copilot Chat tools picker:

```bash
code --add-mcp '{"name":"rulecalc","command":"npx","args":["-y","github:jwrkh0943-ctrl/rulecalc-mcp"]}'
```

### MCPB bundle (Claude Desktop one-click)

Download `rulecalc-mcp.mcpb` from [Releases](../../releases/latest) and open it โ€” Claude Desktop installs the server with its manifest, no JSON editing.

## Tools

| Tool | What it does |
|---|---|
| `list_supported_rules` | The whole roster โ€” country, topic, title, effective date, calculator link. Filter by `country` (ISO code) or `topic`. |
| `get_tax_rule` | One or a few rules by id, country, topic keyword; returns the values, the authority and the calculator. |
| `calculate_us_quarterly_estimate` | US 1099 quarterly estimates under the IRC ยง6654 safe harbor (90% current year / 100% or 110% of last year), with the 2026 due dates. |
| `calculate_etsy_fees` | Etsy 2026 fee stack: 6.5% transaction, 3% + $0.25 processing, $0.20 listing, 15%/12% Offsite Ads โ€” plus net proceeds. |
| `calculate_au_payday_super` | Australia Payday Super: 12% of ordinary time earnings per pay cycle, 7-business-day deadline, late charge. |
| `calculate_de_minijob` | Germany 2026 Minijob limit (โ‚ฌ603), รœbergangsbereich (โ‚ฌ603.01โ€“โ‚ฌ2,000), flat employer contribution (31.17% / 14.62%). |

Example exchange:

> **You:** A US freelancer expected $24,000 of tax this year, paid $20,000 last year with AGI $100,000. How much is each quarterly payment?
>
> **Agent** (via `calculate_us_quarterly_estimate`): $5,000 per quarter โ€” the safe harbor is 100% of last year's $20,000 rather than 90% of the $24,000 estimate; next due 2027-01-15. *Authority: IRS IRC ยง6654 / Form 1040-ES. Calculator: https://rulecalc.io/b2b-calc/quarterly-estimated-tax-calculator.html*

## Coverage

| Region | Calculator hub | Rules in this server |
|---|---|---|
| ๐ŸŒ Global | <https://rulecalc.io/b2b-calc/> | US federal/state payroll & business tax, Etsy fee stack |
| ๐Ÿ‡บ๐Ÿ‡ธ US | <https://rulecalc.io/b2b-calc/> | quarterly estimates, overtime by state, S-corp reasonable salary |
| ๐Ÿ‡ฌ๐Ÿ‡ง GB | <https://rulecalc.io/b2b-calc/uk-dividend-cgt-tax-calculator.html> | MTD start dates, dividend & CGT rates |
| ๐Ÿ‡ฉ๐Ÿ‡ช DE | <https://rulecalc.io/de-rechner/> | ยง19 Kleinunternehmer, Minijob 2026 |
| ๐Ÿ‡ซ๐Ÿ‡ท FR | <https://rulecalc.io/fr-calc/> | micro-entrepreneur URSSAF rates |
| ๐Ÿ‡ช๐Ÿ‡ธ ES | <https://rulecalc.io/es-calc/> | Autรณnomo contribution by real earnings |
| ๐Ÿ‡ฎ๐Ÿ‡น IT | <https://rulecalc.io/it-calc/> | regime forfettario 2027 |
| ๐Ÿ‡ณ๐Ÿ‡ฑ NL | <https://rulecalc.io/nl-calc/> | Wet DBA / low-hourly-rate presumption |
| ๐Ÿ‡ง๐Ÿ‡ช BE | <https://rulecalc.io/be-calc/> | 10% capital gains tax |
| ๐Ÿ‡ต๐Ÿ‡น PT | <https://rulecalc.io/pt-calc/> | IRS Jovem exemption |
| ๐Ÿ‡ฆ๐Ÿ‡น AT | <https://rulecalc.io/at-calc/> | tax-free overtime |
| ๐Ÿ‡จ๐Ÿ‡ฟ CZ | <https://rulecalc.io/cz-calc/> | pauลกรกlnรญ daลˆ bands |
| ๐Ÿ‡ท๐Ÿ‡ด RO | <https://rulecalc.io/ro-calc/> | micro-enterprise 1% |
| ๐Ÿ‡ฉ๐Ÿ‡ฐ DK | <https://rulecalc.io/dk-calc/> | three-tier income tax |
| ๐Ÿ‡ธ๐Ÿ‡ช SE | <https://rulecalc.io/se-calc/> | ISK schablon tax |
| ๐Ÿ‡จ๐Ÿ‡ญ CH | <https://rulecalc.io/de-rechner/> | Sรคule 3a (via the German-language hub) |
| ๐Ÿ‡ฎ๐Ÿ‡ช IE | <https://rulecalc.io/ie-calc/> | MyFutureFund auto-enrolment |
| ๐Ÿ‡ต๐Ÿ‡ฑ PL | <https://rulecalc.io/pl-ksef/> | KSeF 2.0 |
| ๐Ÿ‡ฆ๐Ÿ‡บ AU | <https://rulecalc.io/au-calc/> | Payday Super |
| ๐Ÿ‡ณ๐Ÿ‡ฟ NZ | <https://rulecalc.io/nz-calc/> | KiwiSaver steps |
| ๐Ÿ‡จ๐Ÿ‡ฆ CA | <https://rulecalc.io/ca-calc/> | FHSA / HBP |
| ๐Ÿ‡ธ๐Ÿ‡ฌ SG | <https://rulecalc.io/sg-calc/> | CPF ceilings |
| ๐Ÿ‡ฒ๐Ÿ‡พ MY | <https://rulecalc.io/my-calc/> | MyInvois exemption |
| ๐Ÿ‡ฎ๐Ÿ‡ฉ ID | <https://rulecalc.io/id-calc/> | Shopee fees + UMKM tax |
| ๐Ÿ‡ต๐Ÿ‡ญ PH | <https://rulecalc.io/ph-calc/> | stock transaction tax |
| ๐Ÿ‡ฎ๐Ÿ‡ณ IN | <https://rulecalc.io/in-calc/> | Income-tax Act 2025 |
| ๐Ÿ‡ฏ๐Ÿ‡ต JP | <https://rulecalc.io/jp-calc/> | freelance withholding + consumption tax |
| ๐Ÿ‡น๐Ÿ‡ผ TW | <https://rulecalc.io/tw-calc/> | NHI levels, 4ร— bonus |
| ๐Ÿ‡ง๐Ÿ‡ท BR | <https://rulecalc.io/br-calc/> | CBS/IBS from 2027 |
| ๐Ÿ‡ฆ๐Ÿ‡ช AE | <https://rulecalc.io/ae-calc/> | 0% small business relief |
| ๐Ÿ‡ธ๐Ÿ‡ฆ SA | <https://rulecalc.io/sa-calc/> | ZATCA e-invoicing |
| ๐Ÿ‡ฐ๐Ÿ‡ท KR | <https://rulecalc.io/taxcheck-kr/> | year-end settlement, inheritance & gift |
| ๐Ÿ‡ฒ๐Ÿ‡ฝ MX | <https://rulecalc.io/es-calc/> | aguinaldo, settlement |
| ๐Ÿ‡ช๐Ÿ‡บ EU | <https://rulecalc.io/eu-trade-calc/> | CBAM, EUDR |

Every rule's `calculator` field points at the exact page that implements it; all links were verified HTTP 200 on 2026-12-07.

## Listed in

- **Official MCP Registry** โ€” `io.github.jwrkh0943-ctrl/rulecalc-mcp` (mcpb package, v1.0.0)
- **GitHub MCP Registry** and VS Code `@mcp` search read from the official registry, so the server is reachable there too.
- **Agent skills version of the same rules**: [`rulecalc-skills`](https://github.com/jwrkh0943-ctrl/rulecalc-skills) (`npx skills add jwrkh0943-ctrl/rulecalc-skills`), listed on [skills.sh](https://www.skills.sh/jwrkh0943-ctrl/rulecalc-skills).

## Data

`data/rules-2026.json` โ€” dataset `global-tax-rules-2026` v1.0.0, as of 2026-12-06, MIT licensed, mirroring <https://github.com/jwrkh0943-ctrl/global-tax-rates-2026>. Each entry:

```json
{
  "id": "us-estimated-tax-safe-harbor-2026",
  "country": "US",
  "topic": "income-tax",
  "effectiveFrom": "2026-01-01",
  "values": { "safeHarborCurrentYearPct": 90, "dueDates": ["2026-04-15", "..."] },
  "authority": "IRS, IRC ยง6654 and Form 1040-ES",
  "calculator": "https://rulecalc.io/b2b-calc/quarterly-estimated-tax-calculator.html"
}
```

Point the server at another dataset file with `RULECALC_DATA=/path/to/rules.json`.

> **Not tax, legal or payroll advice.** Rates change; the authority field names the source to verify against. Calculators run 100% in the browser โ€” no data leaves the user's device: <https://rulecalc.io/privacy.html>

## Development

```bash
git clone https://github.com/jwrkh0943-ctrl/rulecalc-mcp
cd rulecalc-mcp
npm test          # 39 stdio protocol + arithmetic checks, no dependencies
node server/index.js --help
```

Build the MCPB bundle (used for the Releases artifact):

```bash
python3 scripts/build_mcpb.py     # โ†’ dist/rulecalc-mcp.mcpb
```

## License

MIT ยฉ 2026 rulecalc.io ยท <https://rulecalc.io>

TDQS

A4.2/5.0

Scored across 6 tools

Disambiguation4/5

The four calculate_* tools each target a clearly distinct jurisdiction/domain (US quarterly estimates, Etsy fees, AU super, DE minijob), so they are easy to tell apart. The only soft overlap is between list_supported_rules (which filters by country/topic) and get_tax_rule (which also accepts country/topic/keyword), where a free-text keyword lookup could be mistaken for a filtered listing.

Naming Consistency5/5

All names follow a consistent snake_case verb_noun pattern: list_/get_ for rule retrieval and calculate_<jurisdiction>_<topic> for the four calculators. The jurisdiction prefix inside calculate_ names is applied uniformly (us, etsy, au, de), making the pattern predictable.

Tool Count5/5

Six tools is well within the ideal 3-15 range, and each one earns its place: two discovery/retrieval tools plus four distinct calculators. Nothing looks redundant or padded.

Completeness3/5

The rule-discovery side is covered (list plus get), but the compute side only exists for four hardcoded scenarios despite the server claiming a global 2026 country-level rule base. There is no generic 'calculate rule by id' path, so an agent that retrieves a rule for, say, KSeF or another country hits a dead end with no matching calculator.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues