
MCP Server for WinDbg Crash Analysis
io.github.svnscha由 GitHub 账号 svnscha 发布v1.6.0更新于 Oct 24, 2026
A Model Context Protocol server for Windows crash dump analysis using WinDbg/CDB
概览
一个本地 MCP 服务器,通过驱动 WinDbg 的 cdb.exe 和 kd.exe,让助手分析 Windows 崩溃转储并调试活动的用户态或内核目标。
- 可以做什么
- 列出并打开目录中的崩溃转储(含内核转储),自动执行 !analyze -v、调用栈、模块和线程等初步分析,并可批量比较多个转储。连接到活动的用户态远程调试服务器,或通过 KDNET、命名管道、串口连接内核目标。在已打开的会话上运行任意 WinDbg/KD 命令,中断正在运行的目标,等待其再次停止,并关闭会话。可同时保持多个会话,每个会话用各自的会话 ID 区分。
- 适用场景
- 当你手上有 Windows .dmp 或内核转储,想让助手定位异常或蓝屏原因时适用;也适合中断活动的用户态或内核目标并用自然语言查看状态。还适用于批量筛查大量转储,或通过 HTTP 从另一台机器驱动调试主机。
- 运行要求
- 需要 Windows 以及 Debugging Tools for Windows 或 Microsoft Store 版 WinDbg,以提供 cdb.exe 和 kd.exe(会自动检测)。以本地 stdio 进程运行,可通过 uvx 或 pip 安装(需 Python 3.10 或更高版本),也可使用签名的独立可执行文件。可选环境变量 CDB_PATH 和 _NT_SYMBOL_PATH;符号默认从 Microsoft 符号服务器下载,可能需要网络访问。
安装
在 SourceWeft 中
- 打开 控制台中的 MCP Server for WinDbg Crash Analysis,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
MCP Server for WinDbg Crash Analysis
[CI] [Docs] [PyPI] [License: MIT] [Platform: Windows] [Python 3.10+]
A Model Context Protocol server that bridges AI models with WinDbg for crash dump analysis, user-mode remote debugging, and kernel debugging.
[!TIP] Looking for AI debugging built into WinDbg itself? Microsoft now ships an official WinDbg MCP, starting with WinDbg 1.2610.1001.0. You enable it in WinDbg's MCP service settings, and chat with your active debugging session from VS Code with GitHub Copilot or from the GitHub Copilot CLI. If that is what you want, start there:
- Introducing WinDbg MCP (announcement)
- Set up WinDbg MCP and the overview
- Get the latest WinDbg
This project is an independent, community-built alternative. It runs
cdb.exe/kd.exeheadless, so it fits when you want to use another MCP client, drive a debugger from another machine over HTTP, or script triage across many dumps without opening the WinDbg UI.
Overview
This server drives the Windows debuggers - CDB for user mode (dumps and -remote) and KD for kernel targets (-k) - so you can debug in natural language: "Show me the call stack and explain this access violation" or "Open a kernel session and tell me which driver bugchecked."
It is not a magical auto-fix. It is a Python wrapper around cdb.exe / kd.exe that lets an LLM run real debugger commands and reason about the output.
Features
- Crash dump analysis - open a
.dmp/.mdmp/.hdmpand get automated triage (!analyze -v, stacks, modules, threads) in a single call. - User-mode remote debugging - attach to a live
cdb/WinDbg debug server (-remote) over TCP, a named pipe, or COM, and break in on demand. - Kernel debugging - attach to a kernel target (
-k, driven bykd.exe) over KDNET, a named pipe, or serial; the server waits for the target and breaks in for you. - Run any WinDbg/KD command - drive an open session with arbitrary commands (
kb,!process 0 0,!heap,lm, ...) described in natural language. - Session ids - every open returns a session id; several sessions (dumps, remote, kernel) can be open at once and are addressed independently.
- Resilient live sessions - per-call timeouts, and a slow live command that outruns its timeout is broken into with CTRL+BREAK and the session resynchronized instead of wedging.
- Multi-dump triage - discover and compare many dumps across a directory.
- Text filter hooks - a
--filter-scriptcan redact PII/secrets from tool arguments and output before they leave the machine. - stdio or HTTP - run locally over stdio, or as a streamable-HTTP service you drive from another machine.
Use cases
Tools
Every open_* tool returns an opaque session_id (e.g. cdb-1a2b3c4d); pass it to the matching run_*, close_*, send_ctrl_break, and wait_for_break calls. User-mode targets (dumps and -remote) run under cdb.exe; kernel targets and kernel dumps run under kd.exe.
Parameters, timeouts, and the built-in triage prompts are in the tools reference.
Quick start
[!NOTE] Claude Code in enterprise environments: when managed settings define
allowedMcpServers, plugin-bundled MCP servers may be silently skipped (Claude Code issue #32882). I recommend installing and registering the server manually, then optionally adding the skills or agents plugin. The server must still be permitted by your organization's MCP policy.
Prerequisites
- Windows with Debugging Tools for Windows or WinDbg from the Microsoft Store, which ship
cdb.exeandkd.exe(auto-detected). - Any MCP-compatible client (Claude Code, GitHub Copilot, Claude Desktop, Cursor, Windsurf, Cline, ...).
Python is not a prerequisite in itself. Each route below states what it needs.
Install in Claude Code
Install the server plugin if needed, then optionally add skills, agents, or both:
Server with uvx
The shortest path: two lines, no pip install, no MCP configuration to edit. Adds the
eleven tools, with symbols preconfigured. Skills and agents are installed separately.
Needs uv, which supplies uvx: winget install astral-sh.uv. The
plugin uses it to fetch the pinned server from PyPI on first use, so there is nothing else to
install. See the plugin README for symbols and options.
Registering the server yourself
If you would rather not use the plugin, or you already run the package:
Needs Python 3.10 or higher. Add either optional plugin below for guided workflows or an agent.
Skills for an existing server
After installing the uvx plugin or registering mcp-windbg yourself, optionally add the four skills:
Invoke /mcp-windbg-skills:analyze-dump, /mcp-windbg-skills:debug-remote,
/mcp-windbg-skills:kernel-debug, or /mcp-windbg-skills:windbg-doctor.
This plugin uses your configured MCP connection and adds no server, runtime,
symbol settings, or crash-analyst agent. It works with a native executable,
Python installation, or HTTP service exposing the mcp-windbg tools.
Install this plugin alongside uvx for the server and skills together, or omit it to use just the tools.
When upgrading from a version that bundled skills, install this plugin to keep the workflows;
their invocation prefix changes from /mcp-windbg: to /mcp-windbg-skills:.
The server's built-in MCP prompts
remain available independently of these plugins. See the
plugin guide for updating or switching plugins.
Agents for an existing server
Ask: "Use the mcp-windbg-agents:crash-analyst agent on C:\dumps\app.dmp". It investigates the dump and returns a verdict, evidence, and next steps through your existing MCP connection. It requires neither uvx nor the skills plugin. When upgrading from a version that bundled the agent, install this plugin to keep it.
Install without Python
Every release attaches
mcp-windbg.exe: one signed executable carrying its own interpreter and every dependency.
cdb.exe is still required. Point your client's command at the file and give it no args.
The release also publishes SHA256SUMS, and the binary is code signed, so both are checkable:
Status should read Valid. The signer is Liasoft GmbH, which sponsors the signing
certificate; the project is written by Sven Scharmentke.
Install in another client
Needs Python 3.10 or higher. Then point the client at python -m mcp_windbg. For VS Code
(GitHub Copilot), press F1 and select MCP: Open User Configuration to enable it in every
workspace:
See the client configuration guide for Claude Desktop, Copilot CLI, Autohand Code, HTTP, and from-source setups.
Start debugging
Restart your client, then ask for what you want:
Server options (--cdb-path, --kd-path, --symbols-path, --filter-script, --transport, ...) are documented in the command-line reference.
Documentation
Blog
Read about the development journey: The Future of Crash Analysis: AI Meets WinDbg
License
MIT
来源:README.md,提交 48e4350
工具
0版本历史
6- v1.6.0最新Oct 24, 2026
- v1.5.1Oct 10, 2026
- v1.5.0Oct 9, 2026
- v1.4.0Oct 1, 2026
- v1.3.1Sep 30, 2026
- v0.12.2Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分