# mcp-windbg [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/svnscha/mcp-windbg  
**GitHub Stars:** 1676  
**Views:** 11  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/mcp-windbg

## Description
A Model Context Protocol server for Windows crash dump analysis using WinDbg/CDB

## Tools
Capabilities this server exposes over MCP:

- **list_dumps** — List crash dump files in a directory
- **open_cdb_dump** — Open and triage a crash dump
- **open_cdb_remote** — Attach to a user-mode remote debug server (`-remote`)
- **open_kd_session** — Attach to a kernel target (`-k`, KDNET / named pipe / serial)
- **open_kd_dump** — Open and triage a kernel crash dump (`MEMORY.DMP`, minidump)
- **run_cdb_command** — Run a command on a user-mode session
- **run_kd_command** — Run a command on a kernel session
- **close_cdb_session** — Close a user-mode session
- **close_kd_session** — Close a kernel session (resumes the target machine)
- **send_ctrl_break** — Break into a running live session
- **wait_for_break** — Wait for a target you resumed with `g` to stop again

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "mcp-windbg": {
    "command": "uvx",
    "args": ["mcp-windbg"]
  }
}
```

## Documentation

## What mcp-windbg does

mcp-windbg gives an MCP client access to CDB and KD without opening the WinDbg graphical interface. CDB handles user-mode crash dumps and connections to user-mode remote debug servers, while KD handles kernel targets and kernel crash dumps.

For crash analysis, the server can open `.dmp`, `.mdmp`, and `.hdmp` files and perform initial triage covering areas such as analysis output, stacks, modules, and threads. It can also enumerate dump files in a directory, making it suitable for comparing several reports and looking for a recurring signature.

Live debugging uses explicit sessions. Each open operation returns an opaque session ID, allowing multiple dump, remote, and kernel sessions to remain available at the same time. The ID is passed to later commands and lifecycle operations.

## How it works

The server launches `cdb.exe` for user-mode work and `kd.exe` for kernel work. MCP tool calls translate into debugger operations, while the resulting text is returned for the client or model to interpret. Arbitrary WinDbg or KD commands can be sent to an active session, including commands such as stack, module, process, and heap inspection commands.

User-mode remote connections use CDB’s `-remote` mode and can target TCP, named-pipe, or COM endpoints. Kernel sessions use KD’s `-k` mode with KDNET, named-pipe, or serial transport. A live target can be interrupted with `send_ctrl_break`; after resuming it with `g`, `wait_for_break` waits for the next stop. Closing a kernel session resumes the target machine.

Long-running live commands have per-call timeouts. When a command exceeds its timeout, the server uses CTRL+BREAK to interrupt it and resynchronize the session rather than leaving it wedged.

The service can communicate locally over stdio or run as a streamable-HTTP endpoint for clients operating from another machine. A filter script can redact PII or secrets from tool arguments and output before that data leaves the debugging host.

## Setup and configuration

Run the server on Windows with Microsoft Debugging Tools for Windows or WinDbg from the Microsoft Store. These packages provide `cdb.exe` and `kd.exe`, which the server detects automatically. The package requires Python 3.10 or newer when installed directly.

A direct installation uses the `mcp-windbg` package from PyPI, followed by registering a command such as `python -m mcp_windbg` with the MCP client. The example configuration sets `_NT_SYMBOL_PATH` to a local symbol cache backed by Microsoft’s symbol server. Alternatively, the Claude Code plugin can launch the package through `uvx`; that route requires `uv` and avoids a separate package installation.

The server can be used with Claude Code, GitHub Copilot, Claude Desktop, Cursor, Windsurf, Cline, and other MCP-compatible clients. Optional Claude Code skills provide guided workflows for dump analysis, remote debugging, kernel debugging, and diagnostics, while an optional crash-analyst agent is also available.

## Tools and capabilities

- `list_dumps` finds crash-dump files in a directory.
- `open_cdb_dump` and `open_kd_dump` open and triage user-mode and kernel dumps.
- `open_cdb_remote` connects to a user-mode remote debug server.
- `open_kd_session` attaches to a live kernel target.
- `run_cdb_command` and `run_kd_command` execute commands in the matching session type.
- `close_cdb_session` and `close_kd_session` release sessions.
- `send_ctrl_break` interrupts a running live session.
- `wait_for_break` waits for a resumed target to stop again.

_Full upstream README: https://allmcps.com/mcp/mcp-windbg/readme_

