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-ctrlpi-pi-bay": {
"command": "npx",
"args": [
"-y",
"pi-bay"
],
"env": {
"PORT": "8383",
"PI_BAY_HOST": "<VALUE>",
"PI_BAY_NO_MCP": "false",
"PI_BAY_API_KEY": "your-secret-key",
"PI_BAY_NO_OPEN": "false",
"PI_BAY_API_PORT": "8314",
"PI_BAY_MCP_HTTP": "<VALUE>",
"PI_BAY_SSH_PORT": "22",
"PI_BAY_MCP_STDIO": "false",
"PI_BAY_ALLOW_HOSTS": "<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-ctrlpi-pi-bay": {
"command": "npx",
"args": [
"-y",
"pi-bay"
],
"env": {
"PORT": "8383",
"PI_BAY_HOST": "<VALUE>",
"PI_BAY_NO_MCP": "false",
"PI_BAY_API_KEY": "your-secret-key",
"PI_BAY_NO_OPEN": "false",
"PI_BAY_API_PORT": "8314",
"PI_BAY_MCP_HTTP": "<VALUE>",
"PI_BAY_SSH_PORT": "22",
"PI_BAY_MCP_STDIO": "false",
"PI_BAY_ALLOW_HOSTS": "<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-ctrlpi-pi-bay": {
"command": "npx",
"args": [
"-y",
"pi-bay"
],
"env": {
"PORT": "8383",
"PI_BAY_HOST": "<VALUE>",
"PI_BAY_NO_MCP": "false",
"PI_BAY_API_KEY": "your-secret-key",
"PI_BAY_NO_OPEN": "false",
"PI_BAY_API_PORT": "8314",
"PI_BAY_MCP_HTTP": "<VALUE>",
"PI_BAY_SSH_PORT": "22",
"PI_BAY_MCP_STDIO": "false",
"PI_BAY_ALLOW_HOSTS": "<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-ctrlpi-pi-bay": {
"command": "npx",
"args": [
"-y",
"pi-bay"
],
"env": {
"PORT": "8383",
"PI_BAY_HOST": "<VALUE>",
"PI_BAY_NO_MCP": "false",
"PI_BAY_API_KEY": "your-secret-key",
"PI_BAY_NO_OPEN": "false",
"PI_BAY_API_PORT": "8314",
"PI_BAY_MCP_HTTP": "<VALUE>",
"PI_BAY_SSH_PORT": "22",
"PI_BAY_MCP_STDIO": "false",
"PI_BAY_ALLOW_HOSTS": "<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-ctrlpi-pi-bay": {
"command": "npx",
"args": [
"-y",
"pi-bay"
],
"env": {
"PORT": "8383",
"PI_BAY_HOST": "<VALUE>",
"PI_BAY_NO_MCP": "false",
"PI_BAY_API_KEY": "your-secret-key",
"PI_BAY_NO_OPEN": "false",
"PI_BAY_API_PORT": "8314",
"PI_BAY_MCP_HTTP": "<VALUE>",
"PI_BAY_SSH_PORT": "22",
"PI_BAY_MCP_STDIO": "false",
"PI_BAY_ALLOW_HOSTS": "<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-ctrlpi-pi-bay": {
"command": "npx",
"args": [
"-y",
"pi-bay"
],
"env": {
"PORT": "8383",
"PI_BAY_HOST": "<VALUE>",
"PI_BAY_NO_MCP": "false",
"PI_BAY_API_KEY": "your-secret-key",
"PI_BAY_NO_OPEN": "false",
"PI_BAY_API_PORT": "8314",
"PI_BAY_MCP_HTTP": "<VALUE>",
"PI_BAY_SSH_PORT": "22",
"PI_BAY_MCP_STDIO": "false",
"PI_BAY_ALLOW_HOSTS": "<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 |
|---|---|---|
| PORT | No | Web server port. Default: 8383 |
| PI_BAY_HOST | No | Host address to listen on. Defaults to 127.0.0.1 normally, or 0.0.0.0 on a Raspberry Pi host. |
| PI_BAY_NO_MCP | No | Disable all MCP transports, including the Raspberry Pi HTTP default. Default: false |
| PI_BAY_API_KEY | No | API key used for /config/read. Default: your-secret-key |
| PI_BAY_NO_OPEN | No | Do not automatically open the default browser on start. Browsers are never opened automatically on Raspberry Pi hosts. Default: false |
| PI_BAY_API_PORT | No | ctrlPi API port. Default: 8314 |
| PI_BAY_MCP_HTTP | No | Add Streamable HTTP MCP at /mcp to the normal web server. Enabled automatically on Raspberry Pi hosts. |
| PI_BAY_SSH_PORT | No | SSH port checked during discovery and used for connections. Default: 22 |
| PI_BAY_MCP_STDIO | No | Run only the MCP stdio transport. No web server or browser is started. Default: false |
| PI_BAY_ALLOW_HOSTS | No | Extra host name(s) to accept, such as pi4.lan. Separate multiple names with commas. IP addresses, localhost and the machine's own name always work. |