eRegulations MCP Server

Eine Model Context Protocol (MCP)-Serverimplementierung für den Zugriff auf eRegulations-API-Daten. Dieser Server bietet strukturierten, KI-freundlichen Zugriff auf eRegulations-Instanzen und erleichtert KI-Modellen die Beantwortung von Benutzerfragen zu Verwaltungsverfahren.
Merkmale
Zugriff auf eRegulations-Daten über ein standardisiertes Protokoll
Abfrageverfahren, Schritte, Voraussetzungen und Kosten
MCP-Eingabeaufforderungsvorlagen zur Anleitung der LLM-Tool-Nutzung
Optimierte Implementierung durch Standard-E/A-Verbindungen
Related MCP server: MCP Boilerplate
Verwendung
Ausführen mit Docker (empfohlen)
Die empfohlene Methode zum Ausführen des Servers ist die Verwendung des veröffentlichten Docker-Images aus dem GitHub Container Registry (GHCR). Dies gewährleistet eine konsistente und isolierte Umgebung.
# 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
Ersetzen Sie https://your-eregulations-api.com durch die tatsächliche Basis-URL der eRegulations-Instanz, mit der Sie eine Verbindung herstellen möchten (z. B. https://api-tanzania.tradeportal.org ).
Der Server wartet auf MCP-JSON-Anfragen auf der Standardeingabe und sendet Antworten an die Standardausgabe.
Beispiel einer Clientkonfiguration
Hier ist ein Beispiel, wie ein Client (wie Claude) konfiguriert werden könnte, um diesen Server über Docker zu verwenden:
{
"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"
}
}
}
}
(Denken Sie daran, auch den Wert EREGULATIONS_API_URL im Abschnitt env zu ersetzen.)
Installation über Smithery
Alternativ können Sie den Server mit Smithery installieren und ausführen:
Besuchen Sie https://smithery.ai/server/@unctad-ai/eregulations-mcp-server für den Installationsbefehl.
Installation über npm Registry (veraltet)
~~Das direkte Ausführen des Servers mit npx wird aufgrund potenzieller Umgebungsinkonsistenzen nicht mehr empfohlen.~~
~~```bash
Veraltet: Umgebungsvariablen festlegen und mit npx ausführen
export EREGULATIONS_API_URL= https://example.com/api && export NODE_ENV=Produktion && 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
```