Skip to main content
Glama

tariff-resolver

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

一个 MCP 服务器,将你的 AI 助手变成 美国进口关税研究工具 —— 基于美国国际贸易委员会(USITC)官方协调关税表数据(美国政府公有领域,35,000+ 关税行)。

  • 🔍 HTS 编码候选:从普通产品描述中提取,附带 CBP CROSS 裁定链接

  • 🧮 到岸成本构成:MFN/FTA 基础税率 + 第 99 章附加关税(IEEPA / 301 条款 / 232 条款)+ MPF/HMF 费用

  • 📡 关税变更跟踪:将 HTS 编码加入观察列表,对比 HTS 修订版本之间的税率差异

  • 🤖 AI 优化、抗幻觉:返回 实际 第 99 章规则文本及解析后的税率,让你的 LLM 基于真实的例外链进行推理,而不是凭空编造 2024 年的数字

演示:计算从中国进口真空保温瓶的关税,然后切换产品和原产国 —— 完整的第 99 章堆栈实时重新计算

为什么是现在:自 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

产品描述 → 带税率和 CBP CROSS 裁定链接的 HTS 候选

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 位统计后缀的税率继承自其父税率行。已终止的条款会被过滤并计数。

数据

随附完整的 HTS 快照,从 USITC 官方 JSON API(美国政府公有领域)获取。可随时刷新:

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