MetaMCP: Unifying Model Context Protocol Servers with an All-in-One Gateway

This repository profile is provided by osrepos.com, an open source repository discovery platform.

MetaMCP: Unifying Model Context Protocol Servers with an All-in-One Gateway

Summary

MetaMCP is a powerful, self-hosted solution that acts as an aggregator, orchestrator, middleware, and gateway for Model Context Protocol (MCP) servers. It allows developers to dynamically combine multiple MCP servers into a single, unified endpoint, enhancing tool management and agent development. This TypeScript-based project simplifies the deployment and management of AI tools within a Dockerized environment.

Repository Information

Analyzed by OSRepos on August 19, 2026

Topics

Click on any tag to explore related repositories

Use at your own risk

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.

Introduction

MetaMCP is an innovative project designed to streamline the management and deployment of Model Context Protocol (MCP) servers. It functions as a comprehensive proxy, enabling dynamic aggregation of various MCP servers into a single, unified endpoint. This powerful tool also allows for the application of custom middlewares, offering enhanced control over observability, security, and tool selection. Built with TypeScript and packaged for Docker, MetaMCP provides a robust infrastructure for hosting dynamically composed MCP servers and building advanced AI agents.

Installation

Getting started with MetaMCP is straightforward, especially using Docker Compose, which is the recommended method.

  1. Clone the repository:
git clone https://github.com/metatool-ai/metamcp.git
cd metamcp
  1. Prepare your environment file:
cp example.env .env
  1. Start MetaMCP with Docker Compose:
docker compose up -d

Note: If you modify APP_URL environment variables, ensure you only access MetaMCP from the specified APP_URL as it enforces a CORS policy. Also, consider renaming the metamcp_postgres_data volume in docker-compose.yml if it conflicts with existing Docker volumes. For more detailed development setup, including Dev Containers, refer to the official documentation.

Examples

Connecting your MCP clients to MetaMCP is flexible, supporting various configurations.

Connecting via mcp.json (e.g., Cursor)

For clients that support mcp.json configuration, you can point them directly to your MetaMCP endpoint:

{
  "mcpServers": {
    "MetaMCP": {
      "url": "http://localhost:12008/metamcp/<YOUR_ENDPOINT_NAME>/sse"
    }
  }
}

Connecting STDIO-only Clients (e.g., Claude Desktop) with mcp-proxy

For clients that only support STDIO servers, like Claude Desktop, mcp-proxy is the recommended solution to bridge the connection to MetaMCP's remote endpoints (SSE, Streamable HTTP, OpenAPI).

Using Streamable HTTP:

{
  "mcpServers": {
    "MetaMCP": {
      "command": "uvx",
      "args": [
        "mcp-proxy",
        "--transport",
        "streamablehttp",
        "http://localhost:12008/metamcp/<YOUR_ENDPOINT_NAME>/mcp"
      ],
      "env": {
        "API_ACCESS_TOKEN": "<YOUR_API_KEY_HERE>"
      }
    }
  }
}

Using SSE:

{
  "mcpServers": {
    "ehn": {
      "command": "uvx",
      "args": [
        "mcp-proxy",
        "http://localhost:12008/metamcp/<YOUR_ENDPOINT_NAME>/sse"
      ],
      "env": {
        "API_ACCESS_TOKEN": "<YOUR_API_KEY_HERE>"
      }
    }
  }
}

Remember to replace <YOUR_ENDPOINT_NAME> and <YOUR_API_KEY_HERE> with your actual values. For API key authentication, using the Authorization: Bearer <API_KEY> header is generally the best practice. For more details, refer to issue #76.

Why Use MetaMCP?

MetaMCP offers a compelling set of features for developers and organizations working with Model Context Protocol servers:

  • Unified Endpoint Management: Group multiple MCP servers into namespaces and expose them through a single, authenticated MetaMCP endpoint (SSE or Streamable HTTP, OpenAPI). This simplifies client connections and tool discovery.
  • Customizable Tool Selection: Selectively pick tools from aggregated MCP servers and apply pluggable middlewares for enhanced control over observability, security, and more. You can also override tool metadata and attach custom annotations.
  • Enhanced Inspection: Utilize MetaMCP as an advanced MCP inspector with saved server configurations, allowing for immediate debugging of your MetaMCP endpoints.
  • Robust Authentication: Supports API key authentication, standard OAuth in MCP Spec 2025-06-18, and OpenID Connect (OIDC) for enterprise SSO integration (Auth0, Keycloak, Azure AD, Google, Okta). It also features multi-tenancy and separate registration controls for flexible deployment.
  • Traffic Management: Implement MCP Rate Limiting at both endpoint and user levels to protect your services from overload and manage resource consumption effectively.
  • Self-Hosted Flexibility: Designed for self-hosting, MetaMCP provides full control over your AI tool infrastructure, allowing for custom Dockerfile configurations to manage dependencies and cold start issues.

Links

Related repositories

Similar repositories that may be relevant next.

Codex MCP Server: Bridge Claude Code with OpenAI Codex CLI

Codex MCP Server: Bridge Claude Code with OpenAI Codex CLI

August 23, 2026

Codex MCP Server is an essential tool that acts as a bridge between Claude Code and OpenAI's Codex CLI. It allows developers to integrate powerful AI-driven code analysis, generation, and review capabilities directly into their editor. This server wrapper enables Claude Code to fully leverage Codex's advanced AI functionalities.

claude-codecodexcursor
awesome-devops-mcp-servers: A Curated List of DevOps-Focused MCP Servers

awesome-devops-mcp-servers: A Curated List of DevOps-Focused MCP Servers

August 21, 2026

Discover awesome-devops-mcp-servers, a comprehensive GitHub repository featuring a curated list of Model Context Protocol (MCP) servers tailored for DevOps tools and capabilities. This resource enables AI models to securely interact with a wide range of local and remote resources, enhancing automation and intelligence in DevOps workflows. Explore servers for infrastructure as code, container orchestration, cloud providers, security, and more.

devopsmcpai
awesome-a2a: A Curated List of Agent2Agent (A2A) Resources

awesome-a2a: A Curated List of Agent2Agent (A2A) Resources

August 21, 2026

The awesome-a2a repository is a comprehensive, curated list of Agent2Agent (A2A) protocol servers, clients, tools, and frameworks. It serves as a central hub for developers looking to explore and build interoperable AI agent systems. This resource helps in discovering various A2A-compliant implementations and related utilities.

a2aagentagent2agent
mcp-gateway: Unifying AI Tool Access with Reduced Context Overhead

mcp-gateway: Unifying AI Tool Access with Reduced Context Overhead

August 15, 2026

mcp-gateway is a powerful Rust binary designed to streamline AI agent interaction with diverse tools. It consolidates unlimited MCP servers and REST APIs behind a single, compact endpoint, drastically reducing context token overhead and enabling efficient tool access.

aillmmcp

Source repository

Open the original repository on GitHub.

8 counted GitHub visits

View on GitHub
OS
OSRepos

Analysis and discovery of open source repositories. Find interesting projects and follow their updates.

Monitor your website with YourWebsiteScore

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of third-party repository code is at your own risk. Always review source code, dependencies, licenses, and security implications before running anything.

© 2025 OSRepos. Built with Nuxt 3 and lots of ❤️