Windbg

v1.0.0Developer Toolsstable

An MCP (Model Context Protocol) server that turns all pybag Windows debugger functions into native MCP tools. It lets MCP-compatible clients (Claude Desktop, Claude Code, Cowork, OpenAI Codex CLI, Cursor, and custom agents) control user-mode processe

windbgmcpai-integration
Share:
79
Stars
0
Downloads
0
Weekly
0/5

What is Windbg?

Windbg is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to mcp (model context protocol) server that turns all pybag windows debugger functions into native mcp tools. it lets mcp-compatible clients (claude desktop, claude code, cowork, openai codex cli, cursor...

An MCP (Model Context Protocol) server that turns all pybag Windows debugger functions into native MCP tools. It lets MCP-compatible clients (Claude Desktop, Claude Code, Cowork, OpenAI Codex CLI, Cursor, and custom agents) control user-mode processe

This server falls under the Developer Tools category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • An MCP (Model Context Protocol) server that turns all pybag

Use Cases

Control Windows user-mode processes through AI assistants.
Execute pybag debugger functions as MCP tools for remote debugging.
gengstah

Maintainer

LicenseMIT
Languagepython
Versionv1.0.0
UpdatedMay 13, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx windbg

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use Windbg

WinDbg MCP Server is a Windows-only MCP server that wraps the pybag Python library to expose all Windows Debugger (WinDbg) functions as typed MCP tools with structured JSON responses. It gives any MCP-compatible client — including Claude Desktop, Claude Code, Cursor, and OpenAI Codex CLI — full programmatic control over user-mode processes, kernel debugging sessions, and crash dump analysis through 55 distinct tool calls covering session management, breakpoints, memory, registers, threads, modules, and symbol resolution. Security researchers, reverse engineers, and Windows developers use it to drive post-mortem crash analysis and live debugging from an AI assistant.

Prerequisites

  • Windows operating system (pybag only works on Windows)
  • Python 3.10 or higher installed
  • Microsoft Debugging Tools for Windows installed as part of the Windows SDK (download from Microsoft's website)
  • pybag and mcp Python packages installed
  • An MCP-compatible client such as Claude Desktop or Claude Code
1

Install Microsoft Debugging Tools for Windows

Download and install the Windows SDK from Microsoft. During installation, select 'Debugging Tools for Windows'. This provides WinDbg and the underlying dbgeng.dll that pybag requires. The typical install path is C:\Program Files (x86)\Windows Kits\10\Debuggers.

2

Clone the repository

Clone the windbg-mcp repository to a local directory. Avoid paths with spaces to prevent issues with the Python command in MCP config.

git clone https://github.com/gengstah/windbg-mcp.git
cd windbg-mcp
3

Install Python dependencies

Install pybag and the MCP SDK. Run this in a Command Prompt or PowerShell window with Python in the PATH.

pip install pybag mcp
4

Configure Claude Desktop to launch the MCP server

Edit %APPDATA%\Claude\claude_desktop_config.json to add the windbg-mcp server entry. Replace the path with the actual location where you cloned the repository.

5

Restart Claude Desktop and verify the server loads

After saving the config, restart Claude Desktop. Open a new chat and ask it to list available debugger tools or call 'status' to confirm the WinDbg MCP server is connected.

6

Attach to a process or load a crash dump

Use the exposed tools to start a debugging session. You can attach to a running process by PID, launch a new process under the debugger, or load a .dmp file for post-mortem analysis.

Windbg Examples

Client configuration

Add this to %APPDATA%\Claude\claude_desktop_config.json on Windows. Adjust the path to match your actual clone location.

{
  "mcpServers": {
    "windbg-mcp": {
      "command": "python",
      "args": ["C:\\path\\to\\windbg-mcp\\windbg_mcp.py"]
    }
  }
}

Prompts to try

Once the server is connected, drive WinDbg through natural language prompts.

- "List all running processes I can attach to"
- "Attach to process ID 1234 and show me its loaded modules"
- "Load the crash dump at C:\\dumps\\app.dmp and show me the call stack"
- "Set a breakpoint at kernel32!CreateFileW and continue execution"
- "Read 64 bytes of memory at address 0x7FF800000000"

Troubleshooting Windbg

pybag import fails with DLL load error or 'dbgeng.dll not found'

Ensure Microsoft Debugging Tools for Windows are installed via the Windows SDK installer. pybag looks for dbgeng.dll in the Debuggers directory. You may also need to add the Debuggers\x64 folder to your PATH environment variable.

Claude Desktop shows the MCP server as disconnected

Test the server directly: open a Command Prompt and run 'python C:\path\to\windbg-mcp\windbg_mcp.py'. Fix any import or path errors shown, then restart Claude Desktop. Ensure Python is in the system PATH, not just a virtual environment.

Attaching to a process fails with access denied

Run Claude Desktop (and therefore the windbg_mcp.py server) as Administrator. Attaching to system processes or 64-bit processes from a 32-bit debugger also requires elevation.

Frequently Asked Questions about Windbg

What is Windbg?

Windbg is a Model Context Protocol (MCP) server that mcp (model context protocol) server that turns all pybag windows debugger functions into native mcp tools. it lets mcp-compatible clients (claude desktop, claude code, cowork, openai codex cli, cursor, and custom agents) control user-mode processe It connects AI assistants to external tools and data sources through a standardized interface.

How do I install Windbg?

Follow the installation instructions on the Windbg GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with Windbg?

Windbg works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is Windbg free to use?

Yes, Windbg is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Developer Tools MCP Servers

Explore all developer tools servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "windbg": { "command": "npx", "args": ["-y", "windbg"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use Windbg?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides