tariff-resolver is a server running on MCP (Model Context Protocol) that turns an AI assistant into a US import tariff research tool. Its data foundation is the official USITC Harmonized Tariff Schedule (US government public domain, containing 35,000+ tariff lines).
Purpose: to perform candidate, estimate-level screening of tariff classification and landed cost for imported goods before formally engaging a customs broker. The official explanation states that since the termination of the de minimis exemption on August 29, 2025, every shipment to the US requires an HTS code and payment of duties, and that 2025-26 rates often change by executive order, so continuous tracking is needed.
Main capabilities:
- HTS code candidates: provides candidate codes based on an ordinary product description, with links to CBP CROSS rulings.
- Landed cost composition: MFN/FTA base rate + Chapter 99 additional duties (IEEPA / Section 301 / 232) + MPF/HMF fees.
- Tariff change tracking: HTS codes can be added to a watch list to compare rate differences between HTS revisions.
- Anti-hallucination design: returns the actual text of Chapter 99 rules and the parsed rate (giving adder_pct when applicable), letting the LLM reason from the real exception chain rather than inventing figures from the 2024 era. The rate for a 10-digit statistical suffix inherits from its parent tariff line; headings marked as invalid in the tariff schedule (terminated, suspended, expired) are filtered out and counted, and USITC's own compiler_note is returned along with the relevant rules.
- Status overrides: data/status_overrides.json is a sourced list of Chapter 99 headings whose collection has stopped, expired, or been suspended but which are still printed in the tariff schedule. Layers matching this list are returned as possibly_expired, with status, reason, source URL, and as_of date attached, instead of being placed in layers. Each record includes a CBP, Federal Register, or USITC source.
- Core logic separated from the frontend: all tariff logic lives in tariff-resolver/core (pure TypeScript, with no filesystem or network access). The core function resolveDuty(dataset, { hts, origin, value_usd?, ocean?), origin accepts ISO-3166 alpha-2 codes or English country names, and returns the base line, separate MPF/HMF, each candidate Chapter 99 layer (with match and confidence), a sourced possibly_expired bucket, and the snapshot date. MCP tools call it, and any Node or edge runtime can also call it. Unrecognized country names return an ORIGIN_UNKNOWN error rather than a partial match, preventing a misspelled origin from silently resolving to a thinner layer stack.
How to use: requires Node.js ≥ 18. Can be configured in any MCP client. Claude Desktop supports one-click installation: download tariff-resolver-<version>.mcpb from Releases and double-click it, no terminal needed. The data comes with a full HTS snapshot taken from the official USITC JSON API; it can be updated at any time with a refresh script, and dataset_info reports the revision date on which the query is based.
Example prompts:
- Basic search: "Find the HTS code for a men's 100% cotton t-shirt."
- Full scenario: "Calculate the tariff scenario for HTS 6109.10.00, origin China, customs value $5,000, ocean freight."
- Sourcing decision: "I'm importing $10k of stainless steel vacuum flasks. Compare landed cost if I source from China vs Vietnam."
- Stay updated: "Watch tariff changes for my catalog: 6109.10.00, 8507.60.00, 9617.00.10."
Use cases: cross-border e-commerce, importers, and procurement and supply chain personnel performing tariff classification and landed cost comparisons before formal customs declaration, as well as continuously tracking rate changes for relevant HTS codes.
Limitations: the official documentation explicitly states it is not affiliated with any government agency; its output consists of candidates and estimates, intended only for pre-declaration screening, and does not constitute customs, legal, or tax advice; estimates do not include AD/CVD (anti-dumanti-dumping/countervailing) duties. The published tariff tables can be wrong in either direction at any given moment, so every result carries a stacking_warning and a snapshot date. Provisions that have ceased to be collected (IEEPA and Section 122 headings are recurring cases) are still printed without an end date; newly announced measures appear in the tariff tables only several days after taking effect; summing all the layers printed in the tariff tables yields a rate that no one is actually charged. The layers should be treated as candidates, and before relying on a layer stack, verify collection status against CBP CSMS messages.
Privacy: Runs entirely locally, collects no data; no queries, telemetry, analytics, or usage data are collected or transmitted; the watch list is stored in a local JSON file; no network requests are made at runtime (the optional scripts/fetch_hts.py refresh script contacts only the official USITC API). License is MIT; tariff data is a U.S. Government work (public domain).