Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
HTS with its legal notes, 222,000+ CBP rulings with status, what they quote on a heading. Keyless.
Jump to setup instructionsUse the publisher endpoint below to connect directly. This snippet does not include provider authentication; complete any required credentials or OAuth in your client. A platform key does not authorize an external MCP.
Editor
OS
Config file: ~/.cursor/mcp.json
{
"mcpServers": {
"mcp-server": {
"url": "https://htsapi.dev/mcp"
}
}
}Merge the entry into your existing mcpServers object. Restart Cursor after saving.
Config available Settings can be generated; we haven’t run them.
Fetched from the repository for this visit.
Give your AI agent what a customs classifier reads when it picks a US tariff code:
Your agent classifies; the importer decides. Everything is guidance from public sources, not legal advice or a binding ruling. Why sources rather than a code from us: htsapi.dev/method.
classification_file prompt)The hosted server is https://htsapi.dev/mcp (Streamable HTTP). The read tools need no key and no signup.
Claude (claude.ai, desktop, mobile): Add to Claude opens the custom-connector dialog filled in. By hand: Settings, Connectors, Add custom connector, URL https://htsapi.dev/mcp.
Claude Code
claude mcp add --transport http htsapi https://htsapi.dev/mcp
Cursor, Windsurf, Cline and other clients
{
"mcpServers": {
"htsapi": { "url": "https://htsapi.dev/mcp" }
}
}
With a key, add "headers": { "X-API-Key": "YOUR_KEY" } next to "url" (or --header "X-API-Key: YOUR_KEY" in Claude Code).
This repository is a stdio server that forwards to the hosted one. It has no data or logic of its own, so its tools are always the hosted server's. Requires Node 18+.
{
"mcpServers": {
"htsapi": {
"command": "npx",
"args": ["-y", "github:rozetyp/htsapi-mcp"],
"env": { "HTSAPI_KEY": "optional, only for classify_product" }
}
}
}
| Tool | Returns |
|---|---|
lookup_hts_code | The schedule one level at a time: sections and chapters, a chapter's headings, a heading's subheadings, a line's rates and the rulings under it. |
get_notes | A code's section and chapter notes, or, without a code, the General Rules of Interpretation. |
heading_scope | What CBP's rulings quote and decide on a heading. Give the product to get what decides for it first. |
search_rulings | CBP rulings for a product described in plain words, with status and the codes they point to. |
rulings_under_code | Every ruling under a code, and the rulings CBP revoked off it with where the goods went. |
get_ruling | One ruling: full text, codes, status, what revoked or modified it, and what it cites. |
importers_paid | What importers from a country paid on a code in the latest 3 Census months: history, not the duty owed. |
classify_product | Our own classifier's suggestion, a second opinion. Needs a key; 1 credit. |
Prompt classification_file: the method and the eight sections of a broker's classification file. The server's instructions walk an agent through the method: facts, GRI 1 with the notes, GRIs 2 to 6, a check against rulings and their status, then the report.
How well it works, measured on 54 CBP cases with each case's own ruling hidden: htsapi.dev/classification-accuracy.
The duty owed on a shipment, anti-dumping and countervailing duties, other agencies' rules, court opinions, and the full text of the WCO Explanatory Notes (only the passages CBP quotes in its rulings). Counts, freshness and what is missing: htsapi.dev/corpus.
MIT for this repository. The data comes from USITC, US Customs and Border Protection and the US Census Bureau; htsapi.dev is independent and not affiliated with them.
Loading reviews...
GitHub freshness not yet checked. Recently viewed repositories target hourly refresh.
For maintainers
Send GitHub readers straight to setup instructions for their client. Copy the Markdown into your README; no account required.
[](https://www.mcpchannel.ai/discover/htsapi-dev?via=readme-badge#setup)