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

已驗證STDIO僅桌面開發者工具安全與監控

概覽

AI 產生的概覽

一個本機 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 符號伺服器下載,可能需要網路存取。
安裝前請注意
此伺服器會在你的機器上執行真實的偵錯器命令,並可附加到執行中的目標;關閉核心工作階段會恢復目標機器執行。偵錯器輸出可能包含機密或個人資料,可選用過濾腳本在資料送給模型前進行去識別化。符號解析可能連線到 Microsoft 符號伺服器。這是獨立的社群專案,並非微軟官方的 WinDbg MCP。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 MCP Server for WinDbg Crash Analysis,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

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:

This project is an independent, community-built alternative. It runs cdb.exe / kd.exe headless, 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/.hdmp and 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 by kd.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-script can 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

You haveYou want toGuide
A .dmp from a crash or a blue screenRoot-cause it: exception or bugcheck, faulting frame, why it happenedAnalyze a crash dump
A live user-mode process (via cdb -server)Break in and inspect a hang or live stateDebug a remote target
A KD-enabled machine or VMDebug drivers, bugchecks, and boot-time issuesDebug a kernel target
A folder full of dumpsTriage the batch and find the common signatureTriage multiple dumps
A debugging host, but you work elsewhereDrive it over HTTP from another machineDebug from another machine
Dumps with secrets or PIIScrub tool output before it leaves the boxRedact sensitive data

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.

ToolPurpose
list_dumpsList crash dump files in a directory
open_cdb_dumpOpen and triage a crash dump
open_cdb_remoteAttach to a user-mode remote debug server (-remote)
open_kd_sessionAttach to a kernel target (-k, KDNET / named pipe / serial)
open_kd_dumpOpen and triage a kernel crash dump (MEMORY.DMP, minidump)
run_cdb_commandRun a command on a user-mode session
run_kd_commandRun a command on a kernel session
close_cdb_sessionClose a user-mode session
close_kd_sessionClose a kernel session (resumes the target machine)
send_ctrl_breakBreak into a running live session
wait_for_breakWait for a target you resumed with g to stop again

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

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:

PluginServerIncluded workflows
mcp-windbg-uvxLaunched by the plugin with uvxMCP tools only
mcp-windbg-skillsUses the uvx plugin or your own MCP connectionFour optional skills
mcp-windbg-agentsUses the uvx plugin or your own MCP connectionOptional crash-analyst agent

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.

/plugin marketplace add svnscha/mcp-windbg/plugin install mcp-windbg-uvx@mcp-windbg

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:

bash
pip install mcp-windbgclaude mcp add mcp-windbg -s user -e _NT_SYMBOL_PATH="SRV*C:\Symbols*https://msdl.microsoft.com/download/symbols" -- python -m mcp_windbg

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:

text
/plugin marketplace add svnscha/mcp-windbg/plugin install mcp-windbg-skills@mcp-windbg

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

text
/plugin marketplace add svnscha/mcp-windbg/plugin install mcp-windbg-agents@mcp-windbg

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:

powershell
(Get-FileHash .\mcp-windbg.exe -Algorithm SHA256).HashGet-AuthenticodeSignature .\mcp-windbg.exe | Format-List Status, SignerCertificate

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

bash
pip install mcp-windbg

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:

json
{    "servers": {        "mcp_windbg": {            "type": "stdio",            "command": "python",            "args": ["-m", "mcp_windbg"],            "env": {                "_NT_SYMBOL_PATH": "SRV*C:\\Symbols*https://msdl.microsoft.com/download/symbols"            }        }    }}

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:

text
Analyze the crash dump at C:\dumps\app.dmpConnect to tcp:Port=5005,Server=192.168.0.100 and show me the current thread stateOpen a kernel session on net:port=50000,key=1.2.3.4, run !analyze -v, and tell me which driver bugchecked

Server options (--cdb-path, --kd-path, --symbols-path, --filter-script, --transport, ...) are documented in the command-line reference.

Documentation

svnscha.github.io/mcp-windbg

TopicDescription
Getting startedSetup and your first crash dump analysis
Analyze a crash dumpRoot-cause an exception: faulting frame, why it happened
Debug a remote targetBreak into a live user-mode process and inspect a hang
Debug a kernel targetDrivers, bugchecks, and boot-time issues over KDNET or a pipe
Triage multiple dumpsScan a folder and find the common signature
Debug from another machineRun the server over HTTP and drive it remotely
Redact sensitive dataScrub secrets from tool output before it leaves the box
ReferenceTools, prompts, CLI options, and client configuration
TroubleshootingCommon issues and solutions
DevelopmentRun from a local checkout and point a client at the dev build

Blog

Read about the development journey: The Future of Crash Analysis: AI Meets WinDbg

License

MIT

來源:README.md,提交 48e4350

工具

0
SourceWeft 曾在隔離沙箱中以無憑證方式啟動該軟體包一次,以列出其工具,但未能完成:伺服器未能啟動。

版本歷史

6
  1. v1.6.0最新Oct 24, 2026
  2. v1.5.1Oct 10, 2026
  3. v1.5.0Oct 9, 2026
  4. v1.4.0Oct 1, 2026
  5. v1.3.1Sep 30, 2026
  6. v0.12.2Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分