Skip to the content
Agent Tools

Tariff & HS Code Duty Finder in VS Code

HS codes, customs duty & tax. The MCP server is https://tariffs.openkrill.app/mcp. No key. The steps below are only for VS Code. A call to get_duty_rate was checked against that server on 2026-10-17.

Connection
Streamable HTTP
API key
None needed
Rate limit
60 calls a minute
Protocol
MCP 2024-11-05

Questions it answers

Find an HS code, HTS code or customs code, and read the customs duty or import tax. Ask "what is the tariff code for a ceramic flower pot in the UK?", "what is the US duty on HTS 8507.60.00?" or "what duty applies to code 6914100000 from Vietnam in the UK?".

Tariff and HS Code Duty Finder reads the official schedules published by governments: the UK Trade Tariff (HM Revenue & Customs) and the US Harmonized Tariff Schedule (US International Trade Commission). Describe the product and it lists the codes whose descriptions match, with the headings above each one so a line that only says "Other" can be read in context. Give a code and it returns the description, the duty rate and, for the UK, the VAT rate, the preferential rate for the country the goods come from and other measures that apply. People also call it Tariff Code Finder.

Use it for a Harmonized System code, an HTS classification or a customs classification. Schedule B export codes often share the first digits of an HTS code, but this tool reads the import schedules, not the Schedule B export list. It does not search the EU TARIC list.

The codes it finds are candidates, not a classification. Which code is right depends on what the product is, what it is made of and how it is used, and customs decides. Check a candidate against the schedule's notes and confirm with customs or a licensed customs broker before you declare goods. For a binding answer, ask customs for a ruling.

The duty it shows is the rate in the schedule for that code. It does not add every extra duty, quota, anti-dumping measure or trade remedy. For the US, additional duties under chapter 99 of the schedule are not included. Rates change on published dates, so check the schedule on the day you ship.

It covers imports into the United Kingdom and the United States only. It stores nothing about you: answers are cached for up to 6 hours, and the only lasting record is a daily count of calls per tool.

What it can do

  • Finds candidate HS codes, HTS codes and customs codes for a described product in the UK or US schedule
  • Shows the headings above each candidate, so lines called Other can be read in context
  • Reads the customs duty and import tax rate for a UK or US tariff code
  • Shows UK VAT, the preferential rate for an origin country and other measures on a code
  • Lists the lines under a heading when a code is not one goods are declared under
  • Labels every code as a candidate to check with customs, not a binding classification

Tools

  • find_tariff_codes, Find an HS code, HTS or customs code. Use this when the user asks for the tariff code, commodity code, customs code, HS code, HTS code, Harmonized System code or customs classification for a product, for example "what is the tariff code for a ceramic flower pot in the UK?", "HTS code for a lithium-ion battery" or "which heading covers cotton t-shirts for import into the US?". Pass a plain description of the product and country GB (United Kingdom) or US (United States). Returns candidate codes from the official schedule, each with its description, the headings above it and whether goods are declared under it, plus a notice that they are candidates and not a binding classification. Do not use it to classify goods with certainty, to give a binding customs ruling, to compute shipping or landed cost, or for countries other than GB and US.
  • get_duty_rate, Get customs duty, tariff and import tax. Use this when the user asks what import duty, customs duty, tariff, import tax or VAT applies to a tariff code or HS code, for example "what is the US duty on HTS 8507.60.00?", "what duty applies to UK commodity code 6914100000 from Vietnam?" or "what is under heading 6914 in the UK tariff?". Pass the code (4 to 10 digits, dots allowed), country GB or US, and originCountry when the user names where the goods come from. For a code goods are declared under it returns the description and the rate: for the UK the third-country duty, VAT rates as a list, the preferential rate and any additional duty for the origin, and other measures; for the US the general, special and column 2 rates and units. For a code that is only a heading it returns the lines beneath it instead. Chapter 99 additional duties for the US and quotas or trade remedies are not included. Do not use it for a landed cost estimate, for excise or customs-broker fees, or for legal advice.

Add Tariff & HS Code Duty Finder in VS Code

VS Code reads MCP servers from mcp.json and offers their tools to Copilot Chat in Agent mode. A workspace file at .vscode/mcp.json applies to that project. For every workspace, run MCP: Open User Configuration from the Command Palette and add the same entry there. These steps were checked against the VS Code MCP servers guide on 2026-10-09.

Create or edit the file so it contains this server. VS Code uses a top-level servers object, not mcpServers. Merge it with servers you already have.

{
  "servers": {
    "tariffs": {
      "type": "http",
      "url": "https://tariffs.openkrill.app/mcp"
    }
  }
}

