Skip to main content
Glama

ctrlPi Remote

Version 0.9.52 Node 20+ Protocol: MCP License: MIT Status: Beta Build Status

Use ctrlpi-mcp, pico-bay and pi-bay running on a Raspberry Pi (or any other machine on your LAN) from Claude on your desktop.

ctrlpi-remote is a small stdio MCP server that runs on your desktop and forwards each tool call to the right server on the Pi. It finds the servers by itself, gives each a random key the first time, and from then on talks to each with its key only. Zero npm dependencies.

[Claude Desktop / Claude Code]
        │  MCP over stdio
        ▼
   [ctrlpi-remote]  (your desktop)
        │  MCP over HTTP, Api-Key
        ▼
   [ctrlpi-mcp :8315]  [pico-bay :7426]  [pi-bay :3141]  (Raspberry Pis on your LAN)

Requirements

  • Node.js 20 or newer.

  • macOS, Windows, Linux or Raspberry Pi OS.

  • On the Pi: any of ctrlpi-mcp, pico-bay and pi-bay, 0.9.50 or newer, with its HTTP MCP on:

    • npx ctrlpi-mcp --mcp http (port 8315)

    • npx pico-bay (port 7426)

    • npx pi-bay (port 3141)

    A Raspberry Pi serves the bays' MCP on the network by default; on another computer, add --mcp http --host 0.0.0.0. The bays' web interface has no key: disable it with --ui off.

Related MCP server: slack-mcp-claude-auth

Install

In Claude Desktop, open Plugins in the sidebar, choose Add > Add marketplace and enter:

ctrlpi/claude-plugins

The marketplace appears as ctrlpi; install ctrlpi-remote from it.

By hand, in any MCP client's config:

{
  "mcpServers": {
    "ctrlpi-remote": {
      "command": "npx",
      "args": ["-y", "ctrlpi-remote@0.9.52"]
    }
  }
}

Add "pico-bay" (or "ctrlpi-mcp", "pi-bay") after the version to use that server only.

Usage

ctrlpi-remote [ctrlpi-mcp | pico-bay | pi-bay] [--host ADDRESS] [--port PORT] [--config PATH] [--rotate-keys]

With no server named, it uses all three, or the ones in targets in remote-config.json.

Flag

Effect

--host ADDRESS

Use the servers at this address; no LAN search.

--port PORT

Their port, with a server named (default 8315, 7426 or 3141).

--config PATH

A folder holding remote-config.json, or that file itself. Default ~/.ctrlpi/.

--rotate-keys

Give each saved server a new random key, save it, and exit.

There is no key flag: a key on the command line would show in the process list and in the MCP client's config.

How it works

  1. Find. It checks the addresses saved in ~/.ctrlpi/remote-config.json with GET /hello. When nothing is saved, or a saved address no longer answers, it searches your /24 for each server, on its port.

  2. Claim. A server still on its default key (/hello says "key": false) gets a new random key. The key is saved, then sent; from then on the server accepts only that key. A server already claimed by someone else is skipped: put its key in remote-config.json to use it.

  3. Forward. Claude sees the tools of every server found in one list: mcp_* (ctrlpi-mcp), pico_* (pico-bay) and pi_* (pi-bay). Each call goes to its server's POST /mcp with Api-Key, the session id, and the protocol headers the server checks. Calls run side by side, with no time limit (firmware installs and long commands take minutes).

A server that moved to a new address is found again with its key. The saved key is sent to a new address only once the old one is confirmed dead.

It searches at start only. A server started later is found when Claude calls remote_rescan, and Claude is told the tools changed (some apps need a restart to show them). Two tools of its own answer what Claude cannot see otherwise:

Tool

What it does

remote_servers_list

The servers in use, and why one is missing: claimed by another computer, MCP switched off, not answering, or turned off in remote-config.json.

remote_rescan

Searches the LAN again, for a server started or moved since, and returns the same list.

If no server can be reached, ctrlpi-remote still starts with these two tools and answers each call with the reason, so Claude can tell you what is wrong.

The web interfaces

pico_ui and pi_ui run on the Pi, which cannot open your browser: they answer with the address to open. ctrlpi-remote opens it in the browser on your desktop, but only when that address is the server that answered, and only on a desktop session (not over SSH). The web interfaces have no key; with --ui off on the Pi they are off and the tools refuse.

Several Pis

