Skip to content
VS Code

Arduino MCP Server for VS Code

io.github.hardware-mcp/arduino-mcp-server

Arduino MCP server for CLI setup, board detection, compile/upload, serial monitoring, and pin refs.

client:VS Code transport:stdio runtime:npm

Install Arduino MCP Server in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "arduino-cli-path",
      "description": "ARDUINO_CLI_PATH",
      "password": true
    },
    {
      "type": "promptString",
      "id": "arduino-sketch-root",
      "description": "ARDUINO_SKETCH_ROOT",
      "password": true
    }
  ],
  "servers": {
    "arduino-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "arduino-mcp-server"
      ],
      "env": {
        "ARDUINO_CLI_PATH": "${input:arduino-cli-path}",
        "ARDUINO_SKETCH_ROOT": "${input:arduino-sketch-root}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

Arduino MCP Server in other clients