Back to Home
amir-the-h icon

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

Run Command
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:latest

Environment 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

Stats

Interest Score0
Security Score4
Cost ClassLow
Avg Tokens1000
Stars0
Forks0
Last Update2025-11-24

Tags

MCPAPI GatewayTool AggregationGoDocker