No command, no headers and no input variables for a key: Tariff & HS Code Duty Finder answers without a login. Save the file and select Start above the entry. VS Code asks once whether you trust the server: confirm it. Run MCP: List Servers to check that Tariff & HS Code Duty Finder is running. You should see find_tariff_codes, get_duty_rate.

Open the Chat view, choose Agent mode and ask: What are candidate tariff codes for a ceramic flower pot in the UK? The Configure Tools button in the chat input lists the tools of each server, and VS Code may ask you to confirm the first call. The server is public and read-only. It sees only the arguments of each call, so do not paste secrets into the question.

Command line users can add it to the user profile in one step with code --add-mcp and the same name, type and url as JSON. The portable .mcp.json at the project root also works in VS Code, with mcpServers as its top-level key. An organization can turn MCP off through Copilot policy: if the MCP commands are missing, ask the admin.

If it does not work

The tool does not show up

Run MCP: List Servers, select the server and choose Restart. If it shows an error, choose Show Output to read the log. Check that the entry sits under servers with "type": "http", and that Chat is in Agent mode, where MCP tools are offered.

429 or rate_limited

Each server takes 60 calls a minute from one network, and some tools take fewer. Past that the call comes back as a tool error that starts with rate_limited: wait a minute and ask again. daily_limit means the server reached its shared daily cap, which resets at 00:00 UTC. A limit is not an answer, so do not read it as no results. For higher limits, ask support@openkrill.app for a key.

JSON entry has no type

Claude Code skips an entry in .mcp.json that has a url but no type. Add "type": "http" next to the url, or add the server with claude mcp add --transport http, which writes the type for you. The VS Code entry needs the same type field. Cursor and Pi read the url alone.

A call checked on 2026-10-17

HTS 8507.60.00 is the lithium-ion battery heading named in the plugin's starter prompts. The rate is a schedule reading, not a classification. The request below was posted to https://tariffs.openkrill.app/mcp as tools/call. HTTP 200. Source: the Tariff & HS Code Duty Finder server, read 2026-10-17.

{
  "method": "tools/call",
  "params": {
    "name": "get_duty_rate",
    "arguments": {
      "code": "8507.60.00",
      "country": "US"
    }
  }
}
  • source. Harmonized Tariff Schedule of the United States (hts.usitc.gov), published by the US International Trade Commission.
  • country. US
  • notice. These are candidate codes from the official tariff, not a binding classification. The right code depends on what the product is, what it is made of and how it is used; confirm with customs or a licensed customs broker be

Repeat the call yourself if you need a newer reading. Cached answers expire. A rate limit is not a result: wait and try again. Nothing in the call is a ranking, a filing, or advice.

Using it in production

Nothing to install and nothing to run: no package, no Python or Node.js version and no environment variable. Tariff & HS Code Duty Finder runs on our servers, and your client only needs the URL https://tariffs.openkrill.app/mcp.

Rate limit60 tool calls a minute from one network. initialize and tools/list do not count.
Daily cap5000 tool calls a day per server, shared by every caller. It resets at 00:00 UTC.
At a limitThe call comes back as a tool error that starts with rate_limited (wait a minute) or daily_limit (try after 00:00 UTC), never as a partial answer.
KeyNone. Do not add an Authorization header or a key field.
Higher limitsEmail support@openkrill.app with the server name, the calls a day you expect and what they are for. We answer within 1 business day.
FreshnessSome answers come from a short cache. Each guide shows the date of its checked call; repeat a call when you need a newer reading.
UptimeScheduled test calls check the servers through the same endpoint. There is no SLA yet.
DataWhat each server receives and keeps is on the privacy page.

Use it in other apps

Roles that use Tariff & HS Code Duty Finder

Frequently asked questions

How do I install the Tariff & HS Code Duty Finder MCP server in VS Code?

Add tariffs with type http and the url https://tariffs.openkrill.app/mcp under servers in .vscode/mcp.json and save the file. Select Start above the entry, confirm that you trust the server, then use it from Chat in Agent mode.

Do I need an API key to run Tariff & HS Code Duty Finder in VS Code?

No. This server takes no API key. For higher limits, email support@openkrill.app with the server name (Tariff & HS Code Duty Finder), the calls a day you expect and what they are for. We answer within 1 business day.

What should I do if Tariff & HS Code Duty Finder does not connect in VS Code?

Check that the entry sits under servers, not mcpServers, and has type http. Run MCP: List Servers, select tariffs and choose Restart, then open Show Output if it still fails.

Words on this page

Source: plugin listing for tariffs in this repository, and a live tools/call on 2026-10-17. As of 2026-10-17.