Skip to content
MCP server
Registry

Raspberry Pi Connect (Raspi Connect / RPi Connect) MCP Server

Raspi Connect MCP: shell access to Raspberry Pi devices via Raspberry Pi Connect web shell

Raspberry Pi Connect (Raspi Connect / RPi Connect) MCP scores 68 (Good), licensed MIT and written in JavaScript. It installs as a local process. It declares 1 tool. Filed under Browser automation. GitHub shows 3 stars. Package registries report about 128 downloads a week. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.

by kritzerenkriegMITJavaScript3 stars
Trust score
68Good
Trust score 68 of 100, Good

Good trust

68 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 68 comes from

22 + 20 + 2 + 10 + 4 + 10 = 68. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity2 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 2 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs10 / 10

A real summary, a README with depth, listed tools.

Docs: 10 of 10 points.

Install

Pick your client, copy the config, paste it in.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "kritzerenkrieg-raspberry-pi-connect-mcp": {      "command": "npx",      "args": [        "-y",        "raspberry-pi-connect-mcp@0.2.1"      ],      "env": {        "RPI_CONNECT_ALLOW": "",        "RPI_CONNECT_HEADED": "",        "RPI_CONNECT_CHROME": "",        "RPI_CONNECT_SESSION": ""      }    }  }}

Environment variables

NameRequiredNotes
RPI_CONNECT_ALLOWOptionalComma-separated device name substrings the agent may use
RPI_CONNECT_HEADEDOptionalSet to 1 to show the browser window
RPI_CONNECT_CHROMEOptionalPath to a Chrome binary
RPI_CONNECT_SESSIONOptionalPath to the saved session cookie file

Tools1Tool docs quality grade B

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

About

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.

Features

  • Lists every device on your Connect account with online status and whether remote shell / screen sharing is allowed
  • Runs a command and returns its output and exit code, using unique begin/end markers per call
  • Persistent sessions per device: cwd, env vars and background jobs survive between calls
  • Interactive programs: send raw keys (Ctrl-C, arrows, Enter) and read the screen
  • Device allow-list (RPI_CONNECT_ALLOW) to limit which Pis the agent may use
  • Fleet-friendly: one agent can work across many devices in parallel

Requirements

  • Node.js 18.13+ (on 19.x: 19.3+)
  • A Raspberry Pi Connect account, with remote shell enabled on the devices you want to use
  • Chrome for Testing (installed below; no sudo needed)

Quick start (npm)

npx @puppeteer/browsers install chrome@stable --path ~/.cache/rpi-connect-mcp
npx -p raspberry-pi-connect-mcp raspberry-pi-connect-mcp-login   # sign in by hand in the Chrome window
claude mcp add rpi-connect -- npx -y raspberry-pi-connect-mcp

Setup (from source)

git clone https://github.com/kritzerenkrieg/raspberry-pi-connect-mcp.git
cd raspberry-pi-connect-mcp
npm install
npx @puppeteer/browsers install chrome@stable --path ~/.cache/rpi-connect-mcp
npm run login        # a Chrome window opens: sign in by hand; it closes by itself once the device list loads

npm run login (or the login tool; npm run login -- --fresh / login(fresh=true) to switch account) saves the session cookies to ~/.config/rpi-connect-mcp/session.json (mode 600). Treat that file like a password. Connect cookies are session-only, so run npm run login again when the tools report that the session expired.

Register the server with your MCP client. For Claude Code:

claude mcp add rpi-connect -- node /absolute/path/to/raspberry-pi-connect-mcp/src/server.js

Other clients (Claude Desktop, etc.):

{
  "mcpServers": {
    "rpi-connect": {
      "command": "node",
      "args": ["/absolute/path/to/raspberry-pi-connect-mcp/src/server.js"],
      "env": { "RPI_CONNECT_ALLOW": "lab-pi,kiosk" }
    }
  }
}

Tools

