npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@unctad-ai/eregulations-mcp-server

v1.0.0

Published

Model Context Protocol (MCP) server for eRegulations API

Readme

eRegulations MCP Server

Verified on MseeP

A Model Context Protocol (MCP) server implementation for accessing eRegulations API data. This server provides structured, AI-friendly access to eRegulations instances, making it easier for AI models to answer user questions about administrative procedures.

MseeP.ai Security Assessment Badge

Features

  • Access eRegulations data through a standardized protocol
  • Query procedures, steps, requirements, and costs
  • MCP prompt templates to guide LLM tool usage
  • Streamlined implementation using standard I/O connections

Usage

The server speaks MCP over stdio, which is what Claude Desktop and Claude Code use. It needs a single setting — EREGULATIONS_API_URL — the base URL of the eRegulations instance to connect to (for example https://api-egypt.tradeportal.org).

Claude Desktop

Option A — One-click bundle (MCPB), recommended

Build a self-contained .mcpb bundle and install it from the Claude Desktop UI:

npm install && npm run build
npx @anthropic-ai/mcpb pack

This produces eregulations-mcp-server.mcpb. In Claude Desktop go to Settings → Extensions and drag the file in (or double-click it). Claude Desktop will prompt for the eRegulations API URL defined in manifest.json — no manual JSON editing required.

Option B — Manual configuration

Edit claude_desktop_config.json (Settings → Developer → Edit Config) and add an entry. Using npx:

{
  "mcpServers": {
    "eregulations": {
      "command": "npx",
      "args": ["-y", "@unctad-ai/eregulations-mcp-server@latest"],
      "env": {
        "EREGULATIONS_API_URL": "https://api-egypt.tradeportal.org"
      }
    }
  }
}

Or using the published Docker image:

{
  "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://api-egypt.tradeportal.org"
      }
    }
  }
}

Restart Claude Desktop after editing the config.

Claude Code

Register the server with the claude mcp add command. Using npx:

claude mcp add eregulations \
  --env EREGULATIONS_API_URL=https://api-egypt.tradeportal.org \
  -- npx -y @unctad-ai/eregulations-mcp-server@latest

Or using the Docker image:

claude mcp add eregulations \
  -- docker run -i --rm \
     -e EREGULATIONS_API_URL=https://api-egypt.tradeportal.org \
     ghcr.io/unctad-ai/eregulations-mcp-server:latest

Then check it is connected with claude mcp list, and use /mcp inside a Claude Code session to inspect the available tools.

Running with Docker (Recommended)

The recommended way to run the server is using the published Docker image from the GitHub Container Registry (GHCR). This ensures a consistent and isolated environment.

# 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

Replace https://your-eregulations-api.com with the actual base URL of the eRegulations instance you want to connect to (e.g., https://api-tanzania.tradeportal.org).

The server listens for MCP JSON requests on standard input and sends responses to standard output.

Example Client Configuration

Here's an example of how a client (like Claude) might be configured to use this server via 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"
      }
    }
  }
}

(Remember to replace the EREGULATIONS_API_URL value in the env section as well.)

Installation via npm Registry (Deprecated)

~~Running the server directly using npx is deprecated due to potential environment inconsistencies.~~

~~```bash

Deprecated: Set environment variables and run with npx

export EREGULATIONS_API_URL=https://example.com/api && export 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
```