VSCode Debug MCP
An MCP server and VS Code extension that enables AI clients to interactively debug code using breakpoints, execution control, and state inspection. It is language-agnostic and works with any debugger that supports VS Code's launch.json configurations.
README
<img src="./images/vscode-debug-mcp-logo-128.png" width="64" height="64" alt="VSCode Debug MCP" align="center"> VSCode Debug MCP
Enable an MCP Client to interactively debug code with breakpoints, expression evaluation, and program launching.
This is an MCP server and VS Code extension that exposes debugging capabilities via the Model Context Protocol. It's language-agnostic — it works with any debugger that has a valid launch.json in VS Code.
Tools
| Tool | Actions | Description |
|---|---|---|
debug_execute |
launch, stop, continue, stepOver, stepIn, stepOut | Control program execution during debugging |
debug_breakpoints |
set, remove, list | Manage breakpoints with support for conditions, hit counts, and log messages |
debug_inspect |
evaluate, stackTrace | Inspect program state while paused at a breakpoint |
Getting Started
- Download the extension from releases
- Install the extension
- If using
.vsixdirectly, go to the three dots in "Extensions" in VS Code and choose "Install from VSIX..."
- If using
- Once installed, you'll see an "MCP Debug Server" panel in the Debug tab showing the server status, stdio path, and SSE address.

Claude Code
- Copy the ready-to-paste setup command using the "Copy Claude Code Setup Command" button in the Debug tab's MCP Debug Server panel, or via the VS Code command palette ("VSCode Debug MCP: Copy Claude Code Setup Command").
- Paste and run it in your terminal:
claude mcp add --transport stdio vscode-debug -- node /path/to/mcp-debug.js
Or add it to your project's .mcp.json:
{
"mcpServers": {
"vscode-debug": {
"command": "node",
"args": ["/path/to/mcp-debug.js"]
}
}
}
GitHub Copilot
- Copy the stdio server path to your clipboard using the VS Code command "Copy MCP Debug Server stdio path to clipboard"
- Open the VS Code command palette and run "MCP: Open Workspace Folder Configuration" to edit
.vscode/mcp.json, then add:
{
"servers": {
"vscode-debug": {
"type": "stdio",
"command": "node",
"args": ["/path/to/mcp-debug.js"]
}
}
}
Configuration
mcpDebug.port— Server port (default:4711)mcpDebug.autostart— Automatically start the server on activation (default:true)
When multiple VS Code windows are open, the extension handles graceful hand-off of the MCP server between windows.
Architecture
graph LR
subgraph MCP Clients
A[Claude Code / stdio client]
B[Cursor / SSE client]
end
subgraph Stdio Bridge
C[mcp-debug.js]
end
subgraph VS Code Extension
D[DebugServer]
E[VS Code Debug API]
end
F[Any Debugger<br/>Python, Node.js, C++, Go, ...]
A -- stdio --> C
C -- HTTP POST /tcp --> D
B -- SSE /sse --> D
D --> E
E --> F
The extension provides two ways for MCP clients to connect:
- Stdio — A standalone Node.js bridge process (
mcp-debug.js) receives MCP requests over stdio and forwards them via HTTP to the extension's debug server. Used by Claude Code and other stdio-based clients. - SSE — Clients connect directly to the extension's SSE endpoint. Used by Cursor and other SSE-capable clients.
Both paths use the VS Code Debug API under the hood, which means the extension works with any language/debugger that supports launch.json configurations (Python, Node.js, C++, Go, etc.).
Developing
- Clone and open this repo in VS Code
- Install dependencies:
npm install && cd mcp && npm install && cd .. - Build:
npm run compile - Press F5 to launch the extension in a new VS Code window
- Rebuild after changes:
npm run compile
Packaging
vsce package
Release Process
This project uses conventional commits and release-please for automated versioning and releases.
Commit Messages
All commits should follow the conventional commits format:
fix:— Bug fixes (patch version bump)feat:— New features (minor version bump)feat!:/fix!:/refactor!:— Breaking changes (major version bump)chore:,docs:,refactor:,test:— No version bump
PR Testing
Every pull request automatically builds a .vsix artifact via CI. Download it from the GitHub Actions "Artifacts" section on the PR's checks to install and test the extension locally before merging.
Releasing
When conventional commits are pushed to main, release-please automatically opens (or updates) a Release PR with a version bump and changelog entry. Merging that PR creates a GitHub release and builds the final .vsix, which is uploaded to the release assets.
Acknowledgements
This project is a fork of Claude Debugs For You by Jason McGhee. Thank you for creating the original extension and MCP server that this project builds upon.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。