US Tariff Schedule (USITC HTS)
Official USITC Harmonized Tariff Schedule lookup, base import duty calculation and Chapter 99 provisions. Pay per call in USDC via x402 ($0.02) or a Pro API key ($39/month). Base duty only.
Hosted MCP Server
npx add-mcp 'https://mcp-us-tariff.scorematic.workers.dev/mcp'Installs into Claude Code, Codex, Cursor and more
Documentation
mcp-us-tariff
v0.1.1 · Model Context Protocol (MCP) server · Streamable HTTP
Search the official US Harmonized Tariff Schedule and compute the base HTS duty for a shipment, using live data from the USITC HTS REST API.
MCP endpoint: https://mcp-us-tariff.scorematic.workers.dev/mcp
Quick start
Add the server to any MCP client that supports remote (Streamable HTTP) servers:
{
"mcpServers": {
"mcp-us-tariff": {
"url": "https://mcp-us-tariff.scorematic.workers.dev/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}
}
The Authorization header is for a Pro API key. Agents that pay per call with x402 leave it out.
Or call a tool directly over JSON-RPC:
curl -s https://mcp-us-tariff.scorematic.workers.dev/mcp \
-H 'content-type: application/json' \
-H 'accept: application/json, text/event-stream' \
-H 'mcp-protocol-version: 2025-06-18' \
-H 'authorization: Bearer YOUR_API_KEY' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"lookup_hts_code","arguments":{"query":"insulated copper wire","limit":10}}}'
Tools
initialize and tools/list are always free. Every tool returns structured JSON with source (upstream URL) and retrieved_at. When a value can't be determined, the tool returns an error result with a machine-readable error.code instead of a guess, and failed calls are never billed.
lookup_hts_code
Search the official USITC Harmonized Tariff Schedule by keyword or HTS number. Returns codes with general, special and column 2 rates.
Billing: $0.02 per successful call
| Input | Type | Notes |
|---|---|---|
query | string | (min length 2, max length 200) |
limit (optional) | integer | (min 1, max 100, default 25) |
Output: query, total_matches, results[{hts_code, indent, description, general_rate, special_rate, column_2_rate, units, footnotes}], source, retrieved_at.
Example arguments:
{
"query": "insulated copper wire",
"limit": 10
}
calculate_import_duty
Base HTS duty for an 8/10-digit code, ISO-2 country of origin and customs value. Applies Column 2 for CU/KP/RU/BY and FTA special rates where the HTS lists the country's program. Ad valorem rates only; Chapter 99 additional duties are not included.
Billing: $0.02 per successful call
| Input | Type | Notes |
|---|---|---|
hts_code | string | (min length 8, max length 14) |
country_of_origin | string | (min length 2, max length 2) |
customs_value_usd | number | (max 1000000000000) |
Output: hts_code, rate_line_hts_code, description, country_of_origin, customs_value_usd, rate_column (general|special|column_2), rate_text, preference_program, ad_valorem_percent, base_duty_usd, footnotes, referenced_chapter99_headings, not_included, source, retrieved_at.
Example arguments:
{
"hts_code": "8544.11.00",
"country_of_origin": "MX",
"customs_value_usd": 10000
}
lookup_chapter99_duties
Official HTS Chapter 99 provisions (Section 301, 232, IEEPA and other additional duties) from the USITC schedule, filtered by country_of_origin (ISO-2), keyword, heading prefix (e.g. 9903.88) and/or an HTS code's footnote references. Returns the published rate text and, only when unambiguous, the extra ad valorem percent. Lists candidates; does not determine applicability.
Billing: $0.02 per successful call
| Input | Type | Notes |
|---|---|---|
hts_code (optional) | string | 8/10-digit HTS code; adds its footnote-referenced 9903 headings (min length 8, max length 14) |
country_of_origin (optional) | string | ISO 3166-1 alpha-2, e.g. CN (min length 2, max length 2) |
query (optional) | string | Keywords matched against provision descriptions (min length 2, max length 100) |
heading_prefix (optional) | string | e.g. 9903.88 (Section 301 China lists) (min length 4, max length 10) |
limit (optional) | integer | (min 1, max 100, default 25) |
Output: filters, referenced_by_hts_footnotes (when hts_code given), coverage_note, total_matches, provisions[{heading, description, rate_text, additional_ad_valorem_percent (only when the text is unambiguous, else null), special_rate_text, column_2_rate_text}], caveat, source[], retrieved_at.
Example arguments:
{
"country_of_origin": "CN",
"query": "steel",
"limit": 10
}
Pricing
| Pay per call (x402 USDC or metered API key) | $0.02 per successful billed call |
|---|---|
| Pro (API key, flat monthly) | $39.00/month for this server — includes up to 10,000 successful tool calls per calendar month (UTC) and 60 calls per minute (fair use) |
Secure checkout by Stripe. Your API key is shown once on the confirmation page.
Pay per call with x402 (for agent builders)
No account or API key needed: an agent with a USDC wallet on base pays $0.02 per successful tools/call using the x402 protocol (v1).
- Send the
tools/callrequest without anAuthorizationheader. The server answers HTTP 402 with JSON{"x402Version": 1, "accepts": [...]}. - The requirement uses scheme
exacton networkbase, asset0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913(USDC, 6 decimals), andmaxAmountRequired20000= $0.02 for the one tool call in the request.payTois the operator's wallet. - Sign a USDC transfer authorization for that requirement (any x402 client library does this), base64-encode the payment payload and resend the same request with it in the
X-PAYMENTheader. - The payment is verified before the tool runs and settled only if the call succeeds. The settlement receipt is returned in the
X-PAYMENT-RESPONSEheader. A call that returns an error result is not settled. Pay-per-call covers one paidtools/callper request: a JSON-RPC batch with more than one paid call is rejected with HTTP 400 (x402_batch_not_supported) before anything is charged. API-key requests may batch and are billed per successful call.
Lost your Pro API key?
We email a one-time link (valid 15 minutes) to the address on your subscription. Confirming it issues a new key and revokes the old one.
Authentication
- API key:
Authorization: Bearer <API_KEY>. Pro keys are scoped to this server. Manage or cancel a Pro subscription:curl -X POST https://mcp-us-tariff.scorematic.workers.dev/billing/portal -H 'authorization: Bearer YOUR_API_KEY'returns a Stripe Customer Portal link. - x402: Enabled on
base(USDC). Send the payment payload in theX-PAYMENTheader; an unpaid call returns HTTP 402 with the exact requirements. See Pay per call with x402.
Limitations
- calculate_import_duty returns the base HTS duty only. Chapter 99 additional duties (Section 301, Section 232, IEEPA/reciprocal tariffs) are never added into base_duty_usd; antidumping/countervailing duties and the Merchandise Processing and Harbor Maintenance Fees are not covered at all. For many origins (e.g. CN) the additional duties can exceed the base duty.
- lookup_chapter99_duties shows the official Chapter 99 provisions (rate text as published) by country, keyword, heading or an HTS code's footnote references. Whether a provision applies to a specific product depends on Chapter 99 U.S. notes, product lists and exclusions that the USITC API does not expose, so the tool lists candidates; it does not decide applicability. A product with no footnote reference can still be covered.
- Only ad valorem (percentage) rates are computed. Specific or compound rates (e.g. cents per kg) return error.code = non_ad_valorem_rate instead of a number.
- Column 2 rates are applied for CU, KP, RU and BY. FTA special rates are applied only when the HTS special column lists that country's program; unilateral preference programs (GSP, AGOA, CBERA, CBTPA) are not applied.
- Rules of origin and program eligibility are not verified. This is not a customs ruling or legal advice.
- Pro fair use: up to 10,000 successful tool calls per calendar month (UTC) and 60 calls per minute per subscription. Over the limit, calls return HTTP 429 with
error.codefair_use_limit_exceededorrate_limit_exceeded, areset_attime and aRetry-Afterheader. Errored calls don't count toward the monthly limit.