Classify products to official HS codes and validate supplier codes before customs submissions. Uses USITC, Singapore Customs, CBSA, AU Border Force via HSPing API with AI reasoning.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
本地运行
claude mcp add hs-code-classifier --env ANTHROPIC_API_KEY='<ANTHROPIC_API_KEY>' --env HSPING_API_KEY='<HSPING_API_KEY>' -- npx -y hs-code-classifier-mcp~/.codex/config.toml
[mcp_servers.hs-code-classifier]
command = "npx"
args = ["-y", "hs-code-classifier-mcp"]
env = { ANTHROPIC_API_KEY = "<ANTHROPIC_API_KEY>", HSPING_API_KEY = "<HSPING_API_KEY>" }
# codex mcp add hs-code-classifier --env ANTHROPIC_API_KEY='<ANTHROPIC_API_KEY>' --env HSPING_API_KEY='<HSPING_API_KEY>' -- npx -y hs-code-classifier-mcp~/.cursor/mcp.json
{
"mcpServers": {
"hs-code-classifier": {
"command": "npx",
"args": [
"-y",
"hs-code-classifier-mcp"
],
"env": {
"ANTHROPIC_API_KEY": "<ANTHROPIC_API_KEY>",
"HSPING_API_KEY": "<HSPING_API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"hs-code-classifier": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"hs-code-classifier-mcp"
],
"env": {
"ANTHROPIC_API_KEY": "<ANTHROPIC_API_KEY>",
"HSPING_API_KEY": "<HSPING_API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"hs-code-classifier": {
"command": "npx",
"args": [
"-y",
"hs-code-classifier-mcp"
],
"env": {
"ANTHROPIC_API_KEY": "<ANTHROPIC_API_KEY>",
"HSPING_API_KEY": "<HSPING_API_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"hs-code-classifier": {
"command": "npx",
"args": [
"-y",
"hs-code-classifier-mcp"
],
"env": {
"ANTHROPIC_API_KEY": "<ANTHROPIC_API_KEY>",
"HSPING_API_KEY": "<HSPING_API_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"hs-code-classifier": {
"command": "npx",
"args": [
"-y",
"hs-code-classifier-mcp"
],
"env": {
"ANTHROPIC_API_KEY": "<ANTHROPIC_API_KEY>",
"HSPING_API_KEY": "<HSPING_API_KEY>"
}
}
}
}远程托管
claude mcp add --transport http hs-code-classifier https://hs-code-classifier-mcp-server-production.up.railway.app~/.codex/config.toml
[mcp_servers.hs-code-classifier]
url = "https://hs-code-classifier-mcp-server-production.up.railway.app"
# codex mcp add hs-code-classifier --url https://hs-code-classifier-mcp-server-production.up.railway.app~/.cursor/mcp.json
{
"mcpServers": {
"hs-code-classifier": {
"url": "https://hs-code-classifier-mcp-server-production.up.railway.app"
}
}
}.vscode/mcp.json
{
"servers": {
"hs-code-classifier": {
"type": "http",
"url": "https://hs-code-classifier-mcp-server-production.up.railway.app"
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"hs-code-classifier": {
"httpUrl": "https://hs-code-classifier-mcp-server-production.up.railway.app"
}
}
}claude_desktop_config.json · Customize › Connectors › Add custom connector
{
"mcpServers": {
"hs-code-classifier": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://hs-code-classifier-mcp-server-production.up.railway.app"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"hs-code-classifier": {
"url": "https://hs-code-classifier-mcp-server-production.up.railway.app"
}
}
}需要的环境变量
ANTHROPIC_API_KEYHSPING_API_KEY
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。