htsapi.dev MCP Server
HTS with its legal notes, 222,000+ CBP rulings with status, what they quote on a heading. Keyless.
htsapi.dev scores 66 (Good), licensed MIT and written in TypeScript. It can be reached as a remote MCP endpoint. It declares 8 tools. Filed under Uncategorized. GitHub shows 0 stars. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
66 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Where the 66 comes from
22 + 20 + 0 + 10 + 4 + 10 = 66. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 0 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Remote auth: API key required. Get a key or token from the provider first, then add it as a header in your client config. How remote auth works
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "rozetyp-htsapi-mcp": { "url": "https://htsapi.dev/mcp" } }}
Environment variables
This server does not declare environment variables.
Tools8Tool docs quality grade C
All capabilitiesclassify_producttoolOur own classifier's suggestion, a second opinion. Needs a key; 1 credit.
get_notestoolA code's section and chapter notes, or, without a code, the General Rules of Interpretation.
get_rulingtoolOne ruling: full text, codes, status, what revoked or modified it, and what it cites.
heading_scopetoolWhat CBP's rulings quote and decide on a heading. Give the product to get what decides for it first.
importers_paidtoolWhat importers from a country paid on a code in the latest 3 Census months: history, not the duty owed.
lookup_hts_codetoolThe 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.
Every ruling under a code, and the rulings CBP revoked off it with where the goods went.
search_rulingstoolCBP rulings for a product described in plain words, with status and the codes they point to.
About
htsapi.dev MCP server
Give your AI agent what a customs classifier reads when it picks a US tariff code:
- the Harmonized Tariff Schedule (USITC) one level at a time, with its section and chapter notes and the General Rules of Interpretation;
- over 222,000 CBP rulings (CROSS) in full text, each with its status: revoked or modified, by which ruling, and where the goods went;
- what CBP's rulings quote and decide on a heading: the Explanatory Note passages and legal notes CBP relied on, grouped across rulings, with what each ruling concluded;
- what importers paid on a code from a country in the latest 3 months of US Census data.
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.
What you can ask
- "What HTS code fits a stainless steel vacuum bottle made in China, and what did importers actually pay on it?"
- "Has CBP ruled on silicone baking mats? Are those rulings still in force?"
- "What do CBP's rulings say separates heading 9021 from 6406 for shoe insoles?"
- "Read ruling N046655 and tell me whether anything revoked or modified it."
- "Write a classification file for a battery-powered milk frother from Vietnam." (the
classification_fileprompt)
Connect
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).
Clients that only run local servers
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" }
}
}
}
Tools
| 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.
Limits and price
- No key: the seven read tools, 50 calls a day per IP, 10 a minute.
- Prices, and what a key adds: htsapi.dev.
Not covered
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.
Also
- REST API over the same data: htsapi.dev/docs
- For agents: htsapi.dev/llms.txt
- Contact: hello@htsapi.dev
License
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.
Frequently asked questions
What is htsapi.dev MCP Server?
HTS with its legal notes, 222,000+ CBP rulings with status, what they quote on a heading. Keyless.
How do I install htsapi.dev MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. htsapi.dev MCP Server connects to the remote endpoint https://htsapi.dev/mcp, so there is nothing to install locally.
Is htsapi.dev MCP Server free and open source?
Yes. htsapi.dev MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does htsapi.dev MCP Server support remote (HTTP) connections?
Yes. htsapi.dev MCP Server offers a hosted endpoint over Streamable HTTP, so HTTP-capable clients can connect to it without running anything locally.
What tools does htsapi.dev MCP Server provide?
htsapi.dev MCP Server provides 8 tools, including classify_product, get_notes, get_ruling, and heading_scope. See the full tool list for descriptions and parameters.
How is htsapi.dev MCP Server's trust score calculated?
htsapi.dev MCP Server scores 66 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.