by ravitemer
A centralized manager for Model Context Protocol (MCP) servers with dynamic server management and monitoring
# Add to your Claude Code skills
git clone https://github.com/ravitemer/mcp-hubGuides for using mcp servers skills like mcp-hub.
mcp-hub is an open-source mcp servers skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by ravitemer. A centralized manager for Model Context Protocol (MCP) servers with dynamic server management and monitoring. It has 527 GitHub stars.
mcp-hub's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/ravitemer/mcp-hub" and add it to your Claude Code skills directory (see the Installation section above).
mcp-hub is primarily written in JavaScript. It is open-source under ravitemer on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other MCP Servers skills you can browse and compare side by side. Open the MCP Servers category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh mcp-hub against similar tools.
No comments yet. Be the first to share your thoughts!
Top skills in this category by stars
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
MCP Hub acts as a central coordinator for MCP servers and clients, providing two key interfaces:
This dual-interface approach means you can manage servers through the Hub's UI while MCP clients (Claude Desktop, Cline, etc.) only need to connect to one endpoint (localhost:37373/mcp) to access all capabilities. Implements MCP 2025-03-26 specification.
| Category | Feature | Support | Notes |
|---|---|---|---|
| Transport | |||
| streamable-http | ✅ | Primary transport protocol for remote servers | |
| SSE | ✅ | Fallback transport for remote servers | |
| STDIO | ✅ | For running local servers | |
| Authentication | |||
| OAuth 2.0 | ✅ | With PKCE flow | |
| Headers | ✅ | For API keys/tokens | |
| Capabilities | |||
| Tools | ✅ | List tools | |
| 🔔 Tool List Changed | ✅ | Real-time updates | |
| Resources | ✅ | Full support | |
| 🔔 Resource List Changed | ✅ | Real-time updates | |
| Resource Templates | ✅ | URI templates | |
| Prompts | ✅ | Full support | |
| 🔔 Prompts List Changed | ✅ | Real-time updates | |
| Roots | ❌ | Not supported | |
| Sampling | ❌ | Not supported | |
| Completion | ❌ | Not supported | |
| Marketplace | |||
| Server Discovery | ✅ | Browse available servers | |
| Installation | ✅ | Auto configuration | |
| Real-time | |||
| Status Updates | ✅ | Server & connection state | |
| Capability Updates | ✅ | Automatic refresh | |
| Event Streaming to clients | ✅ | SSE-based | |
| Auto Reconnection | ✅ | With backoff | |
| Development | |||
| Hot Reload | ✅ | Auto restart a MCP server on file changes with dev mode |
|
| Configuration | |||
${} Syntax |
✅ | Environment variables and command execution across all fields | |
| VS Code Compatibility | ✅ | Support for servers key, ${env:}, ${input:}, predefined variables |
|
| JSON5 Support | ✅ | Comments and trailing commas in configuration files |
Configure all MCP clients with just one endpoint:
{
"mcpServers" : {
"Hub": {
"url" : "http://localhost:37373/mcp"
}
}
}
The Hub automatically:
filesystem__search vs database__search)Unified MCP Server Endpoint (/mcp):
Dynamic Server Management:
Unified REST API:
Real-time Events & Monitoring:
Client Connection Management:
Process Lifecycle Management:
Workspace Management:
The main management server that:
Connected services that:
npm install -g mcp-hub
Start the hub server:
mcp-hub --port 3000 --config path/to/config.json
# Or with multiple config files (merged in order)
mcp-hub --port 3000 --config ~/.config/mcphub/global.json --config ./.mcphub/project.json
Options:
--port Port to run the server on (required)
--config Path to config file(s). Can be specified multiple times. Merged in order. (required)
--watch Watch config file for changes, only updates affected servers (default: false)
--auto-shutdown Whether to automatically shutdown when no clients are connected (default: false)
--shutdown-delay Delay in milliseconds before shutting down when auto-shutdown is enabled (default: 0)
-h, --help Show help information
MCP Hub uses JSON configuration files to define managed servers with universal ${} placeholder syntax for environment variables and command execution.
MCP Hub provides seamless compatibility with VS Code's .vscode/mcp.json configuration format, enabling you to use the same configuration files across both VS Code and MCP Hub.
Both mcpServers and servers keys are supported:
{
"servers": {
"github": {
"url": "https://api.githubcopilot.com/mcp/"
},
"perplexity": {
"command": "npx",
"args": ["-y", "server-perplexity-ask"],
"env": {
"API_KEY": "${env:PERPLEXITY_API_KEY}"
}
}
}
}
MCP Hub supports VS Code-style variable substitution:
${env:VARIABLE_NAME} or ${VARIABLE_NAME}${workspaceFolder}, ${userHome}, ${pathSeparator}${cmd: command args}Supported Predefined Variables:
${workspaceFolder} - Directory where mcp-hub is running${userHome} - User's home directory${pathSeparator} - OS path separator (/ or )${workspaceFolderBasename} - Just the folder name${cwd} - Alias for workspaceFolder${/} - VS Code shorthand for pathSeparatorFor ${input:} variables used in VS Code configs, use the MCP_HUB_ENV environment variable:
# Set input variables globally
export MCP_HUB_ENV='{"input:api-key":"your-secret-key","input:database-url":"postgresql://..."}'
# Then use in config
{
"servers": {
"myserver": {
"env": {
"API_KEY": "${input:api-key}"
}
}
}
}
Existing .vscode/mcp.json files work directly with MCP Hub. Simply point MCP Hub to your VS Code configuration:
mcp-hub --config .vscode/mcp.json --port 3000
MCP Hub supports loading multiple configuration files that are merged in order. This enables flexible configuration management:
~/.config/mcphub/global.json)./.mcphub/project.json)When multiple config files are specified, they are merged with later files overriding earlier ones:
# Global config is loaded first, then project config overrides
mcp-hub --port 3000 --config ~/.config/mcphub/global.json --config ./.mcphub/project.json
Merge Behavior:
mcpServers sections are merged (server definitions from later files override earlier ones)${ENV_VAR} or ${env:ENV_VAR} - Resolves environment variables${cmd: command args} - Executes commands and uses output${workspaceFolder} - Directory where mcp-hub is running${userHome} - User's home directory${pathSeparator} - OS path separator${input:variable-id} - Resolves from MCP_HUB_ENV (VS Code compatibility)null or "" - Falls back to process.env{
"mcpServers": {
"local-server": {
"command": "${MCP_BINARY_PATH}/server",
"args": [
"--token", "${API_TOKEN}",
"--database", "${DB_URL}",
"--secret", "${cmd: op read op://vault/secret}"
],