# Trade Tariff API (x402)

> Trade Tariff API (x402) is a paid MCP server for trade compliance. Pay-per-call import duty, landed-cost and sanctions screening API for AI agents. It runs as a hosted remote server, so there is nothing to install locally.

- **Kind:** MCP server
- **Pricing:** Paid
- **Platforms:** API
- **Website:** https://import-duty-x402.tariffdata.workers.dev/llms.txt
- **MCP Registry name:** dev.workers.tariffdata.import-duty-x402/trade-tariff
- **Categories:** [trade compliance](https://ai-powered.com/categories/trade-compliance)
- **Listing updated:** 2026-12-01

## About

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.

## Features

- **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

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
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.

### Claude Code: Or share it with your project (.mcp.json)

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

### Claude Desktop (Customize → Connectors → Add → Add custom connector)

```text
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.

### Cursor (~/.cursor/mcp.json)

```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.

### VS Code (~/.copilot/mcp-config.json)

```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.

### ChatGPT (chatgpt.com → Plugins → + → Add custom MCP server)

```text
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.

### Codex: Add with the CLI (Terminal)

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

### Codex: Or add to config.toml (~/.codex/config.toml)

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

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```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

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```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.

### Devin Desktop (~/.config/devin/mcp_config.json)

```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.

### Cline (cline_mcp_settings.json)

```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.

### Zed (Zed settings.json)

```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.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

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

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

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

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

### Kiro (~/.kiro/settings/mcp.json)

```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.

### Grok Bot (Grok Bot desktop app → Connect apps → Add a custom connector)

```sh
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.

### Other clients (your client's MCP settings (most use this shape))

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

## Tools

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_countries` (name 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_search` (name 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).

## 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.

## Alternatives

- [US & UK Import Tariffs and Duty Rates](https://ai-powered.com/mcp/us-and-uk-import-tariffs-and-duty-rates): US & UK Import Tariffs and Duty Rates is an open-source MCP server for compliance and regulation.
- [EU TARIC Customs & Landed Cost Calculator](https://ai-powered.com/mcp/eu-taric-customs-and-landed-cost-calculator): EU TARIC Customs & Landed Cost Calculator is a paid MCP server for trade compliance.
- [PassCustoms — US Tariff, HTS & ECCN Compliance](https://ai-powered.com/mcp/passcustoms-us-tariff-hts-and-eccn-compliance): PassCustoms — US Tariff, HTS & ECCN Compliance is a freemium MCP server for cloud and infrastructure.
- [PaidMCP — UK & Global Compliance Engine](https://ai-powered.com/mcp/paidmcp-uk-and-global-compliance-engine): PaidMCP — UK & Global Compliance Engine is a paid MCP server for security.

---
Source: https://ai-powered.com/mcp/trade-tariff-api-x402
