Get the FREE Ultimate OpenClaw Setup Guide →

mcp-gateway-registry

Enterprise-ready MCP Gateway & Registry that centralizes AI development tools with secure OAuth authentication, dynamic tool discovery, and unified access for both autonomous AI agents and AI coding assistants. Transform scattered MCP server chaos into governed, auditable tool access with Keycloak/Entra integration.

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio agentic-community-mcp-gateway-registry node server.js \
  --env PORT="Port to run the gateway-registry (e.g., 3000)" \
  --env LOG_LEVEL="Logging level (e.g., info, debug)" \
  --env MCP_REGISTRY_URL="URL of the MCP registry (e.g., https://registry.example.com)"

How to use

The MCP Gateway & Registry acts as a unified access point for MCP servers and AI agents. It registers MCP servers, makes them discoverable, and also handles agent registration and discovery. Through this gateway, developers can centrally manage which MCP servers are available to tools and agents, while agents themselves can discover other agents via the integrated Agent Registry. The platform supports agent-to-agent communication (A2A) directly between agents once they are discovered, with authentication and access governed by centralized policies. Start by running the gateway-registry service to expose a single control plane for your MCP ecosystem, then register your MCP servers and agents so tools and agents can locate and connect to them through the gateway.

How to install

Prerequisites:

  • Node.js (14.x or newer) and npm/yarn installed
  • Git installed
  • Access to an MCP Registry (if you want to register servers/agents centrally) or can operate in standalone mode
  1. Clone the repository

  2. Install dependencies

    • npm install or
    • yarn install
  3. Configure environment

    • Create a .env file or set environment variables as needed (see mcp_config.env in documentation). Example: MCP_REGISTRY_URL=https://registry.example.com PORT=3000 LOG_LEVEL=info
  4. Run the server

    • npm run start or
    • node server.js
  5. Verify the gateway is running

Additional notes

Tips and common considerations:

  • Ensure your MCP registry URL is reachable from the gateway host; use a load balancer or reverse proxy if needed.
  • Configure proper authentication for both server and agent registration to avoid unauthorized access.
  • Use environment-specific config (development, staging, production) to separate credentials and endpoints.
  • If you enable A2A communication, ensure firewall rules allow direct peer-to-peer traffic between agents as required by your security posture.
  • Check logs regularly (LOG_LEVEL) to diagnose registration or discovery issues; enable debug in early setups for troubleshooting.
  • When upgrading Node.js versions, verify compatibility with the gateway-registry codebase.
  • Back up registry configurations and consider using a centralized vault for credentials if you integrate external services.

Related MCP Servers

Sponsor this space

Reach thousands of developers