MCPHub
What is MCPHub?
MCPHub is a hub for Model Context Protocol (MCP) servers. It runs many MCP servers in one place and gives AI clients, such as Claude Desktop or Cursor, one endpoint to connect to.
You can put servers into groups, control who can access each server or group, and add servers from a web dashboard. The optional smart routing feature uses vector search to find the right tools for a request.
Deploy MCPHub
- Create a new resource in Coolify and select MCPHub from the service list.
- Click Deploy.
- Wait until the
mcphubandpostgresservices show as healthy. - Open the domain of the service and log in:
- Username:
admin - Password: the value of the
SERVICE_PASSWORD_ADMINenvironment variable.
- Username:
- Add your MCP servers in the dashboard.
Connect AI clients
Use these endpoints in your MCP client:
| Endpoint | Description |
|---|---|
https://<your-domain>/mcp | All servers |
https://<your-domain>/mcp/<group> | One group |
https://<your-domain>/mcp/<server> | One server |
https://<your-domain>/mcp/$smart | Smart routing (must be enabled) |
Smart routing
Smart routing is disabled by default. To enable it:
- Set
SMART_ROUTING_ENABLEDtotrue. - Set
OPENAI_API_KEYto your API key. - Optional: set
OPENAI_API_BASE_URLandEMBEDDING_MODELto use an OpenAI-compatible provider or a different embedding model. - Restart the service.
The included PostgreSQL database has the pgvector extension, which smart routing uses to store embeddings.
Notes
- MCPHub reads
SERVICE_PASSWORD_ADMINonly on the first start, when no users exist. If you change the variable later, theadminpassword does not change. Change it in the dashboard. MCPHUB_CREDENTIAL_ENCRYPTION_KEYencrypts saved personal credentials. Do not change it after you save credentials, because MCPHub cannot decrypt them with a new key.- Data is stored in the
mcphub-dataandmcphub-postgres-datavolumes.
