mcp-windbg-rs logo

mcp-windbg-rs

Community
FlorentinoJink

Model Context Protocol for WindDbg, implementation by rust

PublisherFlorentinoJink
Repositorymcp-windbg
LanguageRust
Forks
6
Stars
12
Available tools
0
Transport typestdio
Categories
LicenseAGPL-3.0
Links
  • Connect tools to AI workflows

    mcp-windbg-rs exposes MCP capabilities that can be used by compatible AI clients and agents.

  • 0 available tools

    Browse the callable actions below, including names and descriptions when provided by the server.

  • Ready-to-copy setup

    Use the installation snippets to configure this server in your preferred MCP client.

  • Open source signals

    12 stars and 6 forks from the linked repository.

mcp-windbg-rs

中文文档 | English

A Model Context Protocol (MCP) server for Windows debugging — crash dump analysis, remote debugging, and direct program debugging via CDB.

Built with Rust and Tokio for async I/O. Ships as a single executable with no runtime dependencies.

Features

  • Crash dump analysis — Open .dmp files, auto-run !analyze -v, inspect threads, modules, and stack traces
  • Remote debugging — Connect to remote debug sessions via connection strings
  • Direct program debugging — Launch executables under CDB, set breakpoints, step through code, inspect variables
  • Session management — Multiple concurrent debug sessions with automatic reuse
  • Configurable timeouts — Separate timeouts for initialization (symbol loading) and command execution

Prerequisites

If CDB is not installed, you can get it via:

bash
winget install Microsoft.WinDbg

The server auto-discovers CDB from Windows SDK default paths, WinDbg Preview (Microsoft Store), and PATH.

Installation

From source

bash
cargo build --release

Binary: target/release/mcp-windbg-rs.exe

Configuration

VS Code / Kiro

.vscode/mcp.json:

json
{
  "servers": {
    "mcp-windbg": {
      "type": "stdio",
      "command": "/path/to/mcp-windbg-rs.exe",
      "args": [],
      "env": {
        "_NT_SYMBOL_PATH": "SRV*C:\\Symbols*https://msdl.microsoft.com/download/symbols"
      }
    }
  }
}

Claude Desktop / Cline / Other MCP Clients

json
{
  "mcpServers": {
    "mcp-windbg-rs": {
      "command": "mcp-windbg-rs",
      "args": [],
      "env": {
        "_NT_SYMBOL_PATH": "SRV*C:\\Symbols*https://msdl.microsoft.com/download/symbols"
      }
    }
  }
}

Environment Variables

VariableDescriptionDefault
CDB_PATHCustom path to cdb.exeAuto-discovered
_NT_SYMBOL_PATHDebug symbol search path—
_NT_SOURCE_PATHSource file search path—
MCP_WINDBG_TIMEOUTCommand timeout (seconds)30
MCP_WINDBG_INIT_TIMEOUTInit timeout for dump/symbol loading (seconds)120
MCP_WINDBG_VERBOSEVerbose logging (true/false)false

CLI Options

mcp-windbg-rs [OPTIONS]

  --timeout <SECONDS>       Command execution timeout (default: 30)
  --init-timeout <SECONDS>  Initialization timeout (default: 120)
  --verbose                 Enable verbose logging

Tools

ToolDescription
open_windbg_dumpOpen and analyze a crash dump file
open_windbg_remoteConnect to a remote debugging session
launch_debugLaunch a program under CDB for debugging
run_windbg_cmdExecute any WinDbg/CDB command in a session
close_windbg_dumpClose a dump file session
close_windbg_remoteClose a remote debugging session
close_debugClose a launch debug session and terminate the program
list_windbg_dumpsList .dmp files in a directory

Usage Examples

Crash Dump Analysis

Analyze the crash dump at C:\dumps\app.dmp

Remote Debugging

Connect to tcp:Port=5005,Server=192.168.0.100 and show the current state

Direct Program Debugging

Launch a program, set breakpoints, step through code:

Launch C:\MyApp\app.exe for debugging

Then use run_windbg_cmd to control execution:

bp main          — Set breakpoint at main
g                — Continue execution
p                — Step over
t                — Step into
k                — Stack trace
dv               — View local variables
lsa .            — Show source at current location

The launch_debug tool supports optional parameters:

ParameterTypeDescription
program_pathstringPath to the target program (required)
argumentsstring[]Command line arguments
working_directorystringWorking directory
symbols_pathstringPDB symbol search path
source_pathstringSource file path for source-level debugging
include_stack_tracebooleanInclude initial stack trace
include_modulesbooleanInclude loaded modules list

Close a Session

Close the debug session for C:\MyApp\app.exe

Troubleshooting

CDB not found — Install via winget install Microsoft.WinDbg or set CDB_PATH to your cdb.exe location.

Symbols not loading — Set _NT_SYMBOL_PATH. Recommended: SRV*C:\Symbols*https://msdl.microsoft.com/download/symbols

Command timeout — Increase with --timeout 60 or MCP_WINDBG_TIMEOUT=60. Large dumps and symbol downloads may need higher MCP_WINDBG_INIT_TIMEOUT.

Web Dump Debugger

The project also ships a web-based crash dump analysis service (web-dump-debugger) that provides a browser UI for uploading, analyzing, and reporting on crash dumps.

