openocd-mcp is a lightweight Model Context Protocol (MCP) server that lets your AI assistant interact directly with microcontrollers through OpenOCD.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add openocd-debugger -- uvx openocd-mcp~/.codex/config.toml
[mcp_servers.openocd-debugger]
command = "uvx"
args = ["openocd-mcp"]
# codex mcp add openocd-debugger -- uvx openocd-mcp~/.cursor/mcp.json
{
"mcpServers": {
"openocd-debugger": {
"command": "uvx",
"args": [
"openocd-mcp"
]
}
}
}.vscode/mcp.json
{
"servers": {
"openocd-debugger": {
"type": "stdio",
"command": "uvx",
"args": [
"openocd-mcp"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"openocd-debugger": {
"command": "uvx",
"args": [
"openocd-mcp"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"openocd-debugger": {
"command": "uvx",
"args": [
"openocd-mcp"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"openocd-debugger": {
"command": "uvx",
"args": [
"openocd-mcp"
]
}
}
}