Fire in da houseTop Tip:Paying $100+ per month for Perplexity, MidJourney, Runway, ChatGPT and other tools is crazy - get all your AI tools in one site starting at $15 per month with Galaxy AI Fire in da houseCheck it out free

x64DbgMCPServer

MCP.Pizza Chef: AgentSmithers

x64DbgMCPServer is a C#-based MCP server plugin for x64dbg debugger on Windows, providing a lightweight HTTP interface for LLM clients to remotely inspect memory, disassemble code, query registers, and manipulate debugger labels and comments programmatically. It supports multiple LLM clients including Claude, Windsurf, and Cursor, enabling interactive and automated debugging workflows without requiring ASP.NET Core hosting.

Use This MCP server To

Remotely inspect memory and registers in x64dbg via LLM commands Disassemble code sections programmatically through HTTP API Manipulate debugger labels and comments using natural language Integrate LLM-driven debugging workflows with x64dbg Automate repetitive debugging tasks with scripted LLM interactions Bridge multiple LLM clients like Claude and Cursor to x64dbg Enable remote debugging control over HTTP without heavy dependencies

README

X64Dbg MCP Server (plugin)

This project is a starting point for building an MCP (Memory Command Protocol) server plugin for x96/x64/x32dbg https://github.com/x64dbg/x64dbg/ using C# on the classic Windows-only .NET Framework platform (No ASP.NET Core hosting required).

The plugin acts as a lightweight HTTP interface bridge between an MCP client and the debugger, allowing you to have an LLM MCP client interactively send commands to inspect memory, disassemble, query registers, manipulate labels/comments, and more—all remotely and programmatically.

On top of essential bindings to the x64dbg debugger engine, this template offers a clean project structure, a built-in command system, and a simple HTTP listener that exposes your commands through a text-based API. image

Features

  • ✅ Cursor and MCP client compatible for quick ease of use
  • ✅ Self-hosted HTTP command interface (no ASP.NET Core required)
  • ✅ Lightweight, zero-dependency binary deployment
  • ✅ Modular commands with parameter mapping
  • ✅ Direct interaction with registers, memory, threads, disassembly
  • ✅ Bi-directional AI/LLM command support
  • ✅ Plugin reload without restarting x64dbg
  • ✅ Expression function and menu extension support

Cursor Support

Cursor Connection:

{
  "mcpServers": {
    "AgentSmithers X64Dbg MCP Server": {
      "url": "http://127.0.0.1:3001/sse"
    }
  }
}

image

image

Claude Desktop support

Claude Configuration Connection:

{
  "mcpServers": {
    "x64Dbg": {
      "command": "C:\\MCPProxy-STDIO-to-SSE.exe",
      "args": ["http://localhost:3001"]
    }
  }
}

image

image

Windsurf support

Claude Configuration Connection:

{
  "mcpServers": {
    "AgentSmithers x64Dbg STDIO<->SSE": {
      "command": "C:\\MCPProxy-STDIO-to-SSE.exe",
      "args": ["http://localhost:3001"]
    }
  }
}

image

Known: Context deadline exceeded (timeout) issue with directly using SSE.

Sample Conversations:

AI Tasked with loading a file, counting the internal modules and begin labeling important material functions.

https://github.com/AgentSmithers/x64DbgMCPServer/blob/master/Sample1

Singleshot Speedhack identification

https://github.com/AgentSmithers/x64DbgMCPServer/blob/master/Sample2

Prerequisites

To build and run this project, you'll need: Visual Studio Build Tools (2019 v16.7 or later) .NET Framework 4.7.2 SDK

Getting Started

Clone or fork the project: git clone https://github.com/AgentSmithers/x64DbgMCPServer

Open the solution and build.

copy the files (x64DbgMCPServer\bin\x64\Debug) into the x64DBG plugin (x96\release\x64\plugins\x64DbgMCPServer) folder to run image

Sample Debug log when loaded

image

Start the Debugger, goto plugins -> Click "Start MCP Server"

Connect to it with your prefered MCP Client on port 3001 via SSE.

X64Dbg MCP Client - Need a client to sample the project?

Access the latest sample client to use as a starting point of integration with this project: https://github.com/AgentSmithers/mcp-csharp-sdk-client/

