Skip to content

Summary

Self-hosted MCP gateway with a web dashboard: connect stdio, SSE and HTTP servers once and expose them through stable endpoints per group or server, with semantic smart routing and per-user keys.

Features

  • Connect stdio, SSE and Streamable HTTP servers once
  • Stable endpoints for all servers, groups or single servers
  • Smart routing with vector semantic search
  • OAuth 2.0 client and server modes, bearer keys and passkeys
  • Per-user credentials with isolated stdio runtimes
  • Web dashboard with tool-call logs and health checks
  • Hot-swappable config, tool-result compression, MCP Apps passthrough
  • Docker images; PostgreSQL database mode with replicas

Installation

Set up this MCP server in your favorite AI agent — copy a ready-made configuration below.

Any MCP-compatible agent

Most agents (Claude, Cursor, Windsurf, VS Code, and more) read a standard mcpServers configuration.

  1. Open your agent's MCP configuration file.
  2. Merge the snippet below into it, filling in the headers with your own values.
  3. Restart the agent — the "MCPHub" tools will be available.
{
  "mcpServers": {
    "mcphub": {
      "type": "http",
      "url": "http://localhost:3000/mcp",
      "headers": {
        "Authorization": "Bearer <mcphub-key>"
      }
    }
  }
}

Description

MCPHub is an open-source control plane for running many MCP servers in one place. You add local (stdio) and remote (SSE or Streamable HTTP) servers in its web dashboard or a Claude-Desktop-style mcp_settings.json, and clients such as Claude Code, Cursor, Cherry Studio or Open WebUI connect to one hub URL: /mcp for everything, /mcp/{group} for a group, /mcp/{server} for a single server.

Its headline feature is smart routing, which uses vector semantic search (PostgreSQL with pgvector) to surface the right tools for a request instead of loading every tool into the model's context. Access control covers OAuth 2.0 in both client and server roles, bearer keys, passkeys, optional GitHub/Google login, and per-user credentials that bind personal API keys to a shared server in isolated stdio runtimes. Operators get tool-call logs with latency, health checks, hot-swappable config, tool-result compression, MCP Apps passthrough and Agent Skills published over MCP.

The quickest start is docker run -p 3000:3000 -v ./data:/app/data samanhappy/mcphub (a latest-full image adds Rust, Docker and Playwright); it is also on npm as @samanhappy/mcphub. Database mode stores configuration in PostgreSQL and supports multiple replicas. Apache-2.0.

Related MCP Servers

See all MCPHub alternatives

Self-hosted documentation retrieval for coding agents — index any library's docs from the web, GitHub, npm, PyPI or local files and query them by exact version. An open-source Context7 alternative.

MCP: MCP Memory Service

by Heinrich Krupp (doobidoo)

New

Self-hosted, open-source persistent memory for AI agents over MCP and REST: semantic plus keyword search with local ONNX embeddings, a shared knowledge graph, consolidation, and SQLite, Cloudflare or Milvus backends.

Docker's official CLI plugin that runs MCP servers in isolated containers behind one gateway — secrets management, OAuth flows and a single config every client shares.

Browse all MCP servers →