# HS Code Classifier MCP server

> Classifies product descriptions into official HS codes and validates supplier-provided codes using government tariff schedules.

- Repository: https://github.com/OjasKord/hs-code-classifier-mcp-server
- Page: https://hostedmcp.org/servers/ojaskord/hs-code-classifier-mcp-server
- Transport: stdio, remote
- Stars: 0
- License: MIT
- Latest version: 1.0.26

## Install

### Claude Code

```sh
claude mcp add --env 'ANTHROPIC_API_KEY=<YOUR_ANTHROPIC_API_KEY>' --env 'HSPING_API_KEY=<YOUR_HSPING_API_KEY>' hs-code-classifier-mcp-server -- npx -y hs-code-classifier-mcp
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "hs-code-classifier-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "hs-code-classifier-mcp"
      ],
      "env": {
        "ANTHROPIC_API_KEY": "<YOUR_ANTHROPIC_API_KEY>",
        "HSPING_API_KEY": "<YOUR_HSPING_API_KEY>"
      }
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "hs-code-classifier-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "hs-code-classifier-mcp"
      ],
      "env": {
        "ANTHROPIC_API_KEY": "<YOUR_ANTHROPIC_API_KEY>",
        "HSPING_API_KEY": "<YOUR_HSPING_API_KEY>"
      }
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"hs-code-classifier-mcp-server","type":"stdio","command":"npx","args":["-y","hs-code-classifier-mcp"],"env":{"ANTHROPIC_API_KEY":"<YOUR_ANTHROPIC_API_KEY>","HSPING_API_KEY":"<YOUR_HSPING_API_KEY>"}}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "hs-code-classifier-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "hs-code-classifier-mcp"
      ],
      "env": {
        "ANTHROPIC_API_KEY": "<YOUR_ANTHROPIC_API_KEY>",
        "HSPING_API_KEY": "<YOUR_HSPING_API_KEY>"
      }
    }
  }
}
```

### Codex

```sh
codex mcp add hs-code-classifier-mcp-server --env 'ANTHROPIC_API_KEY=<YOUR_ANTHROPIC_API_KEY>' --env 'HSPING_API_KEY=<YOUR_HSPING_API_KEY>' -- npx -y hs-code-classifier-mcp
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.hs-code-classifier-mcp-server]
command = "npx"
args = ["-y", "hs-code-classifier-mcp"]

[mcp_servers.hs-code-classifier-mcp-server.env]
ANTHROPIC_API_KEY = "<YOUR_ANTHROPIC_API_KEY>"
HSPING_API_KEY = "<YOUR_HSPING_API_KEY>"
```

### Gemini CLI

```sh
gemini mcp add -s user -e 'ANTHROPIC_API_KEY=<YOUR_ANTHROPIC_API_KEY>' -e 'HSPING_API_KEY=<YOUR_HSPING_API_KEY>' hs-code-classifier-mcp-server npx -- -y hs-code-classifier-mcp
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "hs-code-classifier-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "hs-code-classifier-mcp"
      ],
      "env": {
        "ANTHROPIC_API_KEY": "<YOUR_ANTHROPIC_API_KEY>",
        "HSPING_API_KEY": "<YOUR_HSPING_API_KEY>"
      }
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `ANTHROPIC_API_KEY` | yes | yes | Anthropic API key for AI-assisted classification reasoning |
| `HSPING_API_KEY` | yes | yes | HSPing API key for official tariff schedule access |
| `API_KEY` | no | no |  |

## FAQ

### What is the free tier limit?

The free tier allows for 10 calls per month.

### Which countries are supported?

It supports the US (USITC), Singapore (Singapore Customs), Canada (CBSA), Australia (Australia Border Force), and others through the HSPing API.

### Can I validate supplier codes?

Yes, the Pro tier includes a tool to validate supplier-provided HS codes to detect mismatches and misclassification risks.
