# pi-bay MCP server

> Lets an AI client manage Raspberry Pis and SSH devices on a LAN by browsing files, running shell commands, and controlling hardware.

- Repository: https://github.com/ctrlpi/pi-bay
- Page: https://hostedmcp.org/servers/ctrlpi/pi-bay
- Transport: stdio
- Stars: 1
- License: MIT
- Latest version: 0.9.34

## Install

### Claude Code

```sh
claude mcp add pi-bay -- npx -y @ctrlpi/pi-bay
```

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

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

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "pi-bay": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@ctrlpi/pi-bay"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"pi-bay","type":"stdio","command":"npx","args":["-y","@ctrlpi/pi-bay"]}'
```

### Claude Desktop (`claude_desktop_config.json`)

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

### Codex

```sh
codex mcp add pi-bay -- npx -y @ctrlpi/pi-bay
```

### Codex config.toml (`~/.codex/config.toml`)

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

### Gemini CLI

```sh
gemini mcp add -s user pi-bay npx -- -y @ctrlpi/pi-bay
```

### Gemini settings.json (`~/.gemini/settings.json`)

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

## Tools (12)

- `pi_devices_list`
- `pi_device_info`
- `pi_device_authenticate`
- `pi_command_run`
- `pi_files_list`
- `pi_file_read`
- `pi_file_write`
- `pi_directory_create`
- `pi_path_rename`
- `pi_path_delete`
- `pi_device_reboot`
- `pi_ctrlpi_install`

## FAQ

### What can I do with pi-bay?

You can find SSH devices on your local network, browse and edit files via SFTP, run shell commands, and reboot devices.

### How do I connect to my devices?

The server signs in over SSH and can use passwords saved in your system keychain or existing SSH keys from your SSH agent.

### Is it safe to use the HTTP mode for MCP?

No, HTTP mode has no authentication or TLS and should only be used on a trusted local network because tools can run shell commands and delete files.
