Skip to main content
Glama
HS Code Classifier MCP Server

HS Code Classifier MCP Server

by OjasKord

HS Code Classifier MCP Server

ToolRank

Classify product descriptions to official HS codes and validate supplier-provided codes before customs submissions. Uses official government tariff schedules (USITC, Singapore Customs, CBSA, Australia Border Force) via HSPing API with AI-assisted classification reasoning.

Tools

hs_classify_product (free tier: 10 calls/month)

Convert a product description to the correct HS code before filling any customs declaration, shipping manifest, or duty calculation.

hs_validate_code (Pro tier)

Validate a supplier-provided HS code before approving any shipment or purchase order. Detects mismatches, outdated codes, and misclassification risks using official tariff data and AI analysis.

Related MCP server: mcp-trade-compliance

Usage

HTTP (hosted -- no install required)

https://hs-code-classifier-mcp-production.up.railway.app

npm (Claude Desktop / stdio)

npx hs-code-classifier-mcp

Configure in claude_desktop_config.json:

{
  "mcpServers": {
    "hs-code-classifier": {
      "command": "npx",
      "args": ["hs-code-classifier-mcp"],
      "env": {
        "ANTHROPIC_API_KEY": "sk-ant-...",
        "HSPING_API_KEY": "your-hsping-key",
        "API_KEY": "your-pro-key-from-kordagencies.com"
      }
    }
  }
}

Harness Integration

Note: this server exposes tools at /mcp not the root URL.

Claude Code / Claude Desktop (.mcp.json)

{
  "mcpServers": {
    "hs-code-classifier": {
      "type": "http",
      "url": "https://hs-code-classifier-mcp-server-production.up.railway.app/mcp"
    }
  }
}

LangChain (Python)

from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
    "hs-code-classifier": {
        "url": "https://hs-code-classifier-mcp-server-production.up.railway.app/mcp",
        "transport": "http"
    }
})
tools = await client.get_tools()

OpenAI Agents SDK (Python)

from agents import Agent, HostedMCPTool
agent = Agent(
    name="Assistant",
    tools=[HostedMCPTool(tool_config={
        "type": "mcp",
        "server_label": "hs-code-classifier",
        "server_url": "https://hs-code-classifier-mcp-server-production.up.railway.app/mcp",
        "require_approval": "never"
    })]
)

LangGraph

Same as LangChain above — langchain-mcp-adapters works with LangGraph natively.

Pricing

Tier

Calls

Price

Free

10/month

$0

Starter

500-call bundle

$40

Pro

2,000-call bundle

$130

Get a Pro key: kordagencies.com

Supported Countries

US (USITC), SG (Singapore Customs), CA (CBSA), AU (Australia Border Force), and others via HSPing API.

Results sourced from official government tariff schedules via HSPing API. For informational purposes only -- not legal or customs advice. Full terms: kordagencies.com/terms.html

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Provides access to US import tariff rates via the USITC Harmonized Tariff Schedule, enabling natural language queries for tariff data.
      62 npm
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables US import compliance by providing CBP customs ruling letter searches and antidumping/countervailing duty order lookups, answering how Customs has classified products and whether trade-remedy duties apply.
      57 npm
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables searching U.S. Harmonized Tariff Schedule commodity descriptions and code prefixes, inspecting classification headings and ancestry, browsing chapters, and retrieving published duty-rate columns and partial Chapter 99 evidence via MCP.
      284 npm
      1
      Apache 2.0
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI assistants to look up US import tariff layers for an HTS code and origin, compare origins side by side, search HTSUS lines by keyword or partial code, and calculate full landed costs for 70+ countries. Every answer is date-stamped and tied to a named HTSUS revision, and three of the four tools work without an account or API key.
      4
      MIT