Serve multiple stdio MCP servers from one container: path routing, hub meta-tools, OAuth 2.1 + API tokens for ChatGPT, Claude, Cursor and other MCP clients
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add hub-ni-c -- npx -y @ni-c/mcp-hub~/.codex/config.toml
[mcp_servers.hub-ni-c]
command = "npx"
args = ["-y", "@ni-c/mcp-hub"]
# codex mcp add hub-ni-c -- npx -y @ni-c/mcp-hub~/.cursor/mcp.json
{
"mcpServers": {
"hub-ni-c": {
"command": "npx",
"args": [
"-y",
"@ni-c/mcp-hub"
]
}
}
}.vscode/mcp.json
{
"servers": {
"hub-ni-c": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@ni-c/mcp-hub"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"hub-ni-c": {
"command": "npx",
"args": [
"-y",
"@ni-c/mcp-hub"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"hub-ni-c": {
"command": "npx",
"args": [
"-y",
"@ni-c/mcp-hub"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"hub-ni-c": {
"command": "npx",
"args": [
"-y",
"@ni-c/mcp-hub"
]
}
}
}