MCP Server Studio
PlatformIO for AI agents: build, flash, serial monitor, tests, crash decoding, size reports.
Registry name: io.github.powerdragonfire/platformio.mcp
Add to claude_desktop_config.json:
{
"mcpServers": {
"platformio-mcp": {
"command": "uvx",
"args": [
"platformio.mcp==0.1.0"
],
"env": {
"PLATFORMIO_MCP_POLICY": "<PLATFORMIO_MCP_POLICY>",
"PLATFORMIO_MCP_PROJECT_DIR": "<PLATFORMIO_MCP_PROJECT_DIR>",
"PLATFORMIO_MCP_PIO": "<PLATFORMIO_MCP_PIO>"
}
}
}
}Run in your terminal:
claude mcp add platformio-mcp -e PLATFORMIO_MCP_POLICY='<PLATFORMIO_MCP_POLICY>' -e PLATFORMIO_MCP_PROJECT_DIR='<PLATFORMIO_MCP_PROJECT_DIR>' -e PLATFORMIO_MCP_PIO='<PLATFORMIO_MCP_PIO>' -- uvx platformio.mcp==0.1.0Add to .cursor/mcp.json:
{
"mcpServers": {
"platformio-mcp": {
"command": "uvx",
"args": [
"platformio.mcp==0.1.0"
],
"env": {
"PLATFORMIO_MCP_POLICY": "<PLATFORMIO_MCP_POLICY>",
"PLATFORMIO_MCP_PROJECT_DIR": "<PLATFORMIO_MCP_PROJECT_DIR>",
"PLATFORMIO_MCP_PIO": "<PLATFORMIO_MCP_PIO>"
}
}
}
}Add to .vscode/mcp.json:
{
"servers": {
"platformio-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"platformio.mcp==0.1.0"
],
"env": {
"PLATFORMIO_MCP_POLICY": "<PLATFORMIO_MCP_POLICY>",
"PLATFORMIO_MCP_PROJECT_DIR": "<PLATFORMIO_MCP_PROJECT_DIR>",
"PLATFORMIO_MCP_PIO": "<PLATFORMIO_MCP_PIO>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"platformio-mcp": {
"command": "uvx",
"args": [
"platformio.mcp==0.1.0"
],
"env": {
"PLATFORMIO_MCP_POLICY": "<PLATFORMIO_MCP_POLICY>",
"PLATFORMIO_MCP_PROJECT_DIR": "<PLATFORMIO_MCP_PROJECT_DIR>",
"PLATFORMIO_MCP_PIO": "<PLATFORMIO_MCP_PIO>"
}
}
}
}| Name | Required | What it is |
|---|---|---|
PLATFORMIO_MCP_POLICY | No | full (default), build_only, or read_only |
PLATFORMIO_MCP_PROJECT_DIR | No | Default project directory when a tool is called without project_dir |
PLATFORMIO_MCP_PIO | No | Explicit path to the pio executable (auto-detected otherwise) |