电子监管MCP服务器

](https://smithery.ai/server/@unctad-ai/eregulations-mcp-server)
一种用于访问电子监管API数据的模型上下文协议(MCP)服务器实现。该服务器提供对eRegulations实例的结构化、人工智能友好的访问,使人工智能模型更容易回答用户关于管理程序的问题。
](https://mseep.ai/app/unctad-ai-eregulations-mcp-server)
特性
- 通过标准化协议访问电子监管数据
- 查询程序、步骤、要求和成本
- MCP提示模板,用于指导LLM工具的使用
- 使用标准I/O连接简化实施
用法
使用Docker运行(推荐)
运行服务器的推荐方法是使用GitHub容器注册表(GHCR)中发布的Docker映像。这确保了环境的一致性和隔离性。
# Pull the latest image (optional)
docker pull ghcr.io/unctad-ai/eregulations-mcp-server:latest
# Run the server, providing the target eRegulations API URL
export EREGULATIONS_API_URL="https://your-eregulations-api.com"
docker run -i --rm -e EREGULATIONS_API_URL ghcr.io/unctad-ai/eregulations-mcp-server替换 https://your-eregulations-api.com 使用您要连接到的eRegulations实例的实际基本URL(例如。, https://api-tanzania.tradeportal.org).
服务器在标准输入上监听MCP JSON请求,并向标准输出发送响应。
客户端配置示例
以下是一个客户端(如Claude)如何配置为通过Docker使用此服务器的示例:
{
"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"
}
}
}
}(记得更换 EREGULATIONS_API_URL 价值在 env 部分也是。)
通过Smithery安装
或者,您可以使用Smithery安装并运行服务器:
访问 https://smithery.ai/server/@联合国贸易和发展会议ai/eregulations mcp服务器 对于安装命令。
通过npm注册表安装(已弃用)
~~直接使用运行服务器 npx 由于潜在的环境不一致,已弃用。~~
~~\\bash
弃用:设置环境变量并使用npx运行
导出EREGULATIONS_API_URL=https://example.com/api&&export NODE_ENV=生产&&&npx-y@unctad ai/eregulations-mcp-server@latest
## Configuration
The server requires the URL of the target eRegulations API.
### Environment Variables
- `EREGULATIONS_API_URL`: **(Required)** URL of the eRegulations API to connect to (e.g., `https://api-tanzania.tradeportal.org`). Passed to the Docker container using the `-e` flag.
## Available Tools
The MCP server provides the following tools:
### `listProcedures`
Lists all available procedures in the eRegulations system.
### `getProcedureDetails`
Gets detailed information about a specific procedure by its ID.
Parameters:
- `procedureId`: ID of the procedure to retrieve
### `getProcedureStep`
Gets information about a specific step within a procedure.
Parameters:
- `procedureId`: ID of the procedure
- `stepId`: ID of the step within the procedure
### `searchProcedures`
Searches for procedures by keyword or phrase. Note: This currently searches related objectives based on the underlying API and may include results beyond direct procedure names.
Parameters:
- `keyword`: The keyword or phrase to search for
## Prompt Templates
The server provides prompt templates to guide LLMs in using the available tools correctly. These templates explain the proper format and parameters for each tool. LLM clients that support the MCP prompt templates capability will automatically receive these templates to improve their ability to work with the API.
## Development
Run in development mode
npm run start
Run tests
npm test
Run tests with watch mode
npm run test:watch
Run test client
npm run test-client
