Cover image

将多个MCP服务器合并为一个SSE端点的统一集线器服务器

3 years

Works with Finder

3

Github Watches

7

Github Forks

83

Github Stars

MCPHub: Deploy Your Own MCP Servers in Minutes

English | 中文版

MCPHub is a unified hub server that consolidates multiple MCP (Model Context Protocol) servers into a single SSE endpoint. It streamlines service management by offering a centralized interface for all your MCP server needs.

Dashboard Preview

Features

  • Built-in featured MCP Servers: Comes with featured MCP servers like amap-maps, playwright, slack, and more.
  • Centralized Management: Oversee multiple MCP servers from one convenient hub.
  • Broad Protocol Support: Works seamlessly with both stdio and SSE MCP protocols.
  • Intuitive Dashboard UI: Monitor server status and manage servers dynamically via a web interface.
  • Flexible Server Management: Add, remove, or reconfigure MCP servers without restarting the hub.

Quick Start

Configuration (Optional but Recommended)

  • Customize your MCP server settings by creating the mcp_settings.json file. For example:
{
  "mcpServers": {
    "amap-maps": {
      "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
    }
  ]
}
  • The above example includes the amap-maps, playwright, fetch, and slack servers. You can add or remove servers as needed.

  • The users section allows you to set up user authentication. The default root user is admin with the password admin123. You can change them as needed.

  • The password is hashed using bcrypt. You can generate a new password hash using the following command:

    npx bcryptjs your-password
    

Starting MCPHub with Docker

Run the following command to quickly launch MCPHub with default settings:

docker run -p 3000:3000 samanhappy/mcphub

Run the following command to launch MCPHub with custom settings:

docker run -p 3000:3000 -v ./mcp_settings.json:/app/mcp_settings.json samanhappy/mcphub

Dashboard Access

Open your web browser and navigate to: http://localhost:3000, then login using the credentials you set in the mcp_settings.json file. The default credentials are:

  • Username: admin
  • Password: admin123

The dashboard provides:

  • Real-Time Monitoring: Keep an eye on the status of all MCP servers.
  • Service Status Indicators: Quickly see which services are online.
  • Dynamic Server Management: Add or remove MCP servers on the fly without needing to restart.

SSE Endpoint

Seamlessly connect your host applications (e.g., Claude Desktop, Cursor, Cherry Studio, etc.) to the MCPHub SSE endpoint at: http://localhost:3000/sse

Local Development

Clone the Repository

Clone MCPHub from GitHub:

git clone https://github.com/samanhappy/mcphub.git

Optional Configuration

Customize your MCP server settings by editing the mcp_settings.json file.

Start the Development Server

Install dependencies and launch MCPHub:

cd mcphub && pnpm install && pnpm dev

Community and Contributions

MCPHub started as a small side project that I developed on a whim, and I'm amazed at the attention it has received. Thank you all for your support!

Currently, MCPHub still has many areas that need optimization and improvement. Any contributions, whether in the form of code, documentation, or suggestions, are more than welcome.

License

This project is licensed under the Apache 2.0 license.

相关推荐

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • https://zenepic.net
  • Embark on a thrilling diplomatic quest across a galaxy on the brink of war. Navigate complex politics and alien cultures to forge peace and avert catastrophe in this immersive interstellar adventure.

  • https://reddgr.com
  • Delivers concise Python code and interprets non-English comments

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • pontusab
  • 光标与风浪冲浪社区,查找规则和MCP

  • av
  • 毫不费力地使用一个命令运行LLM后端,API,前端和服务。

  • 1Panel-dev
  • 🔥1Panel提供了直观的Web接口和MCP服务器,用于在Linux服务器上管理网站,文件,容器,数据库和LLMS。

  • Mintplex-Labs
  • 带有内置抹布,AI代理,无代理构建器,MCP兼容性等的多合一桌面和Docker AI应用程序。

  • GeyserMC
  • 与Minecraft客户端/服务器通信的库。

  • awslabs
  • AWS MCP服务器 - 将AWS最佳实践直接带入您的开发工作流程的专门MCP服务器

  • WangRongsheng
  • 🧑‍🚀 llm 资料总结(数据处理、模型训练、模型部署、 o1 模型、mcp 、小语言模型、视觉语言模型)|摘要世界上最好的LLM资源。

  • appcypher
  • 很棒的MCP服务器 - 模型上下文协议服务器的策划列表

    Reviews

    2 (1)
    Avatar
    user_5JKK83rM
    2025-04-17

    The mcphub by samanhappy is an incredible tool for managing and centralizing MCP applications. Its user-friendly interface and seamless integration capabilities have significantly streamlined my workflows. Highly recommend checking it out at https://github.com/samanhappy/mcphub if you're looking for a reliable MCP hub!