Skip to main content
Glama
unctad-ai

eRegulations MCP Server

by unctad-ai

Сервер MCP eRegulations

значок кузнеца

Реализация сервера Model Context Protocol (MCP) для доступа к данным API eRegulations. Этот сервер обеспечивает структурированный, удобный для ИИ доступ к экземплярам eRegulations, что упрощает для моделей ИИ ответы на вопросы пользователей об административных процедурах.

Функции

  • Доступ к данным eRegulations через стандартизированный протокол

  • Запрос процедур, шагов, требований и затрат

  • Шаблоны подсказок MCP для руководства по использованию инструментов LLM

  • Оптимизированная реализация с использованием стандартных соединений ввода-вывода

Related MCP server: MCP Boilerplate

Использование

Запуск с Docker (рекомендуется)

Рекомендуемый способ запуска сервера — использование опубликованного образа Docker из GitHub Container Registry (GHCR). Это обеспечивает согласованную и изолированную среду.

# 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 фактическим базовым URL-адресом экземпляра eRegulations, к которому вы хотите подключиться (например, https://api-tanzania.tradeportal.org ).

Сервер прослушивает запросы MCP JSON на стандартном вводе и отправляет ответы на стандартный вывод.

Пример конфигурации клиента

Вот пример того, как клиент (например, Клод) может быть настроен для использования этого сервера через 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/@unctad-ai/eregulations-mcp-server .

Установка через реестр npm (устарело)

~~Запуск сервера напрямую с помощью npx устарел из-за возможных несоответствий среды.~~

~~```баш

Устарело: установите переменные среды и запустите с помощью npx

экспорт EREGULATIONS_API_URL= https://example.com/api && экспорт NODE_ENV=production && 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 ```bash # 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 ```

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/unctad-ai/eregulations-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server