x64dbgMCP acts as a powerful bridge that connects artificial intelligence with the intricate world of software debugging. In simple terms, it allows developers and security researchers to talk to their debugger using everyday language instead of memorizing complex manual commands. By integrating with the Model Context Protocol (MCP), it enables AI assistants like Claude to directly observe and interact with a running program, making the process of finding bugs or analyzing code as easy as asking a question. Under the hood, this tool provides access to over 40 different SDK functions, covering nearly every feature available in the x64dbg and x32dbg environments. It allows an AI to perform sophisticated tasks such as setting hardware breakpoints, inspecting specific memory addresses, and monitoring register values in real-time. Because it supports both 32-bit and 64-bit architectures, it is a versatile choice for a wide range of reverse engineering and software forensic projects. For developers looking to automate their workflows, x64dbgMCP offers deep integration via a Python-based API that can be triggered directly from the command line. This setup enables longer, more complex tool chains and allows the AI to autonomously manage binary execution—such as automatically restarting a process if it crashes during analysis. By providing the LLM with the full context of a target executable, users can unlock high-level automated analysis where the AI handles the heavy lifting of pattern searching and step-through debugging without constant manual intervention.
Category: Developer Tools & Code Intelligence
Tags: binary analysis, debugging, forensics, reverse engineering, x64dbg
.dp64 or .dp32) from the repository's build/release directory. 2. Copy the file to your local x64dbg plugin directory: [x64dbg_dir]/release/x64/plugins/. 3. Copy the x64dbgmcp.py file from the repository's src directory to a local folder. Building from Source: 1. Clone the repository: git clone [repository-url] 2. Navigate to the directory: cd x64dbgmcp 3. Generate build files: cmake -S . -B build 4. Build the plugins: cmake --build build --target all_plugins --config Release * Note: Use -A Win32 -DBUILD_BOTH_ARCHES=OFF for specific 32-bit builds.claude_desktop_config.json file with the following entry (adjusting the paths to point to your Python executable and the x64dbgmcp.py script): json { "mcpServers": { "x64dbg": { "command": "Path\\To\\Python", "args": [ "Path\\to\\x64dbgmcp.py" ] } } } Setup Requirements: * Launch x64dbg before starting Claude Desktop. * If connection issues occur, check the logs tab in x64dbg (ALT+L) to verify the port the plugin is running on and pass it as an argument to the Python script.init function with the absolute path to an EXE to allow the model to restart the binary if it crashes. * Cross-Architecture Support: Compatible with both x32dbg and x64dbg.VirtualProtect and VirtualAlloc. Once a new memory segment is allocated and marked as executable, set a breakpoint at the start of that segment and let me know when it's hit so we can find the OEP."0x401500. When hit, change the RCX register to 0x1, step over the function, and tell me the value of RAX. Then restart the process, set RCX to 0x2, and compare the results."pop/ret`) to build exploits or verify security mitigations. Manual hex searching across large modules…
Part of MCP Servers
x64dbgMCP is an open-source Model Context Protocol server that bridges artificial intelligence clients to the x64dbg debugger. It exposes over 40 debugger SDK tools, enabling language models to inspect registers, read memory, execute pattern searches, and control process stepping using natural language prompts.
The server has been tested and verified to work with Claude Desktop and Cursor. Any AI client or development environment supporting the Model Context Protocol over standard input and output can communicate with the Python bridge script to control x64dbg.
Yes, x64dbgMCP provides cross-architecture support for both x64dbg and x32dbg. You can deploy the pre-built .dp64 plugin for 64-bit targets or the .dp32 plugin for 32-bit targets into their corresponding plugin folders, or compile both architectures from source using CMake.
Place the compiled plugin file into your x64dbg plugins directory, install the required Python packages mcp and requests, and copy the Python script to your machine. Then, register the script inside your Claude Desktop configuration file and launch x64dbg before opening your AI client.
Yes, x64dbgMCP is open-source software hosted publicly on GitHub. Developers and security researchers can inspect the source code, build the C++ plugin and Python scripts locally using CMake and MSVC, and contribute improvements directly to the project repository.