MCP Server for WinDbg Crash Analysis
Lets your AI agent analyze Windows crash dumps and debug live or kernel targets by running WinDbg and CDB commands.
1.7k stars on GitHubby Sven Scharmentke (svnscha)License MITUpdated 26 days ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add windbg -- uvx mcp-windbg
What to fill in
| Name | What it is | Required |
|---|---|---|
CDB_PATH | Custom path to cdb.exe (optional) | No |
_NT_SYMBOL_PATH | Symbol path for Windows debugging (optional, defaults to Microsoft symbol server) | No |
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Analyze the crash dump at C:\dumps\app.dmp.
Open a kernel session on net:port=50000,key=1.2.3.4, run !analyze -v, and tell me which driver bugchecked.
What it is
This server drives the Windows debuggers CDB (user mode) and KD (kernel) so your AI agent can open crash dumps, attach to live targets and run real debugger commands. You can ask in plain words for a call stack or the cause of an access violation. The agent reasons about the debugger output.
What it can do
list_dumps: list crash dump files in a folderopen_cdb_dump: open and triage a crash dumpopen_cdb_remote: attach to a user-mode remote debug serveropen_kd_sessionandopen_kd_dump: kernel targets and kernel dumpsrun_cdb_commandandrun_kd_command: run debugger commandssend_ctrl_break: break into a running live session
When to use
- βΊWhen you have a .dmp file from a crash or blue screen and want the root cause.
- βΊWhen you need to look at a hung process or a live kernel target.
- βΊWhen you have a folder of dumps and want to find the common signature.
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
debuggingHas your agent investigate and fix errors in any type of code or program. Helps find the cause of crashes, slowdowns, or unexpected behaviors.debug-with-sentryFinds the root cause of a production error using Sentry's stack traces and events, and separates where a crash happens from what triggered it.reverser-rootkit-analysisHelps your agent detect and analyze rootkits that hide deep inside a computer, from kernel drivers to firmware, using standard forensic tools.Frequently asked questions
Is it free and open source?
Yes, the project is open source under the license in the repository and is published on PyPI.
Is it made by Microsoft?
No. It is an independent community project. The readme points to Microsoft's own WinDbg MCP if you want AI built into WinDbg itself.
Which agents does it work with?
Any MCP client, such as Claude Code, GitHub Copilot, Claude Desktop, Cursor, Windsurf and Cline.
Can I hide secrets in dumps?
Yes. A --filter-script can redact PII and secrets from tool arguments and output before they leave the machine.
Can I use it from another machine?
Yes, it can run as a streamable-HTTP service as well as over stdio.
Will it fix the bug for me?
The readme says it is not an auto-fix. It lets the AI run real debugger commands and reason about the output.
If it does not work
- βΊInstall Debugging Tools for Windows or WinDbg so cdb.exe and kd.exe exist; use --cdb-path or --kd-path if they are not found.
- βΊSet _NT_SYMBOL_PATH to a symbol server such as SRV*C:\Symbols*https://msdl.microsoft.com/download/symbols.
- βΊIf you use the uvx plugin, install uv first with winget install astral-sh.uv.
5 new skills a week. 1 minute to read.