pico-bay and pi-bay found on more than one Pi are all claimed, each with its own key, and shown to Claude as one set of tools with a host argument. pico_boards_list and pi_devices_list without host ask every Pi and return the results by host.

ctrlpi-mcp is different: two of them on one LAN would drive the same agents, so only the first one found is used, and the others are named in the log.

Local and remote together

Server

Remote alongside its local plugin?

pico-bay

Yes: the boards on the Pi are different from the ones on your desktop.

ctrlpi-mcp

No: both would control the same agents. Use one.

pi-bay

No: both would reach the same devices. Use one.

To leave a server out, list the ones to use in remote-config.json (below).

Config: ~/.ctrlpi/remote-config.json

A list per target, one entry per server, each with its own key, and optionally targets, the servers to use (all three without it):

{
  "targets": ["ctrlpi-mcp", "pico-bay"],
  "pico-bay": [
    { "ip": "PI_HOST_ADDR", "port": 7426, "api_key": "...", "key_set": "2026-11-22 10:00:00", "updated_at": "2026-11-22 10:00:00" }
  ]
}

The file is readable by you only. A server set up by hand (its key already known) can be added here with ip, port and api_key.

Keys on the server side

Each server keeps its key in its own file in ~/.ctrlpi/ on the Pi: mcp-config.json (ctrlpi-mcp), pico-bay-config.json, pi-bay-config.json, as {"mcp": {"api_key": "...", "key_set": "..."}}.

  • GET /hello (no key) answers {"service": "pico-bay", "key": true}; key is false while the server is still on its default key, your-mcp-key.

  • POST /remote-config with the current key in Api-Key and {"api_key": "<new>"} changes it. --rotate-keys uses it.

  • Lost the key? Remove mcp.api_key from that file on the Pi and restart the server: it is back on the default and can be claimed again.

Security

  • Plain HTTP: the key crosses your LAN unencrypted, as the agents' keys do. Use it on trusted networks only.

  • The key never reaches the model: it is not a tool argument, and changing it is not an MCP tool.

  • Logs go to stderr only; stdout carries MCP messages.

Tests

Run the test suite with:

npm test

The test suite runs against fake servers on 127.0.0.1 (CTRLPI_REMOTE_SCAN_LAN=0 keeps the search on localhost), and against the real ctrlpi-mcp, pico-bay and pi-bay when they sit next to this folder. It needs no Pi on the network.

License

MIT

Available Tools

2 tools
remote_rescanA

Search the LAN again for ctrlpi-mcp, pico-bay and pi-bay servers started or moved since, and return what remote_servers_list returns.

Inputs: no named parameters.

remote_servers_listA
Read-only

List the ctrlpi-mcp, pico-bay and pi-bay servers found on the LAN and in use, and why any is missing (claimed by another computer, MCP switched off, not answering, turned off in remote-config.json).

Inputs: no named parameters.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 2 tools

    Disambiguation4/5

    The two tools are mostly distinct: one lists known LAN servers and one actively rescans. However, rescan explicitly returns what remote_servers_list returns, so the boundary is mainly about whether a fresh scan is triggered, which could still confuse selection.

    Naming Consistency3/5

    Both names use snake_case and a remote_ prefix, but the structure is inconsistent: remote_servers_list follows remote_<noun>_<action> while remote_rescan follows remote_<action>. The pattern is readable but not fully predictable.

    Tool Count3/5

    Two tools is thin for a server named ctrlpi-remote, even if the intended scope is only LAN discovery. The set covers listing and rescanning but offers no way to inspect or act on a single discovered server.

    Completeness3/5

    The discovery surface is covered by list and rescan, including reasons for missing servers. But there are notable gaps: no tool to inspect a specific server, no way to change remote-config.json, and no operation to resolve missing-server conditions.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      Not graded
      maintenance
      Bridges STDIO-based MCP clients with SSE-based MCP servers, allowing applications like Claude Desktop to connect to remote MCP servers that use SSE transport.
      9
      -
    • F
      license
      Not graded
      quality
      D
      maintenance
      Local stdio MCP proxy for the official Slack MCP endpoint, using Claude's Slack plugin for authentication to enable Slack integration via MCP without needing a custom Slack app.
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Unofficial stdio MCP proxy for Anthropic's Claude Design MCP. Enables using Claude Design with any MCP host like Cursor, Claude Code, or Codex.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Acts as a stdio-to-HTTP proxy for the 1C runtime-MCP service, enabling MCP clients like Claude Desktop to interact with 1C tools.
      MIT