AI & MCP

Use Pico Bay with Claude

Pico Bay includes an MCP server, so Claude can list your boards, read and write their files, run Python, reset them and install firmware, in plain conversation.

Add it to Claude Desktop

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

ctrlpi/claude-plugins

The marketplace appears as ctrlpi; install pico-bay from it. Connect a board with a USB data cable and ask. It runs with no web interface until you ask Claude to open it.

Add it to Claude Code

Run these two commands:

/plugin marketplace add ctrlpi/claude-plugins
/plugin install pico-bay@ctrlpi

Then just ask

"List every board connected right now, tell me which are Pico and which are ESP32, what firmware and version each one runs, and how much flash and RAM is still free."
"Read main.py from the Pico W, explain what it does, then fix the Wi-Fi reconnect logic so it retries instead of crashing, and write the corrected file back to the board."
"My new ESP32-S3 has no MicroPython on it yet. Put it into download mode, install the latest firmware, then check that it boots and shows up as a MicroPython board."
"Write a script that blinks the LED on the ESP32 every half second, save it as main.py, run it once to test, and then reset the board so it starts by itself."

What Claude can do

Fourteen tools. Claude calls pico_boards_list first, then passes the board it picked to the others.

Boards and firmware

  • pico_boards_listList connected boards, stable IDs, firmware details and capabilities.
  • pico_board_bootloaderPut a board into BOOTSEL or ESP32 download mode.
  • pico_installInstall MicroPython on a Pico in BOOTSEL mode or a supported ESP32 in download mode.
  • pico_ctrlpi_installInstall or update the ctrlPi API agent on a Pico W, Pico 2 W or a supported ESP32.
  • pico_uiOpen the web interface, or return its address when Pico Bay runs on another computer.

Files

  • pico_files_listList the board filesystem and report Flash and RAM usage.
  • pico_file_readRead a text or binary file as UTF-8 or base64.
  • pico_file_writeCreate or overwrite a file, up to 8 MB decoded.
  • pico_directory_createCreate a directory.
  • pico_path_renameRename or move a file or directory.
  • pico_path_deletePermanently delete a file, or a directory and everything in it.

Run and reset

  • pico_python_runRun a file as __main__, or execute Python code and return its output.
  • pico_board_interruptSend Ctrl-C to interrupt a running program.
  • pico_board_resetSoft-reset a board, or request a supported hard reset.

ZIP backup and restore, the live console and Delete all files are not offered to Claude on purpose.

Install & run on a Raspberry Pi or another machine

Start it there:

npx pico-bay

A Raspberry Pi serves MCP on the network by default; on another computer, add --mcp http --host 0.0.0.0.

On the desktop, install ctrlpi-remote from the same marketplace: it finds pico-bay on your network and claims its key the first time. See the README.

To keep it running, use PM2 or a similar process manager.

Key, no TLS. /mcp accepts only the claimed key, and the first caller to connect with a key of its own claims it, so claim it right after you start the server. The web interface has no key: disable it with --ui off, so nothing answers without the key. MCP tools can run Python on your boards, overwrite and delete files, install firmware, and reset boards. Plain HTTP: use a trusted local network only, and do not expose pico-bay's port to the internet.

Something not working? See Troubleshooting or the supported boards.