← 返回 Skills 市场
312
总下载
0
收藏
0
当前安装
10
版本数
在 OpenClaw 中安装
/install hsciq-mcp
功能描述
HS Code Lookup for Chinese Products. Query customs codes, tariff rates, declaration elements, and regulatory requirements via HSCIQ MCP API.
使用说明 (SKILL.md)
⚠️ 使用前必读:需要 API 密钥
本技能需要 HSCIQ API 密钥才能正常工作。
获取 API 密钥
- 访问 https://www.hsciq.com
- 注册账号并登录
- 在控制台申请 API 密钥
- 将密钥配置到本地(见下方"配置"章节)
没有 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)
安全使用建议
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.
功能分析
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.
能力评估
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.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install hsciq-mcp - 安装完成后,直接呼叫该 Skill 的名称或使用
/hsciq-mcp触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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
元数据
常见问题
HSCIQ MCP - 海关编码查询 是什么?
HS Code Lookup for Chinese Products. Query customs codes, tariff rates, declaration elements, and regulatory requirements via HSCIQ MCP API. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 312 次。
如何安装 HSCIQ MCP - 海关编码查询?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install hsciq-mcp」即可一键安装,无需额外配置。
HSCIQ MCP - 海关编码查询 是免费的吗?
是的,HSCIQ MCP - 海关编码查询 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
HSCIQ MCP - 海关编码查询 支持哪些平台?
HSCIQ MCP - 海关编码查询 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 HSCIQ MCP - 海关编码查询?
由 toucao(@toucao)开发并维护,当前版本 v2.0.4。
推荐 Skills