jp-tax-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
jp-tax-mcp — 日本の税計算 MCP サーバー(令和8年分)
Claude などの AI アシスタントから、日本の個人の税金を テスト済みの計算式で 計算するための MCP サーバーです。 LLM は税率や端数処理、年ごとの制度の違い(2割特例は個人の令和8年分まで、など)を取り違えることがあるため、 計算そのものはこのサーバーが行い、結果には根拠となる 国税庁のページの URL を必ず付けます。
依存パッケージなし(Node.js の標準機能だけで動きます)
ローカルで動く stdio サーバー。入力値は保存せず、外部にも送信しません
計算ロジックは、ブラウザ版の計算ツール(https://ai-sogyoki-github-io.ai-sogyoki.workers.dev/)と同じモジュールを
engines/に同梱しています
現在は 未公開(ローカル利用のみ) です。npm や MCP Registry にはまだ公開していません。
ツール
すべてのツールは読み取り専用です(readOnlyHint: true、openWorldHint: false)。金額は 円の整数 で渡します。
ツール名 | 内容 | 主な引数 |
| 報酬・料金等の源泉徴収税額(10.21% / 100万円超の部分 20.42%)、請求額、振込額。 |
|
| 会社員の副業について、所得税の確定申告と住民税の申告が必要かの判定、税額の目安 |
|
| インボイス登録後の消費税を、本則課税・簡易課税・2割特例・3割特例で比較し、最も有利な方式を表示 |
|
| 医療費控除とセルフメディケーション税制の控除額と比較、戻る税金の目安 |
|
| 不動産所得、建物の減価償却費(定額法・中古は簡便法)、青色申告特別控除、赤字の損益通算、申告要否と税額の目安 |
|
ratePct(所得税の税率 5/10/20/23/33/40/45)を省略すると、会社員に多い 5%〜20% の幅で目安を示します。
各ツールの結果には次のものが入ります。
計算した数字と、短い日本語の説明(テキスト)
「参考値です。最終判断は国税庁の情報や税理士にご確認ください。」という一文
根拠となる国税庁のページの URL
structuredContent: 計算モジュールが返した結果のオブジェクト(result)、出典の一覧(sources)など
入力が足りない・型が違う場合は、何を直せばよいかを日本語で書いた結果を isError: true で返します(AI が自分で直して呼び直せます)。
Related MCP server: JP Invoice & Tax MCP
使い方
Node.js 18 以上が必要です(開発・テストは Node.js 24 で行っています)。インストール作業は不要です。git clone https://github.com/ai-sogyoki/jp-tax-mcp.git で取得したフォルダをそのまま使います。
Claude Code
claude mcp add jp-tax -- node <このフォルダの絶対パス>/server.js例(Windows):
claude mcp add jp-tax -- node C:/tools/jp-tax-mcp/server.jsすべてのプロジェクトで使うときは --scope user を付けます。追加後、claude mcp list で接続を確認できます。
Claude Desktop
設定ファイル claude_desktop_config.json に次を追加して、Claude Desktop を再起動します。
Windows:
%APPDATA%\Claude\claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.json
{
"mcpServers": {
"jp-tax": {
"command": "node",
"args": ["C:\\path\\to\\jp-tax-mcp\\server.js"]
}
}
}質問の例
「原稿料を手取りで10万円もらうには、いくらで請求すればいい?(消費税は別記載)」
「会社員で、副業の業務委託の収入が30万円、経費が5万円。確定申告は必要?」
「令和8年分、売上500万円(サービス業)、経費80万円。インボイスの2割特例と簡易課税のどちらが得?」
プロトコル
MCP 仕様 の current である 2026-07-28 と、 それ以前の initialize 方式の版(2025-11-25 / 2025-06-18 / 2025-03-26 / 2024-11-05)の両方に対応しています(デュアル・エラ)。
stdio: 改行区切りの JSON-RPC 2.0。ログは stderr にだけ出します
2026-07-28 の方式: 各リクエストの
params._metaにio.modelcontextprotocol/protocolVersionとio.modelcontextprotocol/clientCapabilitiesを載せます。server/discover、ping、tools/list、tools/callに対応。対応外の版には-32022(UnsupportedProtocolVersion)を返しますinitialize 方式:
initialize(クライアントの版に対応していればその版を、していなければ 2025-11-25 を返す)、notifications/initialized、ping、tools/list、tools/call未知のメソッドは
-32601、パラメータの誤り(未知のツール名など)は-32602
リモート版(Cloudflare Workers / Streamable HTTP)
worker.mjs が Cloudflare Worker の入口です。プロトコル処理は stdio 版と同じ handle() を使い、サーバーは状態を持ちません。
POST /mcp: JSON-RPC を1件受け取り、JSON で返します(通知は 202・本文なし)。バッチは非対応GET /mcp: 405(サーバーからのストリーム配信はしません)GET /・/privacy: 説明とプライバシーポリシーOriginヘッダーがある場合は claude.ai / claude.com / localhost だけを許可。MCP-Protocol-Versionヘッダーが非対応の版なら 400
設定は wrangler.jsonc。Cloudflare の Git 連携でこのリポジトリをつなぐと、main への push で自動デプロイされます。
開発
node tests/mcp.test.js # プロトコル・5ツールの計算例・stdio のE2E
node tests/worker.test.mjs # Worker 版(HTTP)の入口
node scripts/sync-engines.js # サイトの assets/*.js を engines/ にコピー
node scripts/sync-engines.js --check # engines/ がサイトと一致しているか確認計算モジュールは AI創業記 ツールサイト と共通です(ソース: ai-sogyoki/ai-sogyoki.github.io の assets/)。
サイト側の計算モジュールを変更したら、必ず sync-engines.js を実行して engines/ を同期し、テストを通してください。
engines/ のファイルは手で編集しないでください(engines/manifest.json のハッシュと照合するテストがあります)。
免責
このサーバーの計算結果は 参考値 です。税制の細かな要件(特例の適用条件、対象となる支出の判定、所得控除など)をすべて反映しているわけではありません。 実際の申告や判断の前に、国税庁の情報を確認するか、税理士・税務署にご相談ください。計算結果を利用したことによる損害について、作者は責任を負いません。
プライバシー
入力された金額などの値は、このサーバーのプロセスの中で計算に使うだけで、ファイルにもログにも保存せず、外部のどこにも送信しません
ネットワーク通信は一切行いません(Node.js の標準機能だけで動き、外部 API を呼びません)
ただし、AI アシスタント(Claude など)自体が会話の内容をどう扱うかは、それぞれのサービスのポリシーに従います
ライセンス
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Deterministic Japan statutory calculations with cited primary sources: net pay, social insurance, income walls, bonus, consumption tax, business days, overtime, retirement tax, payslip audit and crypto tax. x402 (USDC on Base), no API key; failed calls are never charged.
Exact French tax & payroll calculations for AI agents: income tax (impôt sur le revenu: parts, quotient familial, décote, TMI), micro-entrepreneur URSSAF contributions (ACRE, versement libératoire) with an optional VAT franchise check (franchise en base de TVA: must I charge VAT?), and gross-to-net salary with employer cost — CDI or CDD (prime de précarité, congés payés), full-time or part-time. Missing information? Your agent gets, for free, the exact questions to ask the user (in French, with types and allowed values) in a single round trip. Deterministic, no LLM: matches all 7,095 values of the official DGFiP tax tables, 60 cases from the official simulators and the official worked examples of the tax doctrine (BOFiP). Unsupported cases are refused for free; you pay $0.005 in USDC via x402 only when the calculation succeeds. Free catalogue tool: list_france_calculators.
Machine-readable Japanese crypto-asset tax rules for AI agents: rules-as-code with citations, x402.
Free Japanese public-data tools for AI agents: holidays, business days, wareki, tax, postcodes.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceProvides Japanese tax and invoice utilities such as consumption tax calculation, withholding tax, invoice number validation, and tax rate summarization, enabling AI assistants to perform these operations locally without external APIs.MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to perform Japanese invoice and tax calculations, including consumption tax, withholding tax, invoice number validation, and invoice data generation, all locally without external APIs.MIT
- AlicenseNot gradedqualityDmaintenanceExposes machine-readable Japanese crypto-asset tax rules with statutory citations, tax parameters, and transition logic for AI agents.MIT
- AlicenseNot gradedqualityDmaintenanceComputes Japanese payroll, social insurance, and labour law obligations—such as premiums, withholding tax, and minimum wage—citing the statute each answer relies on, enabling auditable calculations through an AI assistant.3MIT