# ctrlPi MCP Bridge MCP server

> Allows an AI assistant to control Raspberry Pi, Pico W, and ESP32 GPIO agents via REST API proxying.

- Repository: https://github.com/ctrlpi/mcp-bridge
- Page: https://hostedmcp.org/servers/ctrlpi/mcp-bridge
- Transport: stdio
- Stars: 1
- License: MIT
- Latest version: 0.9.31

## Install

### Claude Code

```sh
claude mcp add mcp-bridge -- npx -y @ctrlpi/mcp-bridge
```

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

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

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

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

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

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

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

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

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

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

## FAQ

### What hardware can I control with this server?

You can control Raspberry Pi, Pico W, and ESP32 GPIO agents that are reachable on your local network.

### How do I secure the HTTP transport mode?

The HTTP mode is secured using an API key sent via the Api-Key header. You can set a custom key in the mcp-config.json file or claim a new one by being the first to connect with a different key.

### Does the server require any npm dependencies?

No, the server has zero npm dependencies because the MCP protocol is hand-rolled using Node.js built-ins.

### How often does the server scan for new hardware on my network?

The server automatically sweeps your local network on every launch and then repeats the sweep every hour.
