Metamcp

v1.0.0Developer Toolsstable

MCP Aggregator, Orchestrator, Middleware, Gateway in one docker

mcpmcp-gatewaymcp-hostmcp-middlewaremcp-server
Share:
2,342
Stars
0
Downloads
0
Weekly
0/5

What is Metamcp?

Metamcp is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to mcp aggregator, orchestrator, middleware, gateway in one docker

MCP Aggregator, Orchestrator, Middleware, Gateway in one docker

This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • MCP Aggregator, Orchestrator, Middleware, Gateway in one doc

Use Cases

Orchestrate and manage multiple MCP servers with Docker.
Convert MCP services to OpenAPI endpoints.
metatool-ai

Maintainer

LicenseMIT
Languagetypescript
Versionv1.0.0
UpdatedMay 21, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

NPM

npx -y @metamcp/mcp-server-metamcp

Manual Installation

npx -y @metamcp/mcp-server-metamcp

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Metamcp

MetaMCP is a self-hosted Docker-based platform that acts as an MCP aggregator, orchestrator, middleware layer, and API gateway in one deployment. It lets you register multiple MCP servers through a web UI, organize them into named endpoints, and expose them to any MCP client via SSE or Streamable HTTP — including Claude Desktop, Cursor, and n8n. It also supports OAuth-enabled MCP servers, converts MCP tools to OpenAPI endpoints, and provides OIDC-based access control so teams can share a single MCP gateway securely.

Prerequisites

  • Docker and Docker Compose installed
  • Node.js 18+ (for local development only, not required for Docker)
  • An MCP client such as Claude Desktop, Cursor, or Claude Code
  • Optional: OIDC provider credentials (client-id, client-secret, discovery URL) for team access control
1

Clone the repository and set up environment

Clone MetaMCP and copy the example environment file. Edit .env to set your APP_URL and any OIDC credentials.

git clone https://github.com/metatool-ai/metamcp.git
cd metamcp
cp example.env .env
2

Configure environment variables

Edit .env with at minimum the APP_URL. For team deployments add OIDC settings.

# .env
APP_URL=http://localhost:12008
LOG_LEVEL=info

# Optional OIDC:
OIDC_CLIENT_ID=your-client-id
OIDC_CLIENT_SECRET=your-client-secret
OIDC_DISCOVERY_URL=https://your-provider/.well-known/openid-configuration
OIDC_SCOPES=openid email profile
OIDC_PKCE=true
3

Start MetaMCP with Docker Compose

Launch all services including the MetaMCP app and PostgreSQL database.

docker compose up -d
4

Register MCP servers in the web UI

Open http://localhost:12008 in your browser. Add MCP servers through the UI — for example a HackerNews server using uvx mcp-hn. Create a named endpoint that aggregates the servers you want.

5

Connect Claude Desktop via mcp-proxy

Claude Desktop does not support SSE natively, so use mcp-proxy as a bridge. Replace ENDPOINT_NAME with your endpoint name and YOUR_API_KEY_HERE with the sk_mt_... key from the MetaMCP UI.

{
  "mcpServers": {
    "MetaMCP": {
      "command": "uvx",
      "args": [
        "mcp-proxy",
        "--transport",
        "streamablehttp",
        "http://localhost:12008/metamcp/ENDPOINT_NAME/mcp"
      ],
      "env": {
        "API_ACCESS_TOKEN": "sk_mt_YOUR_KEY_HERE"
      }
    }
  }
}
6

Connect Cursor or other SSE-capable clients

SSE-capable clients like Cursor can connect directly without mcp-proxy.

{
  "mcpServers": {
    "MetaMCP": {
      "url": "http://localhost:12008/metamcp/ENDPOINT_NAME/sse"
    }
  }
}

Metamcp Examples

Client configuration

Claude Desktop configuration connecting to MetaMCP via mcp-proxy with Streamable HTTP transport.

{
  "mcpServers": {
    "MetaMCP": {
      "command": "uvx",
      "args": [
        "mcp-proxy",
        "--transport",
        "streamablehttp",
        "http://localhost:12008/metamcp/my-endpoint/mcp"
      ],
      "env": {
        "API_ACCESS_TOKEN": "sk_mt_your_api_key_here"
      }
    }
  }
}

Prompts to try

Example prompts once your MCP servers are aggregated through MetaMCP.

- "List all tools available through MetaMCP"
- "Show me the top stories on Hacker News right now"
- "What MCP servers are registered in my MetaMCP gateway?"
- "Search for issues in my GitHub repository using the tools available"
- "Fetch and summarize the content from a URL using my aggregated tools"

Troubleshooting Metamcp

Docker Compose fails to start because the database is not ready

MetaMCP's app container may start before PostgreSQL is healthy. Run 'docker compose up -d' again after a few seconds, or add a healthcheck-based depends_on to your docker-compose.yml.

API_ACCESS_TOKEN is rejected with 401 Unauthorized

API keys follow the format sk_mt_... and are generated in the MetaMCP web UI under Settings → API Keys. Ensure you are copying the full key including the sk_mt_ prefix.

Claude Desktop cannot connect even with mcp-proxy configured

Verify MetaMCP is running: open http://localhost:12008 in a browser. Confirm the ENDPOINT_NAME in your config matches exactly what is shown in the MetaMCP UI. Ensure mcp-proxy is installed: run 'uvx mcp-proxy --help' to check.

Frequently Asked Questions about Metamcp

What is Metamcp?

Metamcp is a Model Context Protocol (MCP) server that mcp aggregator, orchestrator, middleware, gateway in one docker It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Metamcp?

Install via npm with the command: npx -y @metamcp/mcp-server-metamcp. Then add the server configuration to your AI client's JSON config file (e.g., claude_desktop_config.json or .cursor/mcp.json).

Which AI clients work with Metamcp?

Metamcp works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Metamcp free to use?

Yes, Metamcp is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Developer Tools MCP Servers

Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "metamcp": { "command": "npx", "args": ["-y", "@metamcp/mcp-server-metamcp"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Metamcp?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides