ChinaTaxCalc

Deterministic China expat IIT calculator, 8 BIA tax-free allowances, annual bonus tax-cliff optimizer, 6-year global taxation rule tracker, and Greater Bay Area 15% subsidy calculator (8 read-only tools, no auth).

Hosted MCP Server

npx add-mcp 'https://chinataxcalc.com/api/mcp'

Installs into Claude Code, Codex, Cursor and more

Documentation

ChinaTaxCalc MCP Server — China Expat IIT, BIA Allowance, Annual Bonus & GBA 15% Rebate Engine

ChinaTaxCalc Logo

Overview & Production Architecture

ChinaTaxCalc (https://chinataxcalc.com) exposes a stateless, zero-authentication Model Context Protocol (MCP) server (streamable-http at https://chinataxcalc.com/api/mcp) backed directly by mainland China Individual Income Tax (IIT) engines, MOF/STA Announcements [2023] No. 29 (tax-exempt expat BIA housing and international school tuition through 2027) and [2023] No. 30 (annual one-off bonus separate calculation & cliff dead-zone detection), STA [2018] No. 56 12-month cumulative withholding simulations, six municipal social insurance caps, nine Greater Bay Area 15% fiscal rebate hubs, seven international relocation benchmarks (US-CA, US-NY, US-TX, UK, DE, SG, HK), the 6-year worldwide tax 31-day reset rule, and SAFE Circular [2020] No. 14 salary repatriation bank checklists. All 8 tools are public and annotated readOnlyHint: true with no API keys required.

Available MCP Tools (8 Read-Only Tools)

Tool NamePurpose & Deterministic EngineKey ParametersSafety
calculate_china_expat_iit_and_net_salaryCompute annual and monthly net take-home cash, marginal brackets, employer costs, and tax savings from eight Fapiao-backed BIA allowances acrossgrossAmount*, incomePeriod, currency, cityId (+4 more)readOnly
simulate_cumulative_monthly_withholdingSimulate January-to-December paycheck variance under STA Announcement 2018 No. 56, highlighting bracket jump months and lumpy school tuition spikmonthlyGrossRMB*, monthlySSRMB, monthlyBIARMB, lumpyTuitionMode (+1 more)readOnly
compare_annual_bonus_separate_vs_combined_taxContrast MOF/STA Announcement 30 separate bonus taxation against combined comprehensive filing and warn about statutory bracket cliff traps.annualTaxableSalaryRMB, annualBonusRMBreadOnly
analyze_landlord_fapiao_surcharge_roiEvaluate whether paying a landlord surcharge to obtain official housing VAT invoices generates positive after-tax savings at your marginal rate.monthlyRentRMB, surchargeRatePct, marginalRate*readOnly
calculate_gba_15pct_talent_tax_subsidyQuantify municipal fiscal refunds across nine Greater Bay Area hubs like Shenzhen Qianhai and Guangzhou Nansha where effective burden caps at 15actualIITPaidRMB, taxableIncomeRMB, gbaCityIdreadOnly
compare_cross_border_relocation_net_payBenchmark equivalent USD compensation across seven global financial hubs against Shanghai expat net pay with cost-of-living index comparisons.grossUSD*, comparisonHubs, chinaCityId, chinaHousingAllowanceUSDreadOnly
diagnose_six_year_worldwide_tax_ruleTrack consecutive 183-day residency years and verify whether a continuous 30+ day absence resets non-domiciled offshore income protection.records*readOnly
generate_safe_salary_repatriation_checklistAssemble the six mandatory counter verification items, Tax App registration tips, and bilingual SAFE quota exemption text for wiring RMB abroad.remitAmountRMB, targetCurrencyreadOnly

Live JSON-RPC 2.0 Verification Sample

Request (POST https://chinataxcalc.com/api/mcp):

curl -s -X POST https://chinataxcalc.com/api/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"calculate_china_expat_iit_and_net_salary","arguments":{"grossAmount":45000,"incomePeriod":"monthly","currency":"RMB","cityId":"shanghai","socialSecurityMode":"exempt","annualBonus":90000,"housingRental":12000}}}'

Verified Production Response:

{
  "sourceEngine": "src/utils/taxCalculations.ts (calculateExpatIIT)",
  "cityProfile": {
    "id": "shanghai",
    "name": "Shanghai",
    "minSocialBaseRMB": 7310,
    "maxSocialBaseRMB": 36549,
    "notes": "Expat Social Security exemption is historically supported in Shanghai (Hu Ren She Han [2021] No. 272). Foreign hires may mutually agree with employers to opt out."
  },
  "exchangeRateToRMB": 1,
  "standardAnnualDeductionRMB": 60000,
  "summary": {
    "currency": "RMB",
    "annualNetPay": 571440,
    "monthlyNetPay": 47620,
    "annualIIT": 58560,
    "monthlyIIT": 4880,
    "annualSocialSecurityEmployee": 0,
    "effectiveTaxRatePct": 9.3,
    "marginalTaxBracketPct": 25,
    "netTakeHomePct": 90.7,
    "taxSavingsFromBIA": 39000,
    "annualEmployerCost": 630000
  },
  "rmbBreakdown": {
    "totalAnnualGrossRMB": 630000,
    "totalAnnualBIARMB": 144000,
    "annualTaxableIncomeRMB": 336000,
    "annualComprehensiveIITRMB": 52080,
    "annualBonusIITRMB": 6480,
    "totalAnnualIITRMB": 58560,
    "totalAnnualNetPayRMB": 571440,
    "taxSavingsFromBIARMB": 39000
  },
  "calculatorUrl": "https://chinataxcalc.com"
}

Quick Client Configuration (Claude Desktop / Cursor / Windsurf / Gemini CLI / Hermes)

{
  "mcpServers": {
    "chinataxcalc": {
      "type": "http",
      "url": "https://chinataxcalc.com/api/mcp"
    }
  }
}

Or run directly from any Node.js terminal via the pinned official CLI:

npx -y chinataxcalc-cli@1.0.0 tools
npx -y chinataxcalc-cli@1.0.0 demo

Statutory Compliance & Tax Reference Matrices

China Comprehensive Income 7-Tier Progressive IIT Brackets (Standard Deduction: ¥60,000/yr)

LevelAnnual Taxable Income (RMB)Statutory Marginal RateQuick Deduction (RMB)Statutory Basis
1¥0 – ¥36,0003%¥0PRC IIT Law (Comprehensive Income)
2¥36,001 – ¥144,00010%¥2,520PRC IIT Law / STA [2018] No. 56
3¥144,001 – ¥300,00020%¥16,920PRC IIT Law / STA [2018] No. 56
4¥300,001 – ¥420,00025%¥31,920PRC IIT Law / STA [2018] No. 56
5¥420,001 – ¥660,00030%¥52,920PRC IIT Law / STA [2018] No. 56
6¥660,001 – ¥960,00035%¥85,920PRC IIT Law / STA [2018] No. 56
7Exceeding ¥960,00045%¥181,920PRC IIT Law / Top Marginal Bracket

Six-City Expat Social Insurance Base Caps & Policy Matrix

MunicipalitySocial Average Wage (RMB/mo)Contribution Base FloorContribution Base Ceiling (3x)Expat Participation & Regional Tax Rules
Shanghai¥12,183¥7,310¥36,549Historical opt-out flexibility under Hu Ren She Han [2021] No. 272
Beijing¥11,761¥6,326¥35,283Strictly mandatory unless covered by bilateral totalization treaty
Shenzhen¥8,807¥4,404¥26,421Qianhai / GBA 15% effective IIT fiscal subsidy (capped RMB 5M/yr)
Guangzhou¥8,807¥5,284¥26,421Nansha / Huangpu 15% IIT ceiling rebate for verified overseas talent
Hangzhou¥8,023¥4,814¥24,069Mandatory municipal contribution rules up to 300% cap
Chengdu¥7,356¥4,414¥22,068Mandatory social insurance with Western China talent incentives

Eight Statutory Expat Tax-Exempt BIA Allowances (MOF/STA Announcement [2023] No. 29 · Through Dec 31, 2027)

Allowance CategoryDocumentation RequirementPayroll Treatment & Key Caution
Housing RentalOfficial tax bureau VAT rental FapiaoDirect tax-base deduction; analyze landlord Fapiao fee ROI vs marginal tax rate
Children EducationAccredited school tuition invoice inside ChinaMust match non-cash direct payment or genuine Fapiao reimbursement
Language TrainingAccredited Mandarin school receiptEligible for bona fide language instruction for the foreign assignee
Home Leave FlightsAirline itinerary + Fapiao (up to 2 round trips/yr)Covers economy/business fare between work city in China and home country
Meal & Laundry AllowancesCorporate receipts / legitimate VAT FapiaoMust be reasonable and non-cash fixed subsidy
Relocation & Travel Per DiemMoving invoices / business travel policy receiptsDocumented arrival, departure, or business travel costs remain non-taxable

Official Web Calculators & Regulatory Guides

License

MIT License — maintained by ChinaTaxCalc.