Windbg
An MCP (Model Context Protocol) server that turns all pybag Windows debugger functions into native MCP tools. It lets MCP-compatible clients (Claude Desktop, Claude Code, Cowork, OpenAI Codex CLI, Cursor, and custom agents) control user-mode processe
What is Windbg?
Windbg is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to mcp (model context protocol) server that turns all pybag windows debugger functions into native mcp tools. it lets mcp-compatible clients (claude desktop, claude code, cowork, openai codex cli, cursor...
An MCP (Model Context Protocol) server that turns all pybag Windows debugger functions into native MCP tools. It lets MCP-compatible clients (Claude Desktop, Claude Code, Cowork, OpenAI Codex CLI, Cursor, and custom agents) control user-mode processe
This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- An MCP (Model Context Protocol) server that turns all pybag
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx windbgConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use Windbg
WinDbg MCP Server is a Windows-only MCP server that wraps the pybag Python library to expose all Windows Debugger (WinDbg) functions as typed MCP tools with structured JSON responses. It gives any MCP-compatible client — including Claude Desktop, Claude Code, Cursor, and OpenAI Codex CLI — full programmatic control over user-mode processes, kernel debugging sessions, and crash dump analysis through 55 distinct tool calls covering session management, breakpoints, memory, registers, threads, modules, and symbol resolution. Security researchers, reverse engineers, and Windows developers use it to drive post-mortem crash analysis and live debugging from an AI assistant.
Prerequisites
- Windows operating system (pybag only works on Windows)
- Python 3.10 or higher installed
- Microsoft Debugging Tools for Windows installed as part of the Windows SDK (download from Microsoft's website)
- pybag and mcp Python packages installed
- An MCP-compatible client such as Claude Desktop or Claude Code
Install Microsoft Debugging Tools for Windows
Download and install the Windows SDK from Microsoft. During installation, select 'Debugging Tools for Windows'. This provides WinDbg and the underlying dbgeng.dll that pybag requires. The typical install path is C:\Program Files (x86)\Windows Kits\10\Debuggers.
Clone the repository
Clone the windbg-mcp repository to a local directory. Avoid paths with spaces to prevent issues with the Python command in MCP config.
git clone https://github.com/gengstah/windbg-mcp.git
cd windbg-mcpInstall Python dependencies
Install pybag and the MCP SDK. Run this in a Command Prompt or PowerShell window with Python in the PATH.
pip install pybag mcpConfigure Claude Desktop to launch the MCP server
Edit %APPDATA%\Claude\claude_desktop_config.json to add the windbg-mcp server entry. Replace the path with the actual location where you cloned the repository.
Restart Claude Desktop and verify the server loads
After saving the config, restart Claude Desktop. Open a new chat and ask it to list available debugger tools or call 'status' to confirm the WinDbg MCP server is connected.
Attach to a process or load a crash dump
Use the exposed tools to start a debugging session. You can attach to a running process by PID, launch a new process under the debugger, or load a .dmp file for post-mortem analysis.
Windbg Examples
Client configuration
Add this to %APPDATA%\Claude\claude_desktop_config.json on Windows. Adjust the path to match your actual clone location.
{
"mcpServers": {
"windbg-mcp": {
"command": "python",
"args": ["C:\\path\\to\\windbg-mcp\\windbg_mcp.py"]
}
}
}Prompts to try
Once the server is connected, drive WinDbg through natural language prompts.
- "List all running processes I can attach to"
- "Attach to process ID 1234 and show me its loaded modules"
- "Load the crash dump at C:\\dumps\\app.dmp and show me the call stack"
- "Set a breakpoint at kernel32!CreateFileW and continue execution"
- "Read 64 bytes of memory at address 0x7FF800000000"Troubleshooting Windbg
pybag import fails with DLL load error or 'dbgeng.dll not found'
Ensure Microsoft Debugging Tools for Windows are installed via the Windows SDK installer. pybag looks for dbgeng.dll in the Debuggers directory. You may also need to add the Debuggers\x64 folder to your PATH environment variable.
Claude Desktop shows the MCP server as disconnected
Test the server directly: open a Command Prompt and run 'python C:\path\to\windbg-mcp\windbg_mcp.py'. Fix any import or path errors shown, then restart Claude Desktop. Ensure Python is in the system PATH, not just a virtual environment.
Attaching to a process fails with access denied
Run Claude Desktop (and therefore the windbg_mcp.py server) as Administrator. Attaching to system processes or 64-bit processes from a 32-bit debugger also requires elevation.
Frequently Asked Questions about Windbg
What is Windbg?
Windbg is a Model Context Protocol (MCP) server that mcp (model context protocol) server that turns all pybag windows debugger functions into native mcp tools. it lets mcp-compatible clients (claude desktop, claude code, cowork, openai codex cli, cursor, and custom agents) control user-mode processe It connects AI assistants to external tools and data sources through a standardized interface.
How do I install Windbg?
Follow the installation instructions on the Windbg GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with Windbg?
Windbg works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is Windbg free to use?
Yes, Windbg is open source and available under the MIT license. You can use it freely in both personal and commercial projects.
Windbg Alternatives — Similar Developer Tools Servers
Looking for alternatives to Windbg? Here are other popular developer tools servers you can use with Claude, Cursor, and VS Code.
Ecc
★ 188.2kThe agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
Javaguide
★ 155.8kJava 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发
Gemini CLI
★ 104.5kA secure MCP server that wraps the Google Gemini CLI, allowing clients to query Gemini models using local OAuth sessions without requiring an API key. It provides tools for model interaction and diagnostics with built-in protection against command in
Awesome MCP Servers
★ 87.3k⭐ Curated list of Model Context Protocol (MCP) servers - tools that extend Claude Desktop, Cursor, Windsurf, and other MCP clients with custom capabilities.
MCP Servers
★ 86.0kModel Context Protocol Servers
CC Switch
★ 77.5kA cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Gemini CLI & Hermes Agent. Only official website: ccswitch.io
Browse More Developer Tools MCP Servers
Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up Windbg in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use Windbg?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.