Skip to content
MCP server

Trade Tariff API (x402)

Pay-per-call import duty, landed-cost and sanctions screening API for AI agents

Answered our latest tool-list check 11 hours ago with 8 tools. It will be marked verified after 3 successful checks in 7 days.

Trade Tariff API (x402) is a paid MCP server for trade compliance. It runs as a hosted remote server, so there is nothing to install locally.

Pricing
Paid
Platforms
API
Runs
Remotely
Version
2.0.0
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add --transport http trade-tariff https://import-duty-x402.tariffdata.workers.dev/mcp

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

Or share it with your project

Add to .mcp.json

{
  "mcpServers": {
    "trade-tariff": {
      "type": "http",
      "url": "https://import-duty-x402.tariffdata.workers.dev/mcp"
    }
  }
}

Claude Code setup guide

In Customize → Connectors → Add → Add custom connector

https://import-duty-x402.tariffdata.workers.dev/mcp

Paste this URL, choose how to sign in, then click Add and Connect. On Team and Enterprise an Owner adds it in Organization settings → Connectors.

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "trade-tariff": {
      "url": "https://import-duty-x402.tariffdata.workers.dev/mcp"
    }
  }
}

Use .cursor/mcp.json in a project to share it with the project.

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "trade-tariff": {
      "type": "http",
      "url": "https://import-duty-x402.tariffdata.workers.dev/mcp"
    }
  }
}

Or put the same entry in .mcp.json at your workspace root to share it.

VS Code setup guide

In chatgpt.com → Plugins → + → Add custom MCP server

https://import-duty-x402.tariffdata.workers.dev/mcp

Paste this URL, set up sign-in, accept the warning and install the plugin. Then type @ in a chat to use it.

ChatGPT setup guide

Add with the CLI

Run in a terminal

codex mcp add trade-tariff --url https://import-duty-x402.tariffdata.workers.dev/mcp

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.trade-tariff]
url = "https://import-duty-x402.tariffdata.workers.dev/mcp"

Codex setup guide

Add to Grok Bot desktop app → Connect apps → Add a custom connector

https://import-duty-x402.tariffdata.workers.dev/mcp

Enter a Name (for example "Trade Tariff API (x402)"), choose Type: Remote HTTPS, paste this as the Server URL and choose Add plugin.

Full Grok Bot setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "trade-tariff": {
      "type": "http",
      "url": "https://import-duty-x402.tariffdata.workers.dev/mcp"
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "trade-tariff": {
          "httpUrl": "https://import-duty-x402.tariffdata.workers.dev/mcp"
        }
      }
    }

    Or run: gemini mcp add -s user --transport http trade-tariff https://import-duty-x402.tariffdata.workers.dev/mcp

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

    {
      "mcpServers": {
        "trade-tariff": {
          "serverUrl": "https://import-duty-x402.tariffdata.workers.dev/mcp"
        }
      }
    }

    Use .agents/mcp_config.json to add it to one workspace only.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

    {
      "mcpServers": {
        "trade-tariff": {
          "url": "https://import-duty-x402.tariffdata.workers.dev/mcp",
          "transport": "http"
        }
      }
    }

    On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

    {
      "mcpServers": {
        "trade-tariff": {
          "type": "streamableHttp",
          "url": "https://import-duty-x402.tariffdata.workers.dev/mcp"
        }
      }
    }

    Open it from the MCP Servers icon → Configure → Configure MCP Servers.

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "trade-tariff": {
          "url": "https://import-duty-x402.tariffdata.workers.dev/mcp"
        }
      }
    }

    Open it with zed: open settings file. Merge context_servers into the settings you already have.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "mcpServers": {
        "trade-tariff": {
          "url": "https://import-duty-x402.tariffdata.workers.dev/mcp"
        }
      }
    }

    Junie

    Add to ~/.junie/mcp/mcp.json

    {
      "mcpServers": {
        "trade-tariff": {
          "url": "https://import-duty-x402.tariffdata.workers.dev/mcp"
        }
      }
    }

    Use .junie/mcp/mcp.json to share it with a project.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

    {
      "mcpServers": {
        "trade-tariff": {
          "url": "https://import-duty-x402.tariffdata.workers.dev/mcp"
        }
      }
    }

    Use .kiro/settings/mcp.json to add it to one workspace only.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

About Trade Tariff API (x402)

Trade Tariff API gives AI agents trade data they can query one request at a time. Each call returns import duty for a given importing country and six-digit HS product code, with multi-country comparisons, landed-cost estimates that add freight, insurance and VAT to duty, keyword search over HS 2022 codes, and name screening against US OFAC sanctions lists.

