Skip to content
VS Code

OpenOCD Debugger for VS Code

io.github.microhenrio/openocd-mcp

Debug microcontrollers via OpenOCD: flash, breakpoints, memory, registers and variables.

client:VS Code transport:stdio runtime:pypi

Install OpenOCD Debugger in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "openocd-bin",
      "description": "OPENOCD_BIN",
      "password": true
    },
    {
      "type": "promptString",
      "id": "openocd-mcp-config",
      "description": "OPENOCD_MCP_CONFIG",
      "password": true
    },
    {
      "type": "promptString",
      "id": "openocd-mcp-readonly",
      "description": "OPENOCD_MCP_READONLY",
      "password": true
    }
  ],
  "servers": {
    "openocd-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "openocd-mcp"
      ],
      "env": {
        "OPENOCD_BIN": "${input:openocd-bin}",
        "OPENOCD_MCP_CONFIG": "${input:openocd-mcp-config}",
        "OPENOCD_MCP_READONLY": "${input:openocd-mcp-readonly}"
      }
    }
  }
}

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

OpenOCD Debugger in other clients