
DebugMCP
by microsoft·★ 349·Score 53
DebugMCP enables AI agents to debug code in VS Code with breakpoints, stepping, and variable inspection.
Overview
DebugMCP is a comprehensive MCP server from Microsoft that provides AI coding agents full control over the VS Code debugger. It allows autonomous debugging through tools for setting breakpoints, stepping through code, inspecting variables, and evaluating expressions across multiple programming languages. The extension runs locally with zero configuration and works seamlessly with any MCP-compatible AI assistant including GitHub Copilot, Cursor, Cline, and others.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose DebugMCP when you need AI agents to perform real debugging operations in VS Code, including breakpoints, stepping through code, and inspecting variables.
When NOT to choose this
Avoid if you need debugging capabilities outside of VS Code or require integration with non-MCP-based AI assistants.
Tools this server exposes
12 tools extracted from the READMEget_debug_instructionsGet the debugging guide with best practices and workflow instructions
start_debuggingstart_debugging(fileFullPath, workingDirectory, testName?, configurationName?)Start a debug session for a source code file
stop_debuggingStop the current debug session
step_overExecute the next line (step over function calls)
step_intoStep into function calls
step_outStep out of the current function
continue_executionContinue until next breakpoint
restart_debuggingRestart the current debug session
add_breakpointadd_breakpoint(fileFullPath, lineContent)Add a breakpoint at a specific line
remove_breakpointremove_breakpoint(fileFullPath, line)Remove a breakpoint from a specific line
clear_all_breakpointsRemove all breakpoints at once
get_variables_valuesget_variables_values(scope?)Get variables and their values at current execution point
Comparable tools
Installation
Installation
**Option 1: VS Code Marketplace**
- Visit: [https://marketplace.visualstudio.com/items?itemName=ozzafar.debugmcpextension](https://marketplace.visualstudio.com/items?itemName=ozzafar.debugmcpextension)
- Click "Install"
**Option 2: Direct Link**
- Copy and paste in your browser:
vscode:extension/ozzafar.debugmcpextension
**Option 3: Within VS Code**
- Open VS Code
- Go to Extensions (Ctrl+Shift+X / Cmd+Shift+X)
- Search for "DebugMCP"
- Click Install
**Manual MCP Server Registration** Add to your AI assistant's configuration:
{
"mcpServers": {
"debugmcp": {
"type": "http",
"url": "http://localhost:3001/mcp",
"description": "DebugMCP - AI-powered debugging assistant"
}
}
}FAQ
- Which AI assistants are supported?
- DebugMCP works with any MCP-compatible AI assistant including GitHub Copilot, GitHub Copilot CLI, Cline, Cursor, Codex, Windsurf, Roo Code, Antigravity, and others.
- Which programming languages are supported?
- DebugMCP supports Python, JavaScript/TypeScript, Java, C#, C++, Go, Rust, PHP, and Ruby with their respective VS Code extensions.
Compare DebugMCP with
Last updated · Auto-generated from public README + GitHub signals.