WinDbg/DbgEng over MCP: crash dumps, live user & kernel, driver IOCTLs, and TTD.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
An MCP server that exposes WinDbg/DbgEng to AI agents (Claude Code, Claude Desktop, Cursor, β¦) over stdio. It drives a live debugger engine for user-mode, kernel-mode, crash-dump, and Time Travel Debugging (TTD) workflows.
The low-level engine bindings live in dbgscope
(src/dbgeng.rs); this crate adds process-per-session engine supervision and the rmcp tool
surface on top.
This file is the map. Each topic is one document, and each document is the whole of that topic.
| Install and engine setup | Requirements, prebuilt binaries, Scoop, and the one-time WinDbg engine copy that TTD replay, !analyze, the driver tools and 32-bit .NET SOS need |
| Use with an MCP client | Client config, running the server on another machine (--listen), the Claude Code plugin, the MCP registry |
| Architecture | Why a supervisor process and one engine worker per session, what each source file owns, and which MCP revisions are served |
| The tool surface | Serving fewer tools with --tools, what a typed operand may contain, and how the control-flow and TTD tools behave |
| Sessions and session handles | session_id routing, the four-session cap, interrupt, progress notifications, and recovering a parked attach |
| Kernel connection profiles | Keeping a KDNET debug key out of tool arguments and out of the client's transcript |
| Structured results | Which tools answer with structuredContent, what each carries, and the error categories a caller can branch on |
| Transactional batches | debug_batch: a mutating sequence whose cleanup runs on every path, including a timeout or a disconnect |
| Walking a structure | walk_memory: lists, arrays and chains where an unreadable node is a row rather than the end of the walk |
| Session transcripts | WINDBG_MCP_TRANSCRIPT: a JSONL record of every call, what is redacted, and rendering one as an asciicast |
| Limitations & notes | The honest edges β TTD is user-mode only, static reachability is best-effort, pool and heap walks need a stopped x64 target |
| Walkthroughs | Worked sessions end to end: crash-dump triage, TTD, a Flare-On solve, driver IOCTL surfaces |
| The local-model eval | A grid of model Γ tool surface Γ context window against a verified answer key: what a laptop-sized model can drive, and the two defects it found in this server |
Operator and reference material: remote listener, driving it with ollama, disassembler coordinates, smoke test, token budget, releasing.
Windows x64, with dbgeng.dll from System32 β enough for live user-mode, kernel and crash-dump
work. TTD .run replay, !analyze and the driver tools each need files that engine does not ship;
docs/install.md is the one-time copy.
Download a prebuilt windbg-mcp-vX.Y.Z-windows-x64.zip from a
release, or build it:
Then point a client at the binary:
The client and the model do not have to run where DbgEng does: --listen <addr> serves the same
tools over HTTP, one bearer token per client, so a Mac can drive a Windows VM β and the model
itself can be a local one. Driving it
below has the configurations.
cargo test covers the unit tests plus an end-to-end smoke test that drives the built binary over
stdio; run it after a dependency bump or an MCP spec revision β docs/smoke-test.md.
One debug session per process. dbgeng.dll holds a single debuggee session per process, so this server runs the MCP protocol in a supervisor and each open target in its own engine worker child process. Two things follow: a session that cannot be unwound β a live-kernel attach waiting on a guest that never dials in β costs a process rather than the server, and sessions are concurrent (triage a crash dump while a kernel attach is live, up to four at once).
Every tool that touches a target takes the session_id an opener returned, and that is what routes
the call. Omit it and the call goes to the current session. docs/architecture.md
has the process model and the file-by-file breakdown; docs/sessions.md has the
handle rules, the cap, and what to do when a session is stuck.
A 32-bit target gets a 32-bit worker. An extension DLL is loaded into the debugger's own
process, so .NET's SOS on a 32-bit target is reachable only from a 32-bit host β which a process
cannot become after its image has loaded. So the release ships a second build of this same server
at x86\windbg-mcp.exe, and a 32-bit dump or a WoW64 attach_process is opened by that worker
instead of by a re-execution of the x64 one. A client cannot tell: one server, one handle, one tool
surface. Where that worker or its 32-bit engine is absent the target still opens on the x64 build β
native analysis of it works and always has β and says so in the opener's limitation.
Fifty-seven tools in eight --tools groups; the rows below split some of those groups by theme. The
--tools column is the name that selects one β see
Serving fewer tools.
| Group | --tools | Tools |
|---|---|---|
| Session | session | open_dump, open_trace, attach_kernel_local, attach_kernel, attach_process, launch, interrupt, end_session, session_status |
| Server | session | server_log β the server's own log: the supervisor's records, plus those of the sessions you opened, tagged with the session each belongs to |
| State | inspect | current_location (instruction pointer, execution context, and PE coordinate), registers, read_memory, backtrace (the stack as typed frames, each carrying module+RVA where the engine can place it, as well as its symbol), modules (refresh: true resynchronises the debugger's inventory with the target first β what a fresh kernel attach needs before "not loaded" means anything), threads, disassemble (instructions as records, each with its encoding and, where the engine can place it, its RVA), dx, set_symbol_path |
| Crash | crash | crash_triage β a bug check as fields: code and parameters, crashing process, the stack as module+RVA, and the faulting driver frame; exception_triage β the user-mode counterpart: the exception record decoded, what kind of fault it is, the thrown C++ object and the HRESULT it carries, and the stack walked from the crash context; decode_error_reporting β an HRESULT, NTSTATUS or Win32 error as fields, with the message the system's own tables give it |
| Control | exec | go, step_over, step_into, set_breakpoint, run_to_address |
| Async control | exec | continue_async (resume and return a handle), wait_for_stop (collect the stop; running out of the wait is a poll, not a failure), break_in |
| Transaction | batch | debug_batch β an ordered sequence with assertions and a rollback the engine process runs on every path |
| TTD nav | ttd | step_back (t-), step_over_back (p-), reverse_go (g-), goto_position (!tt) |
| TTD analysis | ttd | ttd_calls, ttd_memory, ttd_events, index_trace, record_trace |
| Driver IOCTL | ioctl | decode_ioctl, driver_object, device_object, irp_stack, ioctl_trace, reachable_from_dispatch |
| Kernel pool | allocator | pool_find_tag, pool_chunk, pool_census, pool_diagnostics |
| User Segment Heap | allocator | heap_list, heap_allocations, heap_chunk, heap_census, heap_diagnostics |
| Structure walk | allocator | walk_memory |
| Raw | inspect | execute β run any debugger command, returns full text output |
All of them are served unless you say otherwise, and the definitions cost the model 80,579 bytes β
about 20k tokens β before it has asked anything (measured 2026-09-05). --tools session,inspect,crash cuts that to 29,744 B for twenty-two tools, and a --listen client can be
given a narrower surface than the run's default. docs/tool-surface.md has the arithmetic, the rule that session
is always included, and what a typed operand may not contain.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/windbg-mcp)<a href="https://allmcps.com/mcp/windbg-mcp"><img src="https://allmcps.com/api/badge/windbg-mcp?style=directory" alt="Windbg MCP on AllMCPs" /></a>