2025-04-20 13:58:52 +08:00
2025-04-18 17:25:02 +08:00
2025-04-20 13:58:52 +08:00
2025-04-20 13:58:52 +08:00
2025-03-31 15:38:30 +08:00
2025-04-09 11:29:35 +08:00
2025-03-31 15:38:30 +08:00
2025-04-20 13:58:52 +08:00
2025-03-31 15:38:30 +08:00
2025-04-12 22:47:28 +08:00
2025-04-20 13:58:52 +08:00
2025-04-20 13:58:52 +08:00
2025-04-20 13:58:52 +08:00
2025-04-20 13:58:52 +08:00
2025-03-31 15:38:30 +08:00

MCPHub: Your Ultimate MCP Server Hub

English | 中文版

MCPHub is a unified management platform that aggregates multiple MCP (Model Context Protocol) servers into separate SSE endpoints for different scenarios by group. It streamlines your AI tool integrations through an intuitive interface and robust protocol handling.

Dashboard Preview

🚀 Features

  • Out-of-the-Box MCP Server Support: Seamlessly integrate popular servers like amap-maps, playwright, fetch, slack, and more.
  • Centralized Dashboard: Monitor real-time status and performance metrics from one sleek web UI.
  • Flexible Protocol Handling: Full compatibility with both stdio and SSE MCP protocols.
  • Hot-Swappable Configuration: Add, remove, or update MCP servers on the fly — no downtime required.
  • Group-Based Access Control: Organize servers into customizable groups for streamlined permissions management.
  • Secure Authentication: Built-in user management with role-based access powered by JWT and bcrypt.
  • Docker-Ready: Deploy instantly with our containerized setup.

🔧 Quick Start

Optional Configuration

Create a mcp_settings.json file to customize your server settings:

{
  "mcpServers": {
    "amap": {
      "command": "npx",
      "args": ["-y", "@amap/amap-maps-mcp-server"],
      "env": {
        "AMAP_MAPS_API_KEY": "your-api-key"
      }
    },
    "playwright": {
      "command": "npx",
      "args": ["@playwright/mcp@latest", "--headless"]
    },
    "fetch": {
      "command": "uvx",
      "args": ["mcp-server-fetch"]
    },
    "slack": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-slack"],
      "env": {
        "SLACK_BOT_TOKEN": "your-bot-token",
        "SLACK_TEAM_ID": "your-team-id"
      }
    }
  },
  "users": [
    {
      "username": "admin",
      "password": "$2b$10$Vt7krIvjNgyN67LXqly0uOcTpN0LI55cYRbcKC71pUDAP0nJ7RPa.",
      "isAdmin": true
    }
  ]
}

Note

: Default credentials are admin / admin123. Passwords are securely hashed with bcrypt. Generate a new hash with:

npx bcryptjs your-password

Docker Deployment

Recommended: Mount your custom config:

docker run -p 3000:3000 -v $(pwd)/mcp_settings.json:/app/mcp_settings.json samanhappy/mcphub

or run with default settings:

docker run -p 3000:3000 samanhappy/mcphub

Access the Dashboard

Open http://localhost:3000 and log in with your credentials.

Note

: Default credentials are admin / admin123.

Dashboard Overview:

  • Live status of all MCP servers
  • Enable/disable or reconfigure servers
  • Group management for organizing servers
  • User administration for access control

SSE Endpoint

Connect AI clients (e.g., Claude Desktop, Cursor, Cherry Studio) via:

http://localhost:3000/sse

Group-Specific Endpoints (Recommended):

Group Management

For targeted access to specific server groups, use the group-based SSE endpoint:

http://localhost:3000/sse/{groupId}

Where {groupId} is the ID of the group you created in the dashboard. This allows you to:

  • Connect to a specific subset of MCP servers organized by use case
  • Isolate different AI tools to access only relevant servers
  • Implement more granular access control for different environments or teams

🧑‍💻 Local Development

git clone https://github.com/samanhappy/mcphub.git
cd mcphub
pnpm install
pnpm dev

This starts both frontend and backend in development mode with hot-reloading.

🔍 Tech Stack

  • Backend: Node.js, Express, TypeScript
  • Frontend: React, Vite, Tailwind CSS
  • Auth: JWT & bcrypt
  • Protocol: Model Context Protocol SDK

👥 Contributing

Contributions are welcome!

  • New features & optimizations
  • Documentation improvements
  • Bug reports & fixes
  • Translations & suggestions

📄 License

Licensed under the Apache 2.0 License.

Description
A unified hub for centralized management and dynamic organization of multiple MCP servers into streamable HTTP (SSE) endpoints, with support for flexible routing strategies
Readme Apache-2.0 16 MiB
Languages
TypeScript 98.2%
JavaScript 0.9%
CSS 0.7%
Dockerfile 0.1%