X32Dbgmcp — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited X32Dbgmcp (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Full-Featured Model Context Protocol (MCP) server for x32dbg debugger
Give Claude direct access to 48+ comprehensive x32dbg debugging capabilities through natural language!
This project connects x32dbg (Windows debugger) to Claude AI through the Model Context Protocol (MCP). You can:
#### 1. Build the Plugin
Just double-click build.bat - it handles everything!
# OR manually:
cmake -S . -B build32 -A Win32 -DBUILD_BOTH_ARCHES=OFF
cmake --build build32 --config ReleaseThe compiled plugin will be at: build/MCPx64dbg.dp32
#### 2. Install the Plugin
Copy the plugin to your x32dbg plugins folder:
C:\Program Files\x64dbg\release\x32\plugins\MCPx64dbg.dp32#### 3. Setup Python MCP Server
# Install dependencies
pip install mcp requests
# Test the server
python mcp_server.py#### 4. Configure Your Claude App
Console:
claude mcp add x32dbg python C:\Tools\mcp_server.py --transport stdio --env X64DBG_URL=http://127.0.0.1:8888⚠️ IMPORTANT: Claude Desktop and Claude Code (VSCode) use different configuration files!
##### Option A: Claude Desktop (Standalone App)
Edit: %APPDATA%\Claude\claude_desktop_config.json (Windows) or ~/Library/Application Support/Claude/claude_desktop_config.json (Mac/Linux)
{
"mcpServers": {
"x32dbg": {
"command": "python",
"args": ["C:\\path\\to\\x64dbgMCP\\mcp_server.py"],
"env": {
"X64DBG_URL": "http://127.0.0.1:8888",
"X64DBG_TIMEOUT": "30"
}
}
}
}##### Option B: Claude Code (VSCode Extension) ⭐ You're probably using this!
Create .vscode/settings.json in your workspace:
{
"claude.mcpServers": {
"x32dbg": {
"command": "python",
"args": ["C:\\path\\to\\x64dbgMCP\\mcp_server.py"],
"env": {
"X64DBG_URL": "http://127.0.0.1:8888",
"X64DBG_TIMEOUT": "30"
}
}
}
}Then restart VSCode completely!
ALT+L to open logs, you should see: [MCP] Plugin loading...
[MCP] HTTP server started on port 8888http://127.0.0.1:8888/statusYou: "Set a breakpoint at 0x401000 and show me the disassembly"
Claude: [Uses set_breakpoint and disassemble_at tools]You: "Analyze the current function"
Claude: [Uses analyze_function prompt, gets registers, disassembles, analyzes flow]You: "Read 32 bytes from ESP and show me the stack contents"
Claude: [Uses get_register("esp") and read_memory tools]You: "Find all calls to GetProcAddress in the current module"
Claude: [Uses get_modules, searches memory, sets breakpoints]📚 See [API-REFERENCE.md](API-REFERENCE.md) for complete API documentation
find_pattern_in_memory - Search for byte patternsmemory_search - Find all occurrencessearch_and_replace_pattern - Pattern replacementget_symbols - List functions, imports, exportsset_label / get_label / delete_label / get_all_labels - Label managementset_comment / get_comment / delete_comment / get_all_comments - Comment managementresolve_label - Resolve label names to addressesstack_push / stack_pop / stack_peek - Stack manipulationadd_function / get_function_info / delete_function / get_all_functionsset_bookmark / check_bookmark / delete_bookmark / get_all_bookmarksassemble_instruction - Assemble to bytecodeassemble_and_patch - Assemble and write to memoryget_cpu_flag / set_cpu_flag - Read/write individual flagsget_all_cpu_flags - Get all flags at once (ZF, OF, CF, PF, SF, TF, AF, DF, IF)parse_expression - Evaluate complex expressionsresolve_api_address - Find API addresses in debuggeeresolve_label_address - Label resolutionResources provide Claude with contextual information:
debugger://status - Current debugging statedebugger://modules - Loaded modules listPrompts guide Claude for common tasks:
analyze_function - Start function analysis workflowfind_crypto - Search for crypto patternstrace_execution - Setup execution tracingClaude Desktop/VSCode
↕ (MCP Protocol)
mcp_server.py (Python)
↕ (HTTP REST API)
MCPx64dbg.dp32 (C++ Plugin)
↕ (x64dbg SDK)
x32dbg.exenetstat -ano | findstr 8888curl http://127.0.0.1:8888/statusIf you see "Request timed out - is x32dbg running?" frequently:
Cause: Some debugging operations (like run, step_over, setting breakpoints while running) can take longer than the default 30-second timeout, especially if the debugger needs to run to a distant breakpoint.
Solution: Increase the timeout via environment variable:
{
"claude.mcpServers": {
"x32dbg": {
"command": "python",
"args": ["C:\\path\\to\\x64dbgMCP\\mcp_server.py"],
"env": {
"X64DBG_URL": "http://127.0.0.1:8888",
"X64DBG_TIMEOUT": "60"
}
}
}
}Adjust the timeout value (in seconds) based on your needs:
30 seconds (general debugging)60 seconds (complex analysis)120+ seconds (waiting for rare events)deps/pluginsdk folder existsx64dbgMCP/
├── build.bat # One-click build script
├── mcp_server.py # Python MCP server (950+ lines, 48 tools)
├── src/
│ └── MCPx64dbg.cpp # C++ plugin main file (modular, 650+ lines)
├── include/ # Modular handler headers (8 files)
│ ├── mcp_common.h # Common utilities and helpers
│ ├── mcp_handlers_pattern.h # Pattern/memory search
│ ├── mcp_handlers_annotation.h # Symbols/labels/comments
│ ├── mcp_handlers_stack.h # Stack operations
│ ├── mcp_handlers_function.h # Functions/bookmarks
│ ├── mcp_handlers_misc.h # Misc utilities
│ ├── mcp_handlers_assembler.h # Assembler operations
│ └── mcp_handlers_flags.h # CPU flags
├── deps/
│ └── pluginsdk/ # x64dbg SDK headers
├── build/
│ └── MCPx64dbg.dp32 # Compiled plugin
├── CMakeLists.txt # Build configuration
├── API-REFERENCE.md # Complete API documentation
├── MCPx64dbg_old.cpp.backup # Original version (backup)
└── README.md # This file✅ Full x64dbg SDK Integration - 48+ tools covering all major x64dbg APIs ✅ Modular Architecture - Clean, maintainable C++ with organized header files ✅ Complete Debugging Toolkit - Memory, registers, breakpoints, symbols, labels, comments ✅ Advanced Pattern Search - Find byte patterns, search and replace ✅ Stack Operations - Direct stack manipulation ✅ Function Analysis - Define, analyze, and manage functions ✅ Assembler Support - Assemble instructions, patch memory on the fly ✅ CPU Flag Control - Read/write all CPU flags (ZF, OF, CF, PF, SF, TF, AF, DF, IF) ✅ JSON Responses - Structured data for Claude ✅ MCP Resources & Prompts - Contextual information and guided workflows ✅ Cross-Process - No DLL injection needed ✅ Safe - Comprehensive error handling ✅ Fast - Direct x64dbg SDK access
This is a comprehensive full-featured implementation of x64dbgMCP with major improvements:
Version 3.0 (Current)
Version 2.0 (Previous)
Version 1.0 (Original)
MIT License - Do whatever you want with this!
Happy Reversing! 🔍
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.