# Pico Mcp

> MCP for Raspberry Pi Pico

- **Type:** MCP server
- **Install:** `agentstack add mcp-h7ga40-pico-mcp`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [h7ga40](https://agentstack.voostack.com/s/h7ga40)
- **Installs:** 0
- **Category:** [Integrations](https://agentstack.voostack.com/c/integrations)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [h7ga40](https://github.com/h7ga40)
- **Source:** https://github.com/h7ga40/pico_mcp

## Install

```sh
agentstack add mcp-h7ga40-pico-mcp
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## 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:

```json
{ "jsonrpc": "2.0", "method": "tools/call",
  "params": { "name": "set_location", "arguments": { "location": "office" } },
  "id": 1 }
```

```json
{ "jsonrpc": "2.0", "method": "tools/call",
  "params": { "name": "set_switch_id", "arguments": { "switch_id": "led" } },
  "id": 2 }
```

```json
{ "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.

1. Create a working directory

   ```bash
   mkdir -p ~/.pico-sdk/sdk
   ```

2. 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
   ```

3. Set the `PICO_SDK_PATH` environment 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.

```bash
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](https://github.com/h7ga40)
- **Source:** [h7ga40/pico_mcp](https://github.com/h7ga40/pico_mcp)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/mcp-h7ga40-pico-mcp
- Seller: https://agentstack.voostack.com/s/h7ga40
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
