Install
Add to ~/Library/Application Support/Claude/claude_desktop_config.json
Windows / Linux path
%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json{
"mcpServers": {
"io-github-ni-c-mcp-hub": {
"command": "npx",
"args": [
"-y",
"@ni-c/mcp-hub"
],
"env": {
"CONFIG_PATH": "/config/mcp.json",
"IDLE_TIMEOUT_MINUTES": "60",
"TOOL_CACHE_PATH": "<VALUE>",
"LOG_FILE": "<VALUE>",
"PORT": "80",
"PASSWORD": "<VALUE>",
"DATA_PATH": "/data",
"EXTERNAL_URL": "<VALUE>",
"PASSWORD_HASH": "<VALUE>",
"TRUSTED_PROXIES": "<VALUE>"
}
}
}
}
Restart Claude Desktop to activate the new server.
Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
Windows / Linux path
.cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global).cursor/mcp.json (project) or ~/.cursor/mcp.json (global){
"mcpServers": {
"io-github-ni-c-mcp-hub": {
"command": "npx",
"args": [
"-y",
"@ni-c/mcp-hub"
],
"env": {
"CONFIG_PATH": "/config/mcp.json",
"IDLE_TIMEOUT_MINUTES": "60",
"TOOL_CACHE_PATH": "<VALUE>",
"LOG_FILE": "<VALUE>",
"PORT": "80",
"PASSWORD": "<VALUE>",
"DATA_PATH": "/data",
"EXTERNAL_URL": "<VALUE>",
"PASSWORD_HASH": "<VALUE>",
"TRUSTED_PROXIES": "<VALUE>"
}
}
}
}
Cursor usually picks up config changes automatically; if the server does not appear, reload the window.
Add to .mcp.json (project) or ~/.claude.json (global)
Windows / Linux path
.mcp.json (project) or %USERPROFILE%\.claude.json (global).mcp.json (project) or ~/.claude.json (global){
"mcpServers": {
"io-github-ni-c-mcp-hub": {
"command": "npx",
"args": [
"-y",
"@ni-c/mcp-hub"
],
"env": {
"CONFIG_PATH": "/config/mcp.json",
"IDLE_TIMEOUT_MINUTES": "60",
"TOOL_CACHE_PATH": "<VALUE>",
"LOG_FILE": "<VALUE>",
"PORT": "80",
"PASSWORD": "<VALUE>",
"DATA_PATH": "/data",
"EXTERNAL_URL": "<VALUE>",
"PASSWORD_HASH": "<VALUE>",
"TRUSTED_PROXIES": "<VALUE>"
}
}
}
}
The server will be available in the next Claude Code session.
Add to .vscode/mcp.json
Windows / Linux path
.vscode\mcp.json.vscode/mcp.json{
"servers": {
"io-github-ni-c-mcp-hub": {
"command": "npx",
"args": [
"-y",
"@ni-c/mcp-hub"
],
"env": {
"CONFIG_PATH": "/config/mcp.json",
"IDLE_TIMEOUT_MINUTES": "60",
"TOOL_CACHE_PATH": "<VALUE>",
"LOG_FILE": "<VALUE>",
"PORT": "80",
"PASSWORD": "<VALUE>",
"DATA_PATH": "/data",
"EXTERNAL_URL": "<VALUE>",
"PASSWORD_HASH": "<VALUE>",
"TRUSTED_PROXIES": "<VALUE>"
}
}
}
}
Reload the VS Code window to activate.
Add to ~/.codeium/windsurf/mcp_config.json
Windows / Linux path
%USERPROFILE%\.codeium\windsurf\mcp_config.json~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"io-github-ni-c-mcp-hub": {
"command": "npx",
"args": [
"-y",
"@ni-c/mcp-hub"
],
"env": {
"CONFIG_PATH": "/config/mcp.json",
"IDLE_TIMEOUT_MINUTES": "60",
"TOOL_CACHE_PATH": "<VALUE>",
"LOG_FILE": "<VALUE>",
"PORT": "80",
"PASSWORD": "<VALUE>",
"DATA_PATH": "/data",
"EXTERNAL_URL": "<VALUE>",
"PASSWORD_HASH": "<VALUE>",
"TRUSTED_PROXIES": "<VALUE>"
}
}
}
}
Restart Windsurf (or refresh its MCP servers panel) to activate the new server.
Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.
Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Windows / Linux path
%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json{
"mcpServers": {
"io-github-ni-c-mcp-hub": {
"command": "npx",
"args": [
"-y",
"@ni-c/mcp-hub"
],
"env": {
"CONFIG_PATH": "/config/mcp.json",
"IDLE_TIMEOUT_MINUTES": "60",
"TOOL_CACHE_PATH": "<VALUE>",
"LOG_FILE": "<VALUE>",
"PORT": "80",
"PASSWORD": "<VALUE>",
"DATA_PATH": "/data",
"EXTERNAL_URL": "<VALUE>",
"PASSWORD_HASH": "<VALUE>",
"TRUSTED_PROXIES": "<VALUE>"
}
}
}
}
Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.
Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.
Configuration
Environment variables this server reads. Secrets stay on your machine.
| Name | Required | Description |
|---|---|---|
| CONFIG_PATH | No | Path to config file (default /config/mcp.json) Default: /config/mcp.json |
| IDLE_TIMEOUT_MINUTES | No | 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 | No | Tool snapshots of sleeping servers (default .mcp-hub/tool-cache.json beside the config) |
| LOG_FILE | No | Mirror the hub's log lines into this file; stdout carries the protocol, so logging goes to stderr otherwise |
| PORT | No | Listen port (default 80 in the image, 3000 outside) Default: 80 |
| PASSWORD | No | Plain-text alternative to PASSWORD_HASH |
| DATA_PATH | No | Path to data directory (default /data) Default: /data |
| EXTERNAL_URL | Yes | Public base URL, e.g. https://mcp.example.net (no path) |
| PASSWORD_HASH | No | bcrypt hash of the login password (htpasswd -bnBC 10 "" 'pw' | tr -d ':\n') |
| TRUSTED_PROXIES | No | Comma-separated IPs/CIDRs allowed to set X-Forwarded-* |