Skip to main content
Glama

tariff-resolver

npm version CI coverage: ≥95% lines, CI-enforced npm downloads node MCP Registry license: MIT

あなたのAIアシスタントを米国輸入関税調査ツールに変えるMCPサーバーです。公式USITC統一関税表データ(米国政府パブリックドメイン、35,000以上の関税ライン)に基づいています。

  • 🔍 HTSコード候補を平易な製品説明から抽出し、CBP CROSS裁定リンク付き

  • 🧮 陸揚げコスト構成要素: MFN/FTA基本税率 + 第99章追加関税(IEEPA / 301条 / 232条)+ MPF/HMF手数料

  • 📡 関税変更追跡: HTSコードをウォッチリストに登録し、HTS改訂間の税率差分を確認

  • 🤖 AI最適化・幻覚耐性: 解析済み税率付きの実際の第99章ルールテキストを返すため、LLMは2024年当時の数字をでっち上げるのではなく、実際の例外チェーンに基づいて推論できます。

Demo: resolving duties for a vacuum flask from China, then switching product and origin — the full Chapter 99 stack recalculates live

なぜ今なのか: de minimis免税が終了した(2025年8月29日)ため、米国向けのすべての貨物にはHTSコードと関税支払いが必要です。さらに2025〜26年の税率は大統領令によって変わり続けています。

いかなる政府機関とも提携していません。出力はブローカー事前審査用の候補・見積もりであり、税関・法律・税務アドバイスではありません。見積もりにはAD/CVD関税は含まれません。

インストール

Node.js ≥ 18 が必要です。

claude mcp add tariff-resolver -- npx -y tariff-resolver

または任意のMCPクライアント設定で:

{ "mcpServers": { "tariff-resolver": { "command": "npx", "args": ["-y", "tariff-resolver"] } } }

Related MCP server: tariffmonitor-mcp

💡 プロンプトの例

  • 基本検索: 「男性用100%コットンTシャツのHTSコードを探してください。」

  • 完全なシナリオ: 「HTS 6109.10.00、原産国中国、税関価格5,000ドル、海上輸送の関税シナリオを計算してください。」

  • 調達判断: 「ステンレス製真空フラスコを1万ドル分輸入します。中国から調達する場合とベトナムから調達する場合の陸揚げコストを比較してください。」

  • 最新情報の把握: 「私のカタログの関税変更を監視してください: 6109.10.00、8507.60.00、9617.00.10。」

ツール

ツール

説明

search_hs_candidates

製品説明 → 税率付きの上位HTS候補 + CBP CROSS裁定リンク

calculate_tariff_scenario

HTSコード + 原産国 + 価格(+ 重量)→ 構造化JSON: 基本MFN/FTA税率、有効な第99章ルール(脚注リンク / 原産国一致 / 普遍、終了したルールは除外)、MPF/HMF

watch_tariff_changes

HTSコードをローカルウォッチリストに登録

check_tariff_updates

現在と前回のHTS改訂を差分比較 — どの税率が変わったかを正確に確認

dataset_info

データ改訂日、行数、ソース、ライセンス

設計

サーバーは取得を行い、LLMが推論を行います。第99章ルールは(該当する場合は解析済みのadder_pct付きで)そのまま返されるため、モデルはブラックボックス計算を信頼するのではなく、実際の例外チェーンを読み取ります。10桁の統計サフィックスの税率は親の税率ラインから継承されます。終了した条項は除外され、カウントされます。

データ

USITC公式JSON API(米国政府パブリックドメイン)から取得した完全なHTSスナップショットが同梱されています。いつでも更新できます:

python3 scripts/fetch_hts.py   # ~2 min, fails hard rather than write a partial dataset

dataset_infoは、クエリが実行される改訂日を報告します。

ライセンス

MIT。関税データは米国政府の著作物(パブリックドメイン)です。

Available Tools

5 tools
calculate_tariff_scenarioCalculate tariff scenarioA
Read-only

Returns the HTS code's MFN/FTA base rate, ALL active chapter 99 rules (IEEPA/301/232 additional duties) matching the origin as verbatim text, and MPF/HMF fees. The LLM should walk the chapter-99 exception chains itself to stack the right duty layers, explain each step to the user, and always note this is an estimate.

Inputs: hts_code (required), origin_country (required), customs_value_usd (required), quantity, +2 more.

check_tariff_updatesCheck tariff changes between revisionsD
Read-only

Compares the current HTS snapshot with the previously fetched one. Call without codes to check the whole watchlist. Returns each change: code, column (general/special/other/additionalDuties), old → new value.

Inputs: hts_codes.

dataset_infoDataset infoA
Read-only

Fetch date, source, license, row counts — use to check data freshness.

Inputs: no named parameters.

search_hs_candidatesSearch HTS code candidatesA
Read-only

Returns top 8-10 digit HTS code candidates (with MFN/FTA rates and CBP CROSS ruling links) for a product description. Results are CANDIDATES for pre-broker screening, not a classification ruling. IMPORTANT: the HTS uses legal terminology, not trade names — BEFORE CALLING, rewrite the product description into HTS-style material + use nouns (e.g. 'pink kids backpack' → 'travel bags of man-made fibers'; 'water bottle' → 'vacuum flask' or 'bottle of plastics'). If you get 0 results, retry with 2-3 different phrasings.

Inputs: product_description (required), limit.

watch_tariff_changesWatch HTS codes for tariff changesA
Idempotent

Saves HTS codes (with optional origin) to a local watchlist. After each dataset refresh, call check_tariff_updates to see whether the rates on these codes changed. This is how you track 2025-2026 tariff volatility without manual re-checking.

Inputs: hts_codes (required), origin_country.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 5 tools

    Disambiguation5/5

    Each tool has a clearly distinct role: candidate search, detailed scenario calculation, watchlist management, update checking, and dataset metadata. Even the paired watch/check tools are unambiguous because one saves codes and the other compares snapshots.

    Naming Consistency4/5

    Four tools follow a consistent verb_noun pattern: search_hs_candidates, calculate_tariff_scenario, watch_tariff_changes, check_tariff_updates. dataset_info breaks the pattern as a noun-only name, which is a minor deviation but not confusing.

    Tool Count5/5

    Five tools is well-scoped for a focused tariff-resolution server. Each tool covers a distinct part of the workflow without redundancy or unnecessary breadth.

    Completeness4/5

    The core workflow is covered: search candidates, calculate duty scenarios, track changes, and verify data freshness. A minor gap is that watch_tariff_changes has no corresponding unwatch or list-watchlist tool, so watchlist management is slightly incomplete.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to search EU/French customs codes, get duty rates, and monitor tariff changes via natural language, using the DouaneCode API.
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Live US import tariff calculator covering 19,856 HTS codes, allowing AI to look up stacked tariff rates and project the November 10, 2026 cliff impact on any product.
      2
      563 npm
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Provides access to US import tariff rates via the USITC Harmonized Tariff Schedule, enabling natural language queries for tariff data.
      62 npm
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables US import compliance by providing CBP customs ruling letter searches and antidumping/countervailing duty order lookups, answering how Customs has classified products and whether trade-remedy duties apply.
      57 npm
      MIT