npm tariff-resolverstdioupdated 15d ago
An MCP server that turns your AI assistant into a US import duty research tool — built on official USITC Harmonized Tariff Schedule data (US Government public domain, 35,000+ tariff lines).
¿Qué puedes hacer con tariff resolver?
tariff-resolver
An MCP server that turns your AI assistant into a US import duty research tool — built on official USITC Harmonized Tariff Schedule data (US Government public domain, 35,000+ tariff lines).
- 🔍 HTS code candidates from plain product descriptions, with CBP CROSS ruling links
- 🧮 Landed-cost components: MFN/FTA base rates + Chapter 99 additional duties (IEEPA / Section 301 / 232) + MPF/HMF fees
- 📡 Tariff change tracking: watchlist your HTS codes, diff rates between HTS revisions
- 🤖 AI-optimized, hallucination-resistant: returns the actual Chapter 99 rule text with parsed rates, so your LLM reasons over real exception chains instead of inventing 2024-era numbers

Why now: since the de minimis exemption ended (Aug 29, 2025), every US-bound shipment needs an HTS code and duty payment — and 2025–26 rates keep changing by executive order.
Not affiliated with any government agency. Outputs are candidates/estimates for pre-broker screening — not customs, legal, or tax advice. Estimates exclude AD/CVD duties.
Install
Requires Node.js ≥ 18.
claude mcp add tariff-resolver -- npx -y tariff-resolver
Or in any MCP client config:
{ "mcpServers": { "tariff-resolver": { "command": "npx", "args": ["-y", "tariff-resolver"] } } }
Claude Desktop (one-click): download tariff-resolver-<version>.mcpb from Releases and double-click it — no terminal needed.
💡 Try these 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 current: "Watch tariff changes for my catalog: 6109.10.00, 8507.60.00, 9617.00.10."
Tools
| Tool | What it does |
|---|---|
search_hs_candidates |
Product description → top HTS candidates with rates + CBP CROSS ruling links |
calculate_tariff_scenario |
HTS code + origin + value (+ weight) → structured JSON: base MFN/FTA rate, active Chapter 99 rules (footnote-linked / origin-matched / universal, terminated rules filtered), MPF/HMF |
watch_tariff_changes |
Register HTS codes to a local watchlist |
check_tariff_updates |
Diff current vs previous HTS revision — see exactly which rates changed |
dataset_info |
Data revision date, row counts, source, license |
Design
The server does the retrieval; your LLM does the reasoning. Chapter 99 rules are returned verbatim (with parsed adder_pct where applicable) so the model reads the actual exception chains instead of trusting a black-box calculation. Rates for 10-digit statistical suffixes inherit from their parent rate line. Headings the schedule marks as dead — terminated, suspended, expired — are filtered out and counted, and the USITC's own compiler_note rides along with any rule that carries one.
What the data cannot tell you. The published schedule is wrong in both directions at any given moment, so every result carries a stacking_warning and the snapshot date. Provisions whose collection has already stopped keep printing with no end date — IEEPA and Section 122 headings are the recurring case — and newly proclaimed actions appear in the schedule days after they take effect. Totalling every layer the schedule prints yields a rate nobody is charged. Treat the layers as candidates, and verify collection status against CBP CSMS messages before relying on a stack.
Data
Ships with a full HTS snapshot, fetched from USITC's official JSON API (US Government public domain). Refresh anytime:
python3 scripts/fetch_hts.py # ~2 min, fails hard rather than write a partial dataset
dataset_info reports the revision date your queries run against.
Privacy Policy
tariff-resolver runs entirely on your machine and collects nothing:
- Data collection: none. No queries, telemetry, analytics, or usage data are collected or transmitted.
- Usage and storage: your watchlist is stored in a local JSON file on your machine; all lookups run against the bundled local dataset.
- Third-party sharing: none. The server makes no network requests at runtime. (The optional
scripts/fetch_hts.pyrefresh script contacts only the official USITC API.) - Data retention: nothing to retain — delete the local watchlist file at any time.
- Contact: tom@opsloft.dev
Full policy: https://opsloft.dev/privacy
License
MIT. Tariff data is a work of the US Government (public domain).
Instalación
Añade tariff resolver a tu cliente. Elige el que uses.
claude mcp add tariff-resolver -- npx -y tariff-resolvercodex mcp add tariff-resolver -- npx -y tariff-resolveramp mcp add tariff-resolver -- npx -y tariff-resolver{
"mcpServers": {
"tariff-resolver": {
"command": "npx",
"args": [
"-y",
"tariff-resolver"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"tariff-resolver": {
"command": "npx",
"args": [
"-y",
"tariff-resolver"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
code --add-mcp '{"name":"tariff-resolver","command":"npx","args":["-y","tariff-resolver"]}'Or add the block manually to `.vscode/mcp.json` under `servers`.
{
"mcpServers": {
"tariff-resolver": {
"command": "npx",
"args": [
"-y",
"tariff-resolver"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"tariff-resolver": {
"command": "npx",
"args": [
"-y",
"tariff-resolver"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"tariff-resolver": {
"command": "npx",
"args": [
"-y",
"tariff-resolver"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"tariff-resolver": {
"type": "local",
"command": "npx",
"args": [
"-y",
"tariff-resolver"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"tariff-resolver": {
"command": {
"path": "npx",
"args": [
"-y",
"tariff-resolver"
]
}
}
}
}Add to your Zed `settings.json`.
npx -y tariff-resolverRun `goose configure`, choose **Add Extension → Command-line Extension**, and paste this command.
5 herramientas
tariff resolver expone 5 herramientas a un agente conectado.
- search_hs_candidates
- Product description → top HTS candidates with rates + CBP CROSS ruling links
- calculate_tariff_scenario
- HTS code + origin + value (+ weight) → structured JSON: base MFN/FTA rate, **active** Chapter 99 rules (footnote-linked / origin-matched / universal, terminated rules filtered), MPF/HMF
- watch_tariff_changes
- Register HTS codes to a local watchlist
- check_tariff_updates
- Diff current vs previous HTS revision — see exactly which rates changed
- dataset_info
- Data revision date, row counts, source, license
Puntuación
70 / 100
Buena
- Documentación21/25
- Mantenimiento25/25
- Confianza6/20
- Capacidad6/15
- Instalación12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 7 days ago
- Has a release history
- Repository is not archived
- No licence detected
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 5 tool(s) documented
- Provides prompt templates
- Provides resources
- 12 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint — no local install
Historial de versiones
| Versiones | Publicada |
|---|---|
| 1.0.3Última | 25 ago 2026 |
| 1.0.2 | 21 ago 2026 |
| 1.0.1 | 21 ago 2026 |
| 1.0.0 | 20 ago 2026 |
| 0.1.1 | 20 ago 2026 |