Install
$ agentstack add mcp-h7ga40-pico-mcp ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
MCP for Raspberry Pi Pico W
LED Control via JSON-RPC
The firmware exposes JSON-RPC tools that can be invoked using the tools/call method. Use tools/list to discover available tools: set_location, set_switch_id, and set_switch. These allow you to configure the target switch and toggle the onboard LED.
Example requests:
{ "jsonrpc": "2.0", "method": "tools/call",
"params": { "name": "set_location", "arguments": { "location": "office" } },
"id": 1 }
{ "jsonrpc": "2.0", "method": "tools/call",
"params": { "name": "set_switch_id", "arguments": { "switch_id": "led" } },
"id": 2 }
{ "jsonrpc": "2.0", "method": "tools/call",
"params": { "name": "set_switch", "arguments": { "state": "on" } },
"id": 3 }
Call set_switch with "state": "on" or "off". The LED changes only when the request's location or switch_id matches the previously set values or when both fields are omitted.
How it works
Use the agent mode of Github copilot Chat in Visual Studio Code.
https://github.com/user-attachments/assets/7c040786-b527-4f8a-829e-545591232b0f
Installing the pico-sdk
The following is an excerpt from a previous setup guide.
- Create a working directory
``bash mkdir -p ~/.pico-sdk/sdk ``
- Download the latest release (2.1.1) from the official Raspberry Pi repository
``bash cd ~/.pico-sdk/sdk git clone -b 2.1.1 https://github.com/raspberrypi/pico-sdk.git 2.1.1 cd 2.1.1 git submodule update --init ``
- Set the
PICO_SDK_PATHenvironment variable
``bash export PICO_SDK_PATH=$HOME/.pico-sdk/sdk/2.1.1 ``
After verifying that the repository was cloned and its submodules were checked out, the pico-sdk will be available under ~/.pico-sdk/sdk/2.1.1.
Build Instructions
The commands below automatically fetch the Pico SDK and build the project.
mkdir build
cd build
cmake -E env PICO_SDK_FETCH_FROM_GIT=1 cmake ..
make -j$(nproc)
When the build succeeds, artifacts such as pico_mcp.uf2 are generated in the build directory.
Source & license
This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: h7ga40
- Source: h7ga40/pico_mcp
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.