UK Trade Tariff
# uk-trade-tariff-customs-mcp
Live UK HMRC Trade Tariff and customs duty lookup over Model Context Protocol (MCP). Customs brokers, UK importers, global trade teams, and supply chain analysts can inspect 4-digit headings, 10-digit commodity codes, import duty rates, and HS sections with zero API keys and zero sign-up. It connects right away.
## Hosted endpoint
Point any Streamable HTTP MCP client at the free hosted Cloudflare Worker endpoint.
```text
https://uk-trade-tariff-customs-mcp.lipmichal.workers.dev/mcp
```
## Available tools
| Tool | Purpose |
| --- | --- |
| `get_uk_tariff_heading` | Fetch a 4-digit UK Trade Tariff heading with its description and declarable commodity codes |
| `get_uk_commodity_duties` | Retrieve a 10-digit UK commodity code with import duty expressions, VAT flags, and geographical measures |
| `search_uk_trade_tariff` | Search the UK HMRC Trade Tariff by product keyword or HS code prefix |
| `get_tariff_sections_and_chapters` | List all 21 Harmonized System tariff sections or inspect chapters inside a specific section |
## Client configuration
Add the remote URL to Claude Desktop, Cursor, or VS Code MCP settings.
```json
{
"mcpServers": {
"uk-trade-tariff": {
"url": "https://uk-trade-tariff-customs-mcp.lipmichal.workers.dev/mcp"
}
}
}
```
## Run locally over stdio
You can also run the server locally on Node 20 or newer over stdio.
```bash
npm install
npm run build
npm start
```
## Compliance and reliability
Every upstream request queries `www.trade-tariff.service.gov.uk/api/v2/` with a polite `User-Agent` header (`mcpstamp-uk-trade-tariff/1.0.1 (hello@mcpstamp.com)`) and automatic retry on transient network or 5xx errors. Cloudflare edge caching applies only to HTTP 2xx responses, so upstream faults don't linger in cache. All four tools declare read-only, non-destructive, idempotent, open-world annotations, and the Worker negotiates future protocol versions down to the SDK version cleanly.
## More MCP servers and readiness check
This server belongs to the public MCP directory maintained by MCPStamp and Zovo.
- [Free live-data MCP directory](https://www.mcpstamp.com/free-servers/) with hosted keyless endpoints and client setup guides.
- [Free MCP readiness checker](https://www.mcpstamp.com/check/) to score any MCP server for Claude, ChatGPT, and registry submission.
- [MCP Readiness Audit ($490)](https://www.mcpstamp.com/services/#audit) for teams shipping a production server who want a hands-on security, schema, and store review.
- [Zovo Pro MCP Bundle ($39 one-time)](https://mcp.zovo.one/buy/bundle?src=gh.uk-trade-tariff-customs-mcp) with hosted commercial servers and priority endpoints.
TDQS
Scored across 4 tools
The tools target distinct stages of the tariff hierarchy: section/chapter browsing, heading lookup, commodity duty lookup, and keyword/HS-prefix search. Search slightly overlaps with the exact-code retrieval tools, but input types make the boundaries mostly clear.
All names use snake_case and verb-first construction, with get_* for retrieval and search_* for search. Minor inconsistency in noun prefixes (tariff_sections, uk_tariff_heading, uk_commodity_duties, uk_trade_tariff) keeps it from being fully predictable.
Four tools is well-scoped for a read-only tariff reference server, covering browse, lookup, detail, and search without redundant operations.
The core tariff lookup lifecycle is covered: sections/chapters, headings, commodity duties, and search. Minor gaps may exist around dedicated chapter detail retrieval and supplementary measure metadata, but common workflows are supported.