Sample Commands using the X64Dbg MCP Client

I’ve validated several commands already and they are working wonders. I’m especially excited to be using this system to explore how AI-assisted reverse engineering could streamline security workflows. Once the MCP server is running (via the plugin menu in x64dbg), you can issue commands like:

ExecuteDebuggerCommand command=init C:\InjectGetTickCount\InjectSpeed.exe
ExecuteDebuggerCommand command="AddFavouriteCommand Log s, NameOfCmd"
ReadDismAtAddress addressStr=0x000000014000153f, byteCount=5
ReadMemAtAddress addressStr=00007FFA1AC81000, byteCount=5
WriteMemToAddress addressStr=0x000000014000153f, byteString=90 90 90 90 90 90
CommentOrLabelAtAddress addressStr=0x000000014000153f, value=Test, mode=Comment
CommentOrLabelAtAddress addressStr=0x000000014000153f, value=
GetAllRegisters
GetLabel addressStr=0x000000014000153f
GetAllActiveThreads
GetAllModulesFromMemMap
GetCallStack
These commands return JSON or text-formatted output that’s suitable for ingestion by AI models or integration scripts. Example:

image image

Debugging

DotNetPlugin.Impl contains the following within the project build post commands. Update it to reflect the corret path to x64dbg for faster debugging. Upon rebuilding X64Dbg will autoload the new plugin and you can reattach to the X64Dbg instance if needed.

xcopy /Y /I "$(TargetDir)*.*" "C:\Users\User\Desktop\x96\release\x64\plugins\x64DbgMCPServer"
C:\Users\User\Desktop\x96\release\x64\x64dbg.exe

Actively working on implementing several functions

Not every command is fully implemented althrough I am actively working on getting this project moving to support full stack, thread and module dumps for the AI to query.

How It Works

The MCP server runs a simple HTTP listener and routes incoming commands to C# methods marked with the [Command] attribute. These methods can perform any logic (e.g., memory reads, disassembly, setting breakpoints) and return data in a structured format back to a MCP client.

Known Issues

ExecuteDebuggerCommand always returns true as it pertains to the comment successfully being execute and not the results of the actual command. Currently the already compiled version is set to listen on all IP's on port 3001 thus requiring Administrative privileges. Future releases will look to detect this and will listen only on 127.0.0.1 so it may be used without administrative privileges.

Special thanks

⚡ With the help of DotNetPluginCS by Adams85. That and roughly ~20 hours of focused coding, MCP Protocol review resulted in a decent proof-of-concept self-contained HTTP MCP server plugin for x64dbg.

Integration Notes

One of the most satisfying aspects of this project was overcoming the challenge of building an HTTP server entirely self-contained — no Kestrel, no ASP.NET, just raw HttpListener powering your reverse engineering automation.

I plan to continue improving this codebase as part of my journey into AI-assisted analysis, implementation security, and automation tooling.

If you'd like help creating your own integration, extending this plugin, or discussing potential use cases — feel free to reach out (see contact info in the repo or my profile). I’m eager to collaborate and learn with others exploring this space.

💻 Let’s reverse engineer smarter. Not harder.

Cheers 🎉

Https://ControllingTheInter.net

x64DbgMCPServer FAQ

How does x64DbgMCPServer communicate with the debugger?
It uses a self-hosted lightweight HTTP interface to bridge MCP clients and the x64dbg debugger engine.
Is ASP.NET Core required to run x64DbgMCPServer?
No, it runs on the classic Windows .NET Framework without ASP.NET Core hosting.
Which LLM clients are supported by x64DbgMCPServer?
It supports Claude, Windsurf, Cursor, and other MCP-compatible LLM clients.
Can I use x64DbgMCPServer to automate debugging tasks?
Yes, it allows programmatic control of memory inspection, disassembly, and label manipulation.
Is x64DbgMCPServer compatible with all x64dbg architectures?
Yes, it supports x86, x64, and x32dbg architectures.
How do I extend or add new commands to x64DbgMCPServer?
The server includes a built-in command system with a clean project structure for easy extension.
Can x64DbgMCPServer be used remotely?
Yes, its HTTP interface allows remote interaction with the debugger from any MCP client.
What platforms does x64DbgMCPServer support?
It is designed for Windows platforms using the classic .NET Framework.