samanhappy/mcphub

Self-hosted MCP gateway and control plane for connecting, controlling, and operating MCP servers.

What it solves

MCPHub addresses the complexity of managing many MCP servers. AI clients like Claude Code, Cursor, and others need a unified way to connect to local and remote MCP servers without each client handling its own connections, credentials, and routing. It centralizes server connections, access control, and observability into one self-hosted gateway.

How it works

MCPHub runs as a Docker container or from source. You configure MCP servers in a settings file or through a web dashboard. It exposes stable endpoints that AI clients connect to, such as /mcp for all servers, /mcp/{group} for a specific group, and /mcp/{server} for one server. You can attach authentication (OAuth, bearer keys, passkeys), set per-user credentials so each user can bring their own API key for a shared server, and use smart routing to let the system find the right tool with vector semantic search. It also provides logs, health checks, and a dashboard to monitor everything.

Who it's for

Developers and teams who build AI applications or agents that rely on MCP servers. It is for people who want to manage multiple MCP servers from a central place, control access, and keep an eye on usage. It works with popular MCP clients and can be deployed on your own infrastructure.

Highlights

  • Unified gateway: expose all servers through stable endpoints.
  • Smart routing: AI-powered tool discovery with vector semantic search.
  • Per-user credentials: bind personal API keys to shared servers, encrypted.
  • Authentication options: OAuth 2.0, bearer keys, passkeys, social login.
  • Observability: logs, health checks, request status, latency.
  • Hot-swappable config: add/remove/update servers without downtime.
  • Database mode with PostgreSQL for production, including multiple replicas.
  • Docker-ready with two image variants (latest and latest-full).

Related

  • Project
  • Project
  • Project
  • Project
  • Project