Features

  • Web upload — Upload .zip, .7z, or .tar.gz archives containing dump files through a browser
  • Automatic extraction — Archives are extracted and scanned for .dmp, .pdb, and source files
  • LLM-powered analysis — Uses the same mcp_client.py orchestration as the GitHub Actions workflow
  • Real-time progress — Server-Sent Events (SSE) stream live analysis progress to the browser
  • HTML reports — Markdown analysis output is rendered to HTML with syntax highlighting
  • Rate limiting — Per-IP upload rate limiting with sliding window algorithm
  • Session management — Isolated per-session workspaces with automatic cleanup

Quick Start

bash
# Build both binaries
cargo build --release

# Create a config file (edit llm.api_key first)
cp config.example.toml config.toml

# Start the web server
./target/release/web-dump-debugger --config config.toml

Then open http://localhost:8080 in your browser.

Configuration

See config.example.toml for all options. The server supports both TOML file and environment variable configuration.

API Endpoints

MethodPathDescription
GET/Upload form HTML page
POST/uploadUpload crash dump archive (multipart/form-data)
GET/progress/:idSSE progress stream
GET/report/:idHTML report page
GET/download/:idDownload raw Markdown report
GET/healthHealth check (JSON)

Deployment

See docs/WEB_DEPLOYMENT.md for production deployment guidance.

Related

License

AGPL-3.0-or-later

Installation

TypingMind
Prerequisites:

Node.js 18+

{
  "mcpServers": {
    "florentinojink-mcp-windbg": {
      "command": "",
      "args": []
    }
  }
}

Use mcp-windbg-rs MCP with multiple AI models

TypingMind connects MCP tools at the workspace level, so once mcp-windbg-rs is connected, you can use it with different AI models in TypingMind instead of setting it up separately for each model. This MCP runs locally through the TypingMind MCP connector on your device.

Setup guide to use the local connector

Use this when the MCP server needs access to local files, apps, or private resources on your computer.

1

Open the MCP settings

In TypingMind, go to Settings, Advanced Settings, then Model Context Protocol and choose Setup Connector.

  1. Open TypingMind in your browser.
  2. Click the Settings icon.
  3. Go to Advanced Settings.
  4. Open the Model Context Protocol section.
  5. Click Setup Connector and choose This Device.
TypingMind MCP connector setup screen with This Device selected
2

Run the connector command

Choose This Device, copy the command from TypingMind, and run it in Terminal. Keep the process running while you use MCP.

  1. Copy the setup command shown by TypingMind.
  2. Open Terminal on macOS or Windows Terminal on Windows.
  3. Paste and run the command.
  4. Approve the package install if Terminal asks you to proceed.
  5. Keep the Terminal window running while using MCP tools.
3

Add mcp-windbg-rs as a server

When the connector status is Ready, click Edit Servers and paste the MCP server configuration.

  1. Wait until the connector status shows Ready.
  2. Click Edit Servers.
  3. Paste the mcp-windbg-rs MCP server configuration.
  4. Save the server list.
  5. Refresh if you want to confirm the connector is still ready.
TypingMind MCP settings showing active server and Edit Servers button
{
  "mcpServers": {
    "florentinojink-mcp-windbg": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-windbg"
      ]
    }
  }
}
4

Use it across models

Save the server list, open Plugins, enable the mcp-windbg-rs MCP tools, then select any supported AI model in TypingMind and use the tools in chat or assign them to an AI agent.

  1. Open the Plugins page in TypingMind.
  2. Enable the mcp-windbg-rs MCP tools.
  3. Start a chat and choose the AI model you want to use.
  4. Use the MCP tools in chat or assign them to an AI agent.
  5. Switch to another AI model whenever needed without reconnecting MCP.
TypingMind chat using enabled MCP tools with a selected AI model
Can you use mcp-windbg-rs to help me with this task?
mcp-windbg-rs
Sure. I read it.
Here is what I found using mcp-windbg-rs.

Frequently asked questions

What is the mcp-windbg-rs MCP server used for?

mcp-windbg-rs is an MCP server that lets compatible AI clients connect to external tools and context. In TypingMind, you can add this MCP server once and make its tools available in your AI workspace.

Can I use mcp-windbg-rs MCP with multiple AI models in TypingMind?

Yes. TypingMind connects MCP tools at the workspace level, so you can use mcp-windbg-rs with different AI models such as Claude, ChatGPT, Gemini, or other models you have configured in TypingMind without setting up the MCP server separately for each model.

Why use mcp-windbg-rs MCP with TypingMind?

TypingMind is one of the best frontends for LLM chat because it brings multiple AI models, prompts, plugins, AI agents, API keys, and MCP tools into one workspace. With mcp-windbg-rs connected, you can use its MCP tools across your preferred models while keeping your chat workflow organized in TypingMind.

How do I connect mcp-windbg-rs MCP to TypingMind?

mcp-windbg-rs runs through the TypingMind local MCP connector. This is best when the MCP server needs access to local files, desktop apps, command-line tools, or private resources on your computer.

What tools does mcp-windbg-rs MCP provide in TypingMind?

mcp-windbg-rs exposes MCP capabilities that can be enabled from the TypingMind Plugins page and used in chat or assigned to AI agents.

Do I need to share my API keys with TypingMind to use mcp-windbg-rs MCP?

No. TypingMind is local-first and lets you keep your model providers, API keys, prompts, and MCP configuration under your control. If mcp-windbg-rs requires authentication, add the required headers, OAuth settings, or local configuration for that MCP server when you create the connection.

Related MCP Servers

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