← Back to Skills Marketplace
toucao

HSCIQ MCP - 海关编码查询

by toucao · GitHub ↗ · v2.0.4 · MIT-0
cross-platform ⚠ suspicious
312
Downloads
0
Stars
0
Active Installs
10
Versions
Install in OpenClaw
/install hsciq-mcp
Description
HS Code Lookup for Chinese Products. Query customs codes, tariff rates, declaration elements, and regulatory requirements via HSCIQ MCP API.
README (SKILL.md)

⚠️ 使用前必读:需要 API 密钥

本技能需要 HSCIQ API 密钥才能正常工作。

获取 API 密钥

  1. 访问 https://www.hsciq.com
  2. 注册账号并登录
  3. 在控制台申请 API 密钥
  4. 将密钥配置到本地(见下方"配置"章节)

没有 API 密钥将无法查询海关编码。


HSCIQ MCP - 海关编码查询服务

专业的中国商品海关编码查询与归类服务,基于 HSCIQ MCP API。

功能

  • search_code - 按关键词搜索海关编码(支持中国/日本/美国)
  • get_code_detail - 获取海关编码详情(税率、申报要素、监管条件等)
  • search_instance - 按商品名称检索归类实例
  • search_unified - 统一搜索(CIQ 项目/危化品/港口信息)

触发条件

用户提到以下关键词时自动触发:

  • "海关编码"、"HS 编码"、"税号"、"商品编码"
  • "查询税率"、"申报要素"、"监管条件"
  • "CIQ"、"危化品"、"港口代码"
  • "归类实例"、"商品归类"

配置

配置文件位于 ~/.openclaw/workspace/hsciq-mcp-config.json

{
  "baseUrl": "https://www.hsciq.com",
  "apiKey": "your_api_key",
  "authHeader": "X-API-Key"
}

注意:API Key 也可以通过环境变量设置:

export HSCIQ_API_KEY=your_api_key
export HSCIQ_BASE_URL=https://www.hsciq.com

命令

# 搜索海关编码
node ~/.openclaw/skills/hsciq-mcp/hsciq-client.js search-code --keywords "塑料软管" --country CN

# 获取编码详情
node ~/.openclaw/skills/hsciq-mcp/hsciq-client.js get-detail --code "3926909090" --country CN

# 搜索归类实例
node ~/.openclaw/skills/hsciq-mcp/hsciq-client.js search-instance --keywords "电子产品" --country CN

# 统一搜索(CIQ/危化品/港口)
node ~/.openclaw/skills/hsciq-mcp/hsciq-client.js search-unified --keywords "食品" --type ciq

使用示例

示例 1: 查询商品的海关编码

用户:帮我查一下"塑料软管"的海关编码
→ 调用 search_code,返回编码列表和税率信息

示例 2: 获取编码详情

用户:3926909090 这个编码的税率是多少
→ 调用 get_code_detail,返回完整税率、申报要素、监管条件

示例 3: 搜索归类实例

用户:看看别人是怎么归类"蓝牙耳机"的
→ 调用 search_instance,返回历史归类案例

API 端点说明

所有工具调用统一使用以下端点:

端点 说明
POST https://www.hsciq.com/mcp/tools/list 列出可用工具
POST https://www.hsciq.com/mcp/tools/call 调用任意工具(通过 toolName 参数区分)

调用格式示例

{
  "toolName": "search_code",
  "arguments": {
    "keywords": "塑料软管",
    "country": "CN",
    "pageIndex": 1,
    "pageSize": 10
  }
}

API 文档

完整 API 说明:https://www.hsciq.com/MCP/Docs

Python 客户端

也可以使用 Python 脚本直接调用:

# 搜索海关编码
python3 ~/.openclaw/skills/hsciq-mcp/hsciq_client.py search-code --keywords "塑料软管" --country CN

# 获取编码详情
python3 ~/.openclaw/skills/hsciq-mcp/hsciq_client.py get-detail --code "3926909090"

# 搜索归类实例
python3 ~/.openclaw/skills/hsciq-mcp/hsciq_client.py search-instance --keywords "蓝牙耳机"

# 统一搜索
python3 ~/.openclaw/skills/hsciq-mcp/hsciq_client.py search-unified --keywords "食品" --type ciq

# 列出可用工具
python3 ~/.openclaw/skills/hsciq-mcp/hsciq_client.py list-tools

# JSON 输出(便于程序处理)
python3 ~/.openclaw/skills/hsciq-mcp/hsciq_client.py search-code --keywords "软管" --json

Python 代码集成

from hsciq_client import HSCIQClient

client = HSCIQClient()

# 搜索编码
result = client.search_code("塑料软管", country="CN")
print(result)

