Skip to content
MCP server

US HTS Code Lookup

Offline lookup, validation and search of US HTS tariff codes with duty rates

Runs locally

US HTS Code Lookup is an MCP server for freight and logistics. It runs locally on your machine and is started by your AI client.

Platforms
CLI, Web, Self-hosted
Runs
Locally
Version
0.2.0
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

claude mcp add hts-lookup -- uvx hts-lookup

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

Or share it with your project

Add to .mcp.json

{
  "mcpServers": {
    "hts-lookup": {
      "command": "uvx",
      "args": [
        "hts-lookup"
      ]
    }
  }
}

Claude Code setup guide

Add to claude_desktop_config.json

{
  "mcpServers": {
    "hts-lookup": {
      "command": "uvx",
      "args": [
        "hts-lookup"
      ]
    }
  }
}

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "hts-lookup": {
      "command": "uvx",
      "args": [
        "hts-lookup"
      ]
    }
  }
}

Use .cursor/mcp.json in a project to share it with the project.

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "hts-lookup": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "hts-lookup"
      ]
    }
  }
}

Or put the same entry in .mcp.json at your workspace root to share it.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add hts-lookup -- uvx hts-lookup

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.hts-lookup]
command = "uvx"
args = ["hts-lookup"]

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "hts-lookup": {
      "command": "uvx",
      "args": [
        "hts-lookup"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "hts-lookup": {
          "command": "uvx",
          "args": [
            "hts-lookup"
          ]
        }
      }
    }

    Or run: gemini mcp add -s user hts-lookup uvx -- hts-lookup

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

    {
      "mcpServers": {
        "hts-lookup": {
          "command": "uvx",
          "args": [
            "hts-lookup"
          ]
        }
      }
    }

    Use .agents/mcp_config.json to add it to one workspace only.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

    {
      "mcpServers": {
        "hts-lookup": {
          "command": "uvx",
          "args": [
            "hts-lookup"
          ]
        }
      }
    }

    On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

    {
      "mcpServers": {
        "hts-lookup": {
          "command": "uvx",
          "args": [
            "hts-lookup"
          ]
        }
      }
    }

    Open it from the MCP Servers icon → Configure → Configure MCP Servers.

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "hts-lookup": {
          "command": "uvx",
          "args": [
            "hts-lookup"
          ]
        }
      }
    }

    Open it with zed: open settings file. Merge context_servers into the settings you already have.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "mcpServers": {
        "hts-lookup": {
          "command": "uvx",
          "args": [
            "hts-lookup"
          ]
        }
      }
    }

    Junie

    Add to ~/.junie/mcp/mcp.json

    {
      "mcpServers": {
        "hts-lookup": {
          "command": "uvx",
          "args": [
            "hts-lookup"
          ]
        }
      }
    }

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

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

    {
      "mcpServers": {
        "hts-lookup": {
          "command": "uvx",
          "args": [
            "hts-lookup"
          ]
        }
      }
    }

    Use .kiro/settings/mcp.json to add it to one workspace only.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

About US HTS Code Lookup

The registry entry describes a stdio server, published to PyPI as hts-lookup, that works without a network connection. It returns the official tariff text and duty rates for a code, validates a code you already have and finds the closest code for a description.

The companion website, hs-code.net, shows what sits behind the data. It lists 19,949 US tariff lines and 5,612 HS subheadings, with a check date of 2026-11-14, and offers product guides for goods such as shoes, gloves, laptops and olive oil. Each guide asks only the questions customs uses to separate similar codes and shows how far the US duty can swing between candidates, alongside UK and EU rates and customs rulings.

The site also explains the General Rules of Interpretation that customs officers apply in order, and why the first six digits are shared worldwide while the rest are national.

What it does

Code lookup
Returns the official tariff text and duty rates for a US HTS code.
Code validation
Checks whether a code you have is a valid HTS line.
Closest-code search
Finds the nearest code for a product description.
Offline operation
Runs over stdio from a PyPI package without a network connection.
Product guides on the site
Guides narrow candidate codes with the questions customs uses.
Evidence on the site
Shows UK and EU rates and customs rulings behind each code.

Good for

  • Check the duty rate for a US HTS code
  • Validate codes in a customs or import spreadsheet
  • Find a candidate code for a product description before asking a broker
  • Compare how much duty varies between candidate codes for a product

Pricing

Pricing unknown

Prices not published

Prices change. Check hs-code.net before you buy.

US HTS Code Lookup FAQ

Does US HTS Code Lookup need internet access?

The registry describes it as an offline lookup, installed from PyPI as hts-lookup.

How current is the data?

The website shows a data check date of 2026-11-14 and 23 US revisions in 2026.

How many tariff lines are covered?

The site lists 19,949 US tariff lines and 5,612 HS subheadings.

Which transport does the server use?

Stdio.

How do I add US HTS Code Lookup to Claude Code?

Run this command in your terminal: claude mcp add hts-lookup -- uvx hts-lookup

What are the best alternatives to US HTS Code Lookup?

The closest alternatives to US HTS Code Lookup are China Law MCP, x402 Micropayments MCP, USPTO & EPO Patent Claims, Family & Litigation MCP, Dosyai and Fed Contracts.

Where this comes from

  • Description: written from the project's website.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers