Skip to main content

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_HASH
    Env var· required· secret
    bcrypt hash of the OAuth login password (htpasswd -bnBC 10 "" 'pw' | tr -d ':\n')
  • EXTERNAL_URL
    Env var· required
    Public base URL exactly as clients see it, e.g. https://mcp.example.net (no path)
  • TOTP_SECRET
    Env var· optional· secret
    Base32 secret the authenticator app was set up with (mcp-hub-admin totp init). Read only when TWO_FACTOR is totp.
  • CONFIG_PATH
    Env var· optional
    Path to the mcp.json listing the servers to expose, in Claude Code's mcpServers format (default mcp.json in the working directory)
  • IDLE_TIMEOUT_MINUTES
    Env var· optional
    Minutes of inactivity before a server is put to sleep; 0 starts every server at launch and keeps it running (default 60)Default: 60
  • TOOL_CACHE_PATH
    Env var· optional
    Tool snapshots of sleeping servers (default .mcp-hub/tool-cache.json beside the config)
Show 6 more
  • LOG_FILE
    Env var· optional
    Mirror the hub's log lines into this file; stdout carries the protocol, so logging goes to stderr otherwise
  • TWO_FACTOR
    Env var· optional
    Set to totp to ask for a one-time code from an authenticator app at every sign-in. Default off.
  • TRUSTED_PROXIES
    Env var· optional
    Comma-separated IPs/CIDRs of the reverse proxy allowed to set X-Forwarded-* headers
  • CLIENT_REGISTRATION
    Env var· optional
    Which mechanisms a client may use to obtain a client_id: cimd (Client ID Metadata Documents), dcr (RFC 7591 dynamic registration), or bothDefault: cimd,dcr
  • CIMD_ALLOWED_ORIGINS
    Env var· optional
    Comma-separated https origins whose client ID metadata documents are accepted, e.g. https://chatgpt.com; unset admits every https origin
  • PORT
    Env var· optional
    Listen port inside the containerDefault: 80

Listed in the official MCP Registry since Nov 19, 2026. Mirrored daily; last checked Nov 26, 2026.