mcp-hub
by amir-the-h
Overview
A Go-based hub that aggregates multiple Model Context Protocol (MCP) servers and exposes their tools through a unified HTTP API, facilitating interaction for AI models or development tools.
Installation
docker run -d --name mcp-hub -p 8080:8080 -v $(pwd)/config.json:/app/config.json:ro -v /var/run/docker.sock:/var/run/docker.sock --restart unless-stopped mcp-hub:latestEnvironment Variables
- MCP_HUB_PORT
- PORT
- GITHUB_TOKEN
- BRAVE_API_KEY
- API_TOKEN
Security Notes
The server's core functionality involves executing arbitrary commands (`stdio` transport) or launching Docker containers (`docker` transport) based on the `config.json` file. This is a critical security risk if the configuration file is compromised or contains malicious entries, potentially leading to arbitrary code execution on the host. Furthermore, the typical Docker deployment involves mounting the host's Docker socket (`/var/run/docker.sock`) into the `mcp-hub` container. If the `mcp-hub` container itself is compromised, an attacker would gain full root control over the host's Docker daemon, allowing for arbitrary container execution and privilege escalation on the host. While environment variables are used for sensitive data (e.g., API keys), these can be exposed in logs if not properly managed or if the logging level is too verbose for arguments. There are no clear 'eval' patterns or obfuscation, but the inherent design for flexibility in executing external processes or containers means the trust boundary primarily lies with the configuration and the integrity of the host environment.
Similar Servers
tiger-linear-mcp-server
This server acts as a wrapper for the Linear API, providing focused tools for LLMs to manage and query issue tracking and project data.
tiger-memory-mcp-server
A backend server for a Minecraft-related application, likely providing data management or proxy services.
lumino-mcp-server
Provides an AI assistant with specialized tools to monitor, analyze, troubleshoot, predict, and simulate changes in Kubernetes, OpenShift, and Tekton environments for SREs and DevOps.
db-mcp-server-npx
Enables AI assistants to securely interact with various relational databases for querying data, analyzing schema, and performing controlled data modifications.