raspberry-pi-connect-mcp
Raspi Connect MCP / RPi Connect MCP server - gives AI agents (Claude Code, Codex, any MCP client) shell access to Raspberry Pi devices through the Raspberry Pi Connect web remote shell. No SSH, no port forwarding, no public IP.
Install / Use
claude mcp add kritzerenkrieg -- npx -y github:kritzerenkrieg/raspberry-pi-connect-mcpIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
Development & EngineeringSupported Platforms
Tags
Our assessment of raspberry-pi-connect-mcp
raspberry-pi-connect-mcp scores 78/100 on our quality scale, 3702nd of 4,715 Development & Engineering skills we index.
Its MCP Server is 5.8 KB long, well organised into 11 sections with 4 code examples: a solid amount of guidance for an agent.
It has 3 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated 4 days ago, so raspberry-pi-connect-mcp is actively maintained.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 92/100, with 1 caution from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands.
Automated pattern scan on 2026-11-23. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
raspberry-pi-connect-mcp compared with similar skills
All 4 of these similar skills score higher than raspberry-pi-connect-mcp; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| raspberry-pi-connect-mcp (this skill)by kritzerenkrieg | 78 | 3 | 4d ago | MCP Server |
| taste-skillby Leonxlnx | 100 | 120.4k | today | CLAUDE.md |
| Agent-Reachby Panniantong | 100 | 114.1k | 1d ago | CLAUDE.md |
| hyperframesby heygen-com | 100 | 88.6k | today | CLAUDE.md |
| rufloby ruvnet | 100 | 82.3k | today | CLAUDE.md |
Frequently asked questions
- How do I install raspberry-pi-connect-mcp?
- Run
claude mcp add kritzerenkrieg -- npx -y github:kritzerenkrieg/raspberry-pi-connect-mcp. The install tabs above show the steps for each supported agent. - Which AI agents does raspberry-pi-connect-mcp work with?
- It is written for Claude Code, Claude Desktop and OpenAI Codex, as a MCP Server file. Other agents that read the same format can often use it too.
- Is raspberry-pi-connect-mcp safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. It is MIT-licensed and scores 92/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is raspberry-pi-connect-mcp still maintained?
- The repository was last updated 4 days ago, so raspberry-pi-connect-mcp is actively maintained.
Skill content
View source on GitHubraspberry-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
| Tool | What it does |
|---|---|
| list_devices | Devices 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 |
| account | Which 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 var | Purpose |
|---|---|
| RPI_CONNECT_ALLOW | Comma-separated name substrings. Only matching devices can be used |
| RPI_CONNECT_HEADED=1 | Show the browser window (debugging) |
| RPI_CONNECT_CHROME | Path to a Chrome binary |
| RPI_CONNECT_SESSION | Path to the saved session file |
| RPI_CONNECT_PROFILE | Chrome profile dir used by login |
Tips
- Commands that prompt for input (sudo password, editors,
[Y/n]) will time out inrun_command. Usesend_keys/read_screenfor those, or pass-ystyle 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,tailorgrepto 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_ALLOWto limit which devices the agent can use, and keep your MCP client's per-call approval prompts on - Keep
session.jsonprivate; 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
Related Skills
taste-skill
120.4kAgent skills that give coding agents taste: art direction, reference images and a browser check instead of generic AI pages
Agent-Reach
114.1kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
hyperframes
88.6kOpen-source AI video editor: edit your own footage, or create and remake any video with Claude Code, Codex or the free Studio app. Write HTML, render MP4. By HeyGen.
ruflo
82.3k🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
