New advertisers: 50% off your first month with code FIRSTMONTHSee slots
kritzerenkrieg avatar

Raspberry Pi Connect (Raspi Connect / RPi Connect) MCP

kritzerenkrieg/raspberry-pi-connect-mcp

Shell access to Raspberry Pi devices through the Raspberry Pi Connect web remote shell.

GitHub stars
3
tools
5
transport
STDIO
env vars
4
last updated
Nov 18, 2026
View on GitHub

What it does

  • Lists devices with list_devices, and runs commands with run_command, returning output and exit code per call
  • Sends raw keystrokes with send_keys and reads the terminal with read_screen; close_session ends a device's shell session
  • Drives the Connect web UI through headless Chrome, so no SSH, VPN, or public IP is needed; sign-in happens in a browser window
  • Designed for fleet management, scripted maintenance, and agent-driven work on Pis that are already online in Connect

Tools

5 tools

Public tool metadata for what this MCP can expose to an agent.

list_devicesDevices on the account: id, name, client version, last seen, online, remote shell / screen sharing allowed

Devices on the account: id, name, client version, last seen, online, remote shell / screen sharing allowed

No parameter schema in public metadata yet.

run_commandRun a bash command line; returns { device, exitCode, output }. If it is still running at the timeout, returns timedOut: true and the partial output

Run a bash command line; returns { device, exitCode, output }. If it is still running at the timeout, returns timedOut: true and the partial output

No parameter schema in public metadata yet.

send_keysSend raw keystrokes (\n, \t, \x03 Ctrl-C, \x04 Ctrl-D, \x1b[A Up…); returns the screen

Send raw keystrokes (\n, \t, \x03 Ctrl-C, \x04 Ctrl-D, \x1b[A Up…); returns the screen

No parameter schema in public metadata yet.

read_screenCurrent terminal screen plus a little scrollback

Current terminal screen plus a little scrollback

No parameter schema in public metadata yet.

close_sessionClose the shell session for a device

Close the shell session for a device

No parameter schema in public metadata yet.

Configuration

RPI_CONNECT_ALLOW

Comma-separated device name substrings the agent may use

RPI_CONNECT_HEADED

Set to 1 to show the browser window

RPI_CONNECT_CHROME

Path to a Chrome binary

RPI_CONNECT_SESSION

Path to the saved session cookie file

Readme

raspberry-pi-connect-mcp

Raspi Connect MCP · RPi Connect MCP — an MCP server that gives an AI agent (Claude Code, Claude Desktop, or any MCP client) shell access to your Raspberry Pi devices through the Raspberry Pi Connect web remote shell.

Looking for "raspi connect mcp", "rpi connect mcp", "raspberry pi connect mcp" or "raspi remote shell mcp"? This is that project. Search terms: raspi-connect-mcp, rpi-connect-mcp, raspberry-pi-connect-mcp.

Raspberry Pi Connect has no public API for its remote shell, so this server drives the web UI with a headless Chrome: it opens the device's remote-shell page, hooks the xterm.js terminal, types commands and reads the output back. No SSH, port forwarding, VPN or public IP is needed. If the Pi shows up in Connect, the agent can use it.

Unofficial project. Not affiliated with or endorsed by Raspberry Pi Ltd.


View the full README on GitHub

Details

Repository
github.com/kritzerenkrieg/raspberry-pi-connect-mcp
Categories
DevOps & Cloud, Workflow Automation, Developer Tools
Package
raspberry-pi-connect-mcp
Transport
STDIO
Registry
MCP registry, active

Similar to Raspberry Pi Connect (Raspi Connect / RPi Connect) MCP

More DevOps & Cloud