eRegulations MCP 服务器
用于访问 eRegulations API 数据的 Model Context Protocol (MCP) 服务器,便于 AI 模型处理行政程序相关问题。
快速入门
使用 Docker(推荐)
- 拉取最新镜像:
docker pull ghcr.io/unctad-ai/eregulations-mcp-server:latest
- 设置目标 eRegulations API 地址:
export EREGULATIONS_API_URL="https://your-eregulations-api.com"
- 启动服务器:
docker run -i --rm -e EREGULATIONS_API_URL ghcr.io/unctad-ai/eregulations-mcp-server
配置客户端
参考以下 JSON 示例配置客户端:
{
"mcpServers": {
"eregulations": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"EREGULATIONS_API_URL",
"ghcr.io/unctad-ai/eregulations-mcp-server:latest"
],
"env": {
"EREGULATIONS_API_URL": "https://your-eregulations-api.com"
}
}
}
}
开发模式
- 启动开发环境:
npm run start
- 运行测试:
npm test
- 测试客户端:
npm run test-client