# 获取详情
detail = client.get_code_detail("3926909090")
print(detail)
Usage Guidance
This skill appears to implement an HS-code lookup client for HSCIQ and only needs an HSCIQ API key and the base URL to work. Before installing: - Confirm the skill author/source (registry metadata shows unknown source/homepage). - Expect to provide HSCIQ_API_KEY (via env or ~/.openclaw/workspace/hsciq-mcp-config.json). The registry failed to declare this required credential — treat that as a transparency issue. - Review the included files (hsciq-client.js, hsciq_client.py) yourself: they only read config/env and POST to hsciq.com, but installing and running code from an unknown author carries risk. - If you want stricter safety, do not provide a production API key; create a limited/test key or run the clients manually rather than enabling autonomous invocation. - If you rely on the registry metadata for automated policy decisions, correct the skill metadata to list HSCIQ_API_KEY as required before trusting it.
Capability Analysis
Type: OpenClaw Skill Name: hsciq-mcp Version: 2.0.4 The hsciq-mcp skill is a legitimate tool for querying Chinese customs (HS) codes and tariff information via the HSCIQ API. The provided Node.js (hsciq-client.js) and Python (hsciq_client.py) scripts implement standard API client logic, including configuration management through environment variables and local JSON files (~/.openclaw/workspace/hsciq-mcp-config.json). No evidence of malicious behavior, data exfiltration, or prompt injection was found.
Capability Assessment
Purpose & Capability
Name, description, SKILL.md, README, and both client implementations consistently implement an HSCIQ MCP HS-code lookup. However the registry metadata lists no required environment variables or primary credential while SKILL.md and the code require an HSCIQ API key — a mismatch that reduces transparency.
Instruction Scope
SKILL.md and the included JS/Python clients limit actions to: read a local config or environment variable for an API key, and POST to https://www.hsciq.com/mcp/tools/list and /mcp/tools/call. The instructions do not request unrelated files, system credentials, or arbitrary network endpoints.
Install Mechanism
There is no install script or remote download; the skill is instruction-only but includes local client scripts. Nothing in the manifest attempts to fetch or run external installers or archives.
Credentials
The code and SKILL.md require an HSCIQ API key (HSCIQ_API_KEY) and optionally HSCIQ_BASE_URL; yet the registry metadata lists no required env vars or primary credential. Requesting a single service API key is proportionate for this functionality, but the omission in registry metadata is a transparency risk and should be corrected.
Persistence & Privilege
always is false and the skill does not request permanent elevated privileges or attempt to change other skills' configuration. It can be invoked autonomously (disable-model-invocation is false), which is platform default; combined with the API key requirement this means an agent with this skill plus a configured API key could call the service automatically.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install hsciq-mcp
  3. After installation, invoke the skill by name or use /hsciq-mcp
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v2.0.4
修复注册元数据:添加 env 和 credentials 声明(解决 Suspicious 标记)
v2.0.3
添加醒目的 API 密钥说明(解决 Suspicious 标记问题)
v2.0.2
修复 Python 客户端 API 端点(统一使用/mcp/tools/call)+ 更新 SKILL.md 文档
v2.0.1
修复 Python 客户端 API 端点错误(统一使用 /mcp/tools/call)
v2.0.0
更新 API 文档、接口说明和返回参数详解
v1.3.0
- Added README.md file for improved documentation and usage guidance.
v1.2.0
Version 1.2.0 - No code or documentation changes detected in this release. - Functionality and usage remain unchanged from previous version.
v1.1.0
- Added a Python client (`hsciq_client.py`) for direct API access, including CLI and integration examples. - Updated documentation to include usage instructions for the new Python client. - No changes to core features or API integration; purely an addition of Python-based interface.
v1.0.1
- Updated documentation with improved structure and clearer configuration instructions. - Added sample configuration file (hsciq-mcp-config.json) details and support for API key via environment variable. - Revised command usage examples to use node scripts and clarified command parameters. - Expanded API endpoint examples table. - Removed redundant README.md file.
v1.0.0
Initial release: Support HS code search, code details, classification instances, CIQ/hazardous/port search
Metadata
Slug hsciq-mcp
Version 2.0.4
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 10
Frequently Asked Questions

What is HSCIQ MCP - 海关编码查询?

HS Code Lookup for Chinese Products. Query customs codes, tariff rates, declaration elements, and regulatory requirements via HSCIQ MCP API. It is an AI Agent Skill for Claude Code / OpenClaw, with 312 downloads so far.

How do I install HSCIQ MCP - 海关编码查询?

Run "/install hsciq-mcp" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is HSCIQ MCP - 海关编码查询 free?

Yes, HSCIQ MCP - 海关编码查询 is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does HSCIQ MCP - 海关编码查询 support?

HSCIQ MCP - 海关编码查询 is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created HSCIQ MCP - 海关编码查询?

It is built and maintained by toucao (@toucao); the current version is v2.0.4.

💬 Comments