GitHub Stars
11
User Rating
Not Rated
Forks
2
Issues
1
Views
0
Favorites
0
README
x64dbgmcp
Model Context Protocol for x64dbg
A comprehensive MCP server that can bridge various LLMS with the x64dbg debugger, providing direct access to debugging functionality through natural language.
Features
- 40+ x64dbg SDK Tools - Complete access to debugging, memory manipulation, and code analysis
- Cross-Architecture Support - Works with both x64dbg and x86dbg
- Real-time Debugging - Step through code, set breakpoints, and analyze memory in real-time
Available Functions
Core Debug Control
ExecCommand
- Execute any x64dbg commandIsDebugActive
- Check debugger statusIsDebugging
- Check if debugging a process
Register Operations
RegisterGet
/RegisterSet
- Read/write CPU registers
Memory Management
MemoryRead
/MemoryWrite
- Read/write process memoryMemoryIsValidPtr
- Validate memory addressesMemoryGetProtect
- Get memory protection flagsMemoryBase
- Find module base addresses
Debug Control
DebugRun
/DebugPause
/DebugStop
- Control executionDebugStepIn
/DebugStepOver
/DebugStepOut
- Step through codeDebugSetBreakpoint
/DebugDeleteBreakpoint
- Manage breakpoints
Assembly & Disassembly
AssemblerAssemble
/AssemblerAssembleMem
- Assemble instructionsDisasmGetInstruction
/DisasmGetInstructionRange
- Disassemble codeDisasmGetInstructionAtRIP
- Get current instructionStepInWithDisasm
- Step and disassemble
Stack Operations
StackPop
/StackPush
/StackPeek
- Stack manipulation
CPU Flags
FlagGet
/FlagSet
- Read/write CPU flags (ZF, CF, etc.)
Pattern Matching
PatternFindMem
- Find byte patterns in memory
Utilities
MiscParseExpression
- Parse x64dbg expressionsMiscRemoteGetProcAddress
- Get API addressesGetModuleList
- List loaded modules
Quick Setup
Download Plugin
- Grab .dp64 or .dp32 from this repo's build/release directory
- Copy to your local: [x64dbg_dir]/release/x64/plugins/
Configure Claude Desktop
- Copy x64dbgmcp.py from this repos src directory
- Update local claude_desktop_config.json with path to x64dbgmcp.py
{
"mcpServers": {
"x64dbg": {
"command": "Path\\To\\Python",
"args": [
"Path\\to\\x64dbg.py"
]
}
}
}
- Start Debugging
- Launch x64dbg
- Start Claude Desktop
- Check plugin loaded successfully (ALT+L in x64dbg for logs)
Build from Source
git clone [repository-url] cd x64dbgmcp/build cmake .. -DBUILD_X64=ON # Use -DBUILD_X64=OFF for x86 cmake --build . --config Release
Usage Examples
Set a breakpoint and analyze:
"Set a breakpoint at the main function and step through the first few instructions"
Memory analysis:
"Read 100 bytes from address 0x401000 and show me what's there"
Register inspection:
"What's the current value of RAX and RIP registers?"
Pattern searching:
"Find the pattern '48 8B 05' in the current module"