There is no account or API key. Requests are paid per call in USDC on Base using the x402 protocol, with prices from one cent to three cents per request. Invalid inputs return an error before any payment is taken, and only successful responses are settled.

The tariff figures are reported applied rates from World Bank WITS and UNCTAD TRAINS. They exclude anti-dumping and other trade-remedy duties, excise, VAT and fees, so they are indicative rather than customs advice. It suits sourcing and logistics agents, procurement tools and cross-border e-commerce workflows that need quick duty checks.

Tools this server provides (8)

Read directly from the server.

Going by the tool names, 2 of 8 tools read data; 6 names don't say.

From the server's own tool labels and tool names; not verified by us.

list_countriesName suggests: reads
List the 184 importing countries (ISO3) covered by the tariff data. Free.
pricing
Show every paid endpoint of this API with its USDC price per call and an example URL. Free.
sample_duty
Free real sample: Nigeria import duty for HS 842220 (bottle filling/sealing machines), same shape as the paid duty endpoint.
duty
Import duty for one importing country x HS6 product code. Paid via x402: $0.01 USDC on Base per call. This tool returns the ready-to-call URL; call it with an x402-capable HTTP client (e.g. @x402/fetch).
duty_compare
Compare import duty for one HS6 across 2-10 importing countries. Paid via x402: $0.03 USDC on Base per call. This tool returns the ready-to-call URL; call it with an x402-capable HTTP client (e.g. @x402/fetch).
landed_cost
Landed cost estimate: goods + freight + insurance + import duty + VAT. Paid via x402: $0.02 USDC on Base per call. This tool returns the ready-to-call URL; call it with an x402-capable HTTP client (e.g. @x402/fetch).
hs_searchName suggests: reads
Find HS 2022 six-digit codes from a product keyword. Paid via x402: $0.005 USDC on Base per call. This tool returns the ready-to-call URL; call it with an x402-capable HTTP client (e.g. @x402/fetch).
sanctions_screen
Screen a buyer, consignee or person against US OFAC sanctions lists. Paid via x402: $0.005 USDC on Base per call. This tool returns the ready-to-call URL; call it with an x402-capable HTTP client (e.g. @x402/fetch).

What it does

Import duty lookup
Returns the applied import duty for one importing country and HS6 product code.
Multi-country comparison
Compares duty for a single product across two to ten importing countries in one call.
Landed cost estimates
Adds goods value, freight, insurance, duty and VAT into a single landed-cost figure.
HS code search
Finds six-digit HS 2022 codes from a product keyword with a result limit.
OFAC sanctions screening
Checks a buyer, consignee or person name against US OFAC SDN and consolidated lists.
Machine-readable access
Exposes an MCP endpoint, OpenAPI spec and x402 manifest for direct agent integration.

Good for

  • Estimate total landed cost before quoting an export order to a foreign buyer
  • Compare import duty for one product across several African or other target markets
  • Find the correct six-digit HS code for a product description during classification
  • Screen a new trading counterparty against US sanctions lists before shipping
  • Add duty and sanctions checks to an agent's procurement or logistics workflow

Pricing

Paid

Pay per call in USDC: $0.005 to $0.03 per request, no subscription

Prices change. Check import-duty-x402.tariffdata.workers.dev before you buy.

Trade Tariff API (x402) FAQ

How is the service paid for?

Each call costs between $0.005 and $0.03 in USDC on Base mainnet via the x402 protocol. No API key or signup is needed.

Which duties are excluded from the figures?

Anti-dumping, safeguard and other trade-remedy duties, excise, VAT/GST and fees are not included in the reported applied tariffs.

Where does the tariff data come from?

It comes from World Bank WITS and UNCTAD TRAINS, with HS 2022 nomenclature from the harmonized-system dataset.

Is the sanctions screening a legal determination?

No. It performs name screening only, and a match is a lead to review rather than a legal finding.

How do I add Trade Tariff API (x402) to Claude Code?

Run this command in your terminal: claude mcp add --transport http trade-tariff https://import-duty-x402.tariffdata.workers.dev/mcp

What are the best alternatives to Trade Tariff API (x402)?

The closest alternatives to Trade Tariff API (x402) are US & UK Import Tariffs and Duty Rates, EU TARIC Customs & Landed Cost Calculator, PassCustoms — US Tariff, HTS & ECCN Compliance and PaidMCP — UK & Global Compliance Engine.

Where this comes from

  • Description: written from the project's website and its MCP Registry entry.
  • Status and tools: checked automatically by AIPoweredBot on 3 December 2026.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers