mcp-hub
io.github.ni-c/mcp-hub
v0.13.1Updated Nov 19, 2026stdio · npmstdio · Docker
Many stdio MCP servers from one container, published over HTTPS with OAuth 2.1 for any MCP client
Install
Nothing to fill in: copy and run.
Run in your terminal
claude mcp add mcp-hub -e IDLE_TIMEOUT_MINUTES=60 -- npx -y @ni-c/[email protected]The registry lists extra launch arguments or environment variables for this server that could change what runs. They are left out here; check its repository before adding any.
Configuration
12 settings, 1 required secret. Snippets use placeholders; keep real values out of shared config.
PASSWORD_HASHEnv var· required· secretbcrypt hash of the OAuth login password (htpasswd -bnBC 10 "" 'pw' | tr -d ':\n')EXTERNAL_URLEnv var· requiredPublic base URL exactly as clients see it, e.g. https://mcp.example.net (no path)TOTP_SECRETEnv var· optional· secretBase32 secret the authenticator app was set up with (mcp-hub-admin totp init). Read only when TWO_FACTOR is totp.CONFIG_PATHEnv var· optionalPath to the mcp.json listing the servers to expose, in Claude Code's mcpServers format (default mcp.json in the working directory)IDLE_TIMEOUT_MINUTESEnv var· optionalMinutes of inactivity before a server is put to sleep; 0 starts every server at launch and keeps it running (default 60)Default:60TOOL_CACHE_PATHEnv var· optionalTool snapshots of sleeping servers (default .mcp-hub/tool-cache.json beside the config)
Show 6 moreShow fewer
LOG_FILEEnv var· optionalMirror the hub's log lines into this file; stdout carries the protocol, so logging goes to stderr otherwiseTWO_FACTOREnv var· optionalSet to totp to ask for a one-time code from an authenticator app at every sign-in. Default off.TRUSTED_PROXIESEnv var· optionalComma-separated IPs/CIDRs of the reverse proxy allowed to set X-Forwarded-* headersCLIENT_REGISTRATIONEnv var· optionalWhich mechanisms a client may use to obtain a client_id: cimd (Client ID Metadata Documents), dcr (RFC 7591 dynamic registration), or bothDefault:cimd,dcrCIMD_ALLOWED_ORIGINSEnv var· optionalComma-separated https origins whose client ID metadata documents are accepted, e.g. https://chatgpt.com; unset admits every https originPORTEnv var· optionalListen port inside the containerDefault:80
Links
Listed in the official MCP Registry since Nov 19, 2026. Mirrored daily; last checked Nov 26, 2026.