mcp-hub MCP
mcp-hub is a community-maintained MCP gateway that aggregates multiple stdio MCP servers into a single containerized HTTPS endpoint. It supports both MCP protocol revisions, provides path-based routing for individual servers, and offers a hub aggregate endpoint with meta-tools. The server handles OAuth 2.1 authentication for both clients and upstreams, ensuring secure access for tools like ChatGPT, Claude, and Cursor.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
What you can do with it
- Aggregating multiple stdio MCP servers into one container
- Providing path-based routing for individual MCP servers
- Exposing a hub aggregate endpoint with meta-tools
- Managing OAuth 2.1 authentication for clients and upstreams
Source and maintenance
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
@ni-c/mcp-hub 0.11.7
{
"version": "0.11.7",
"transport": "stdio",
"identifier": "@ni-c/mcp-hub",
"runtimeHint": "npx",
"registryType": "npm",
"packageArguments": [
{
"type": "positional",
"value": "--stdio"
}
],
"environmentVariables": [
{
"name": "CONFIG_PATH",
"format": "string",
"description": "Path to the mcp.json listing the servers to expose, in Claude Code's mcpServers format (default mcp.json in the working directory)"
},
{
"name": "IDLE_TIMEOUT_MINUTES",
"format": "number",
"default": "60",
"description": "Minutes of inactivity before a server is put to sleep; 0 starts every server at launch and keeps it running (default 60)"
},
{
"name": "TOOL_CACHE_PATH",
"format": "string",
"description": "Tool snapshots of sleeping servers (default .mcp-hub/tool-cache.json beside the config)"
},
{
"name": "LOG_FILE",
"format": "string",
"description": "Mirror the hub's log lines into this file; stdout carries the protocol, so logging goes to stderr otherwise"
}
]
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"mcp-hub-mcp": {
"command": "npx",
"args": [
"-y",
"@ni-c/mcp-hub@0.11.7",
"--stdio"
],
"env": {
"CONFIG_PATH": "<YOUR_CONFIG_PATH>",
"IDLE_TIMEOUT_MINUTES": "<YOUR_IDLE_TIMEOUT_MINUTES>",
"TOOL_CACHE_PATH": "<YOUR_TOOL_CACHE_PATH>",
"LOG_FILE": "<YOUR_LOG_FILE>"
}
}
}
}Cline
{
"mcpServers": {
"mcp-hub-mcp": {
"command": "npx",
"args": [
"-y",
"@ni-c/mcp-hub@0.11.7",
"--stdio"
],
"env": {
"CONFIG_PATH": "<YOUR_CONFIG_PATH>",
"IDLE_TIMEOUT_MINUTES": "<YOUR_IDLE_TIMEOUT_MINUTES>",
"TOOL_CACHE_PATH": "<YOUR_TOOL_CACHE_PATH>",
"LOG_FILE": "<YOUR_LOG_FILE>"
}
}
}
}VS Code
{
"servers": {
"mcp-hub-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@ni-c/mcp-hub@0.11.7",
"--stdio"
],
"env": {
"CONFIG_PATH": "<YOUR_CONFIG_PATH>",
"IDLE_TIMEOUT_MINUTES": "<YOUR_IDLE_TIMEOUT_MINUTES>",
"TOOL_CACHE_PATH": "<YOUR_TOOL_CACHE_PATH>",
"LOG_FILE": "<YOUR_LOG_FILE>"
}
}
}
}Claude Desktop
{
"mcpServers": {
"mcp-hub-mcp": {
"command": "npx",
"args": [
"-y",
"@ni-c/mcp-hub@0.11.7",
"--stdio"
],
"env": {
"CONFIG_PATH": "<YOUR_CONFIG_PATH>",
"IDLE_TIMEOUT_MINUTES": "<YOUR_IDLE_TIMEOUT_MINUTES>",
"TOOL_CACHE_PATH": "<YOUR_TOOL_CACHE_PATH>",
"LOG_FILE": "<YOUR_LOG_FILE>"
}
}
}
}Let your agent find its tools
Find servers like mcp-hub MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.