ToolWhat it does
list_devicesDevices on the account: id, name, client version, last seen, online, remote shell / screen sharing allowed
run_command(device, command, timeout_sec=60)Run a bash command line; returns { device, exitCode, output }. If it is still running at the timeout, returns timedOut: true and the partial output
send_keys(device, keys)Send raw keystrokes (\n, \t, \x03 Ctrl-C, \x04 Ctrl-D, \x1b[A Up…); returns the screen
read_screen(device, lines=0)Current terminal screen plus a little scrollback
close_session(device)Close the shell session for a device
accountWhich account is signed in (email when readable), session age, device names, login in progress
login(fresh=false, wait_sec=180)Opens a Chrome window on this computer for the user to sign in; the new session is used right away. fresh=true signs out first (switch account)
logout(delete=false)Signs out: session and Chrome profile move to ~/.config/rpi-connect-mcp/old-account_<time>/ (restorable), or are deleted

device can be the exact name, a unique substring of the name, or the device UUID. The first call to a device takes about 10 to 30 s while Connect sets up the WebRTC relay. Later calls reuse the session.

Configuration

Env varPurpose
RPI_CONNECT_ALLOWComma-separated name substrings. Only matching devices can be used
RPI_CONNECT_HEADED=1Show the browser window (debugging)
RPI_CONNECT_CHROMEPath to a Chrome binary
RPI_CONNECT_SESSIONPath to the saved session file
RPI_CONNECT_PROFILEChrome profile dir used by login

Tips

  • Commands that prompt for input (sudo password, editors, [Y/n]) will time out in run_command. Use send_keys / read_screen for those, or pass -y style flags.
  • For long jobs, start them with nohup … & and poll a log file instead of holding the call open.
  • Large outputs go through the terminal. Pipe them through head, tail or grep to keep them small.

Security

This hands an AI agent a real shell on your devices, with the privileges of the Connect user (often passwordless sudo).

  • Use RPI_CONNECT_ALLOW to limit which devices the agent can use, and keep your MCP client's per-call approval prompts on
  • Keep session.json private; anyone holding it can use your Connect account until the session expires
  • The server does not try to evade bot detection. If Cloudflare challenges the session, sign in again by hand

Development

scripts/probe.js [url] dumps the structure of a Connect page. scripts/probe-shell.js <device> inspects how the remote shell renders without typing anything. Both are useful when Connect's UI changes and the selectors in src/connect.js need updating.

License

MIT

Frequently asked questions

What is Raspberry Pi Connect (Raspi Connect / RPi Connect) MCP Server?

Raspi Connect MCP: shell access to Raspberry Pi devices via Raspberry Pi Connect web shell

How do I install Raspberry Pi Connect (Raspi Connect / RPi Connect) MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Raspberry Pi Connect (Raspi Connect / RPi Connect) MCP Server runs locally from the npm package raspberry-pi-connect-mcp with the command npx -y raspberry-pi-connect-mcp@0.2.1.

Is Raspberry Pi Connect (Raspi Connect / RPi Connect) MCP Server free and open source?

Yes. Raspberry Pi Connect (Raspi Connect / RPi Connect) MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does Raspberry Pi Connect (Raspi Connect / RPi Connect) MCP Server support remote (HTTP) connections?

No remote endpoint is listed for Raspberry Pi Connect (Raspi Connect / RPi Connect) MCP Server. It runs locally on your machine over stdio, started by your MCP client.

What tools does Raspberry Pi Connect (Raspi Connect / RPi Connect) MCP Server provide?

Raspberry Pi Connect (Raspi Connect / RPi Connect) MCP Server provides 1 tool: list_devices. See the full tool list for descriptions and parameters.

How is Raspberry Pi Connect (Raspi Connect / RPi Connect) MCP Server's trust score calculated?

Raspberry Pi Connect (Raspi Connect / RPi Connect) MCP Server scores 68 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server