# Pi Bay

> Pi Bay is an MCP server for developer tools. Find Raspberry Pis on your LAN, browse their files and run commands from an AI assistant. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Platforms:** macOS, Linux, Web, CLI
- **Website:** https://ctrlpi.com/pi-bay
- **Repository:** https://github.com/ctrlpi/pi-bay
- **MCP Registry name:** io.github.ctrlpi/pi-bay
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools), [smart home](https://ai-powered.com/categories/smart-home)
- **Listing updated:** 2026-11-23

## About

Pi Bay is both a browser app and an MCP server for Raspberry Pis and other SSH devices. It scans the local network, detects ctrlPi agents including Picos and ESP32s, and shows name, IP, MAC address, model and ctrlPi version. Passwords can be saved in the system keychain, and SSH keys are tried too.

The browser app offers an SFTP file tree with editing, drag-and-drop uploads, ZIP backup and restore, running scripts, and an interactive SSH terminal. It can also install or update `pi-gpio-api` and toggle USB power through `uhubctl`.

The README warns that the MCP tools can run shell commands, overwrite and delete files, install software and reboot devices, and that HTTP mode has no authentication or TLS and must stay on a trusted network. Start with `pi_devices_list` and pass its `device_id` to the other tools.

## Features

- **Device scan:** Finds Pis and SSH devices and shows model, IP and MAC.
- **File browser:** SFTP tree with editing, uploads and ZIP backup.
- **SSH terminal:** Interactive shell kept open across tabs.
- **ctrlPi install:** Installs or updates pi-gpio-api.
- **Keychain sign-in:** Uses saved passwords or SSH keys.

## Good for

- Edit a config file on a Pi from a chat
- Reboot an unresponsive Pi
- Install the ctrlPi API on a new device
- Back up a Pi's home folder

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add pi-bay -- npx -y pi-bay
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "pi-bay": {
      "command": "npx",
      "args": [
        "-y",
        "pi-bay"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "pi-bay": {
      "command": "npx",
      "args": [
        "-y",
        "pi-bay"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "pi-bay": {
      "command": "npx",
      "args": [
        "-y",
        "pi-bay"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "pi-bay": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "pi-bay"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add pi-bay -- npx -y pi-bay
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.pi-bay]
command = "npx"
args = ["-y", "pi-bay"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "pi-bay": {
      "command": "npx",
      "args": [
        "-y",
        "pi-bay"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user pi-bay npx -- -y pi-bay

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "pi-bay": {
      "command": "npx",
      "args": [
        "-y",
        "pi-bay"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "pi-bay": {
      "command": "npx",
      "args": [
        "-y",
        "pi-bay"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "pi-bay": {
      "command": "npx",
      "args": [
        "-y",
        "pi-bay"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "pi-bay": {
      "command": "npx",
      "args": [
        "-y",
        "pi-bay"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "pi-bay": {
      "command": "npx",
      "args": [
        "-y",
        "pi-bay"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "pi-bay": {
      "command": "npx",
      "args": [
        "-y",
        "pi-bay"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "pi-bay": {
      "command": "npx",
      "args": [
        "-y",
        "pi-bay"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "pi-bay": {
      "command": "npx",
      "args": [
        "-y",
        "pi-bay"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 1 of 12 tools deletes data and 4 change data; 4 names don't say. From the server's own tool labels and tool names; not verified by us.

- `pi_devices_list` (name suggests: reads): Lists discovered devices with model and ctrlPi status.
- `pi_device_info`: Returns hardware, OS, memory and uptime details.
- `pi_device_authenticate`: Signs in over SSH, optionally saving the password.
- `pi_command_run` (name suggests: changes): Runs a shell command with a timeout.
- `pi_files_list` (name suggests: reads): Lists a folder relative to $HOME.
- `pi_file_read` (name suggests: reads): Reads a file as UTF-8 or base64.
- `pi_file_write` (name suggests: changes): Creates or overwrites a file up to 16 MB.
- `pi_directory_create` (name suggests: changes): Creates a folder.
- `pi_path_rename` (name suggests: changes): Renames or moves a path.
- `pi_path_delete` (name suggests: deletes): Deletes a file or folder recursively.
- `pi_device_reboot`: Reboots the device.
- `pi_ctrlpi_install`: Installs or updates the ctrlPi API.

## FAQ

### Is MCP on by default?

On Raspberry Pi hosts, yes; elsewhere enable it with --mcp-stdio or --mcp-http.

### Is HTTP mode safe on the internet?

No. It has no authentication or TLS and should stay on a trusted local network.

### Which port does the app use?

8383.

### What is required?

Node.js 20 or newer and SSH enabled on the target device.

### How do I add Pi Bay to Claude Code?

Run this command in your terminal: claude mcp add pi-bay -- npx -y pi-bay

### What are the best alternatives to Pi Bay?

The closest alternatives to Pi Bay are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.

## Where this comes from

- Description: written from the project's README and the project's website.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/pi-bay
