Logo van X64dbg MCP Server

X64dbg MCP Server

CommunityPopulair
duty1g

x64dbg-MCP Server is a native MCP (Model Context Protocol) plugin for x64dbg that exposes the debugger's full functionality over HTTP. Connect any MCP-compatible AI assistant and control x64dbg programmatically: set breakpoints, step through code, read memory, dump registers, and more. Built with Zig — zero dependencies, single-binary output, cros

Uitgeverduty1g
Repositoryx64dbg-mcp-server
TaalZig
Forks
223
Sterren
2.2K
Beschikbare tools
0
Transporttypestdio
LicentieMIT
Links
  • Koppel tools aan AI-workflows

    X64dbg MCP Server biedt MCP-functionaliteit die compatibele AI-clients en agenten kunnen gebruiken.

  • 0 beschikbare tools

    Bekijk hieronder de aanroepbare acties, inclusief namen en beschrijvingen als de server die beschikbaar stelt.

  • Configuratie om direct te kopiëren

    Gebruik de installatievoorbeelden om deze server in je favoriete MCP-client te configureren.

  • Indicatoren van opensource-interesse

    2.2K sterren en 223 forks in de gekoppelde repository.

x64dbg-MCP Server is a native MCP (Model Context Protocol) plugin for x64dbg that exposes the debugger's full functionality over HTTP. Connect any MCP-compatible AI assistant and control x64dbg programmatically: set breakpoints, step through code, read memory, dump registers, and more.

Built with Zig — zero dependencies, single-binary output, cross-compiles to both x32 and x64 from any host. No .NET, no Python, no runtime — just drop the plugin into your x64dbg plugins folder and go.

MCP 2024-11-05 — Streamable HTTP + SSE transports, JSON-RPC 2.0.

Features

  • 84 MCP Tools: Full debugger control — disassembly, stepping, breakpoints, memory allocation, registers, modules, threads, call stack, pattern scanning, string extraction, xrefs, symbols, bookmarks, PE analysis, OEP detection, module dumping, PEB/SEH inspection, tracing, and more.
  • 22 Event Callbacks: Full debugger event coverage — init, stop, breakpoint, exception, step, attach/detach, DLL load/unload, threads, and more.
  • Zero Dependencies: Pure native plugin, no runtime or framework needed.
  • x32 and x64: Single codebase, builds both architectures from one command.
  • Dual Transport: Streamable HTTP + SSE — compatible with any MCP client (new and legacy).
  • Bearer Auth: Mandatory token authentication — auto-generated on first run, required on every request to prevent unauthorized access.
  • Config Dialog: Change IP/port/token from the Plugins menu, auto-restarts the server on save.
  • Auto-Start: MCP server starts automatically when x64dbg launches.
  • Cross-Compile: Build Windows plugins from Linux, macOS, or WSL.

Install

Download the latest release or build from source:

  1. Copy the contents of dist/ into your x64dbg root folder (deploys both x32 and x64)
  2. Launch x64dbg

The MCP server starts automatically. Default ports:

  • x64: 0.0.0.0:9094
  • x32: 0.0.0.0:9095

Usage

Add to your MCP client config (.mcp.json, etc.):

Streamable HTTP (recommended):

json
{
  "mcpServers": {
    "x64dbg": {
      "type": "http",
      "url": "http://localhost:9094/",
      "headers": {
        "Authorization": "Bearer YOUR_TOKEN_HERE"
      }
    }
  }
}

SSE (legacy clients):

json
{
  "mcpServers": {
    "x64dbg": {
      "type": "sse",
      "url": "http://localhost:9094/sse",
      "headers": {
        "Authorization": "Bearer YOUR_TOKEN_HERE"
      }
    }
  }
}

If connecting from WSL or a remote machine, use the host's IP address and set the bind address to 0.0.0.0 in the config dialog.

Example — AI-assisted reverse engineering session:

You:    Load calc.exe and break at the entry point
AI: [calls LoadBinary, SetBreakpoint, run, WaitForPause]
        Loaded calc.exe, hit breakpoint at 0x7FF7A1234000 in calc.exe

You:    What are the current registers?
AI: [calls GetAllRegisters]
        RAX: 0x0, RCX: 0x7FF7A1234000, RDX: 0x1, ...

You:    Read 64 bytes at the current instruction pointer
AI: [calls ReadMemory]
        48 83 EC 28 E8 12 34 00 00 ...

You:    Step over the next 3 instructions and show me the stack
AI: [calls StepOver x3, GetCallStack]
        Stepped to 0x7FF7A1234010, call stack: ...

Tools

72 MCP tools covering the full x64dbg debugging workflow.

Always available

ToolDescription
GetDebugStateCurrent debugger state, PID, instruction pointer
LoadBinaryLoad an executable into the debugger
ExecuteDebuggerCommandRun any x64dbg command
ListCommandsByCategoryList available MCP tools
SearchForStringsSearch process memory for text
GetEventLogLast N debugger events (exceptions, breakpoints, DLL loads)
ClearEventLogClear the event log
EvalExpressionEvaluate any x64dbg expression (address, register, arithmetic)
AttachProcessAttach to a running process by PID
EchoEcho input back
WaitForEventLong-poll for debugger events (breakpoint, pause, resume, exception)

Requires active debug session

ToolDescription
GetCurrentAddressCurrent EIP/RIP with label and comment
DisassembleDisassemble N instructions at an address
DisassembleFunctionDisassemble an entire function by boundaries
ReadMemoryHex dump of process memory
WaitForPauseBlock until target pauses
runResume execution (F9)
StepIntoSingle-step into calls (F7)
StepOverStep over calls (F8)
StepOutRun until return (Ctrl+F9)
PauseDebugPause the target (F12)
StopDebugTerminate debug session
RestartDebugRestart debug session
SetBreakpointSet INT3 breakpoint at address/symbol
SetHardwareBreakpointSet hardware breakpoint (DR0-DR3, read/write/execute)
SetConditionalBreakpointSet breakpoint with condition expression and optional log
EnableBreakpointEnable a breakpoint at a given address
DisableBreakpointDisable a breakpoint without deleting it
ToggleBreakpointToggle a breakpoint between enabled and disabled
DeleteBreakpointRemove a breakpoint
DeleteAllBreakpointsRemove all breakpoints (normal, hardware, memory)
ResetHitCountReset a breakpoint's hit counter to zero
ListBreakpointsList all active breakpoints
GetAllRegistersDump all general-purpose registers
SetRegisterSet a CPU register value
GetCallStackCurrent thread call stack
GetThreadsList all threads with IDs and instruction pointers
SwitchThreadSwitch active thread context
SuspendThreadSuspend a thread by its thread ID
ResumeThreadResume a suspended thread
ListModulesList loaded modules with base addresses and sizes
GetMemoryMapMemory regions with addresses, sizes, and protection
GetDumpableRegionsList committed, readable memory regions
AllocateMemoryAllocate memory in the target process
FreeMemoryFree allocated memory in the target process
WriteMemToAddressPatch memory with hex bytes
RestorePatchesRestore all patches to original bytes
AssembleAssemble an instruction at an address
CommentOrLabelAtAddressAdd comment/label in disassembly
SetBookmarkSet a bookmark at an address
DeleteBookmarkDelete a bookmark
ListBookmarksList all bookmarks
GetImportsShow module import table
GetExportsShow module export table
SearchSymbolsSearch for symbols matching a pattern
ListSymbolsList exported symbols of a module
GetPatchesList all memory patches
FindPatternScan module memory for byte pattern with ?? wildcards
GetStringsExtract ASCII strings from a module's memory
GetReferencesFind CALL/JMP xrefs to a target address
GetFunctionsList analyzed functions with addresses and labels
AnalyzeModulePE structure analysis: sections, EP, image size
DetectOEPDetect Original Entry Point for packed executables
DumpMemorySave memory region to file on disk
DumpModuleDump an entire module to a file
RunToAddressRun until hitting a specific address
TraceIntoStep N instructions recording address + disassembly
FollowPointerDereference pointer chain N levels deep
WatchExpressionsEvaluate multiple expressions in one call
GetSEHChainWalk Structured Exception Handler chain (x32)
GetPEBRead Process Environment Block fields
GetArgumentsRead function arguments from stack/registers
SetMemoryBreakpointSet memory breakpoint (read/write/execute)
SetExceptionBreakpointConfigure exception breakpoint (break or ignore, first/second/all chance)
DeleteExceptionBreakpointDelete an exception breakpoint
AnalyzeCodeRun code analysis (function, module, or control flow)
TraceOverTrace N instructions stepping over calls
SetBreakpointCommandSet a command to execute when a breakpoint is hit
SetBreakpointFastResumeEnable/disable fast resume (auto-continue) on a breakpoint
SaveDatabaseSave the x64dbg database (.dd64/.dd32)

Configuration

Go to Plugins > x64dbg-MCP Server > Configure MCP Server... to change the bind address, port, and auth token.

  • 0.0.0.0 — listen on all interfaces (for WSL/remote access)
  • 127.0.0.1 — local-only access

Authentication

A Bearer token is auto-generated on first run and required on every request. The MCP server has full debugger control and can read/write process memory — all requests without a valid token receive 401 Unauthorized. Click Generate in the config dialog to rotate the token, or Copy to copy it to clipboard. Clients must include the token as an Authorization: Bearer <token> header.

Changes take effect immediately — the server auto-restarts on save. Config is persisted to mcp_config.json next to the x64dbg executable.

Building

Requires Zig 0.16-dev or later. Builds on Windows, WSL, Linux, or macOS.

console
zig build -Doptimize=ReleaseSafe --prefix dist

Output mirrors x64dbg's folder structure — copy the contents of dist/ into your x64dbg root to deploy both architectures at once:

dist/
├── x32/
│   └── plugins/
│       └── x64dbg-MCP-Server.dp32
└── x64/
    └── plugins/
        └── x64dbg-MCP-Server.dp64

Project Structure

├── build.zig                     # build config — x32 + x64 cross-compilation
├── build.zig.zon                 # package manifest
└── src/
    ├── main.zig                  # plugin entry point, menu, callbacks
    ├── core/
    │   ├── bridge.zig            # x64dbg SDK bindings (runtime-resolved)
    │   ├── config.zig            # Win32 config dialog and persistence
    │   └── mcp_server.zig        # HTTP server and JSON-RPC dispatch
    ├── mcp/
    │   ├── json.zig              # JSON writer and parser helpers
    │   └── tools.zig             # MCP tool definitions and handlers
    └── resources/
        └── icons.zig             # embedded PNG icon data

How It Works

The plugin loads into x64dbg at startup, resolves the debugger's API symbols at runtime from x64bridge.dll and x64dbg.dll, then spins up an HTTP server on a background thread. MCP clients connect over HTTP and send JSON-RPC requests to invoke tools — each tool maps directly to x64dbg SDK calls (breakpoints, memory reads, command execution, etc.).

No polling, no external processes — the plugin lives inside x64dbg's address space with direct access to the debugger API.


Disclaimer

This tool is intended for legitimate reverse engineering, malware analysis, security research, and educational purposes only. It provides full debugger control over running processes — including memory read/write, code execution, and process manipulation — over a network interface.

By using this software, you accept full responsibility for how it is used. The author is not liable for any misuse, damage, or legal consequences resulting from the use of this tool. Always ensure you have proper authorization before debugging or analyzing any software.

Do not expose the MCP server to untrusted networks. While Bearer token authentication is enforced, the server communicates over unencrypted HTTP.


License

MIT. See LICENSE.

Made with 🖤 by @duty1g

Gebruik X64dbg MCP Server MCP met meerdere AI-modellen

TypingMind koppelt MCP-tools aan de werkruimte. Zodra X64dbg MCP Server is verbonden, kun je deze dus met verschillende AI-modellen in TypingMind gebruiken, zonder de verbinding voor elk model apart in te stellen. Deze MCP-integratie draait lokaal via de TypingMind MCP-connector op je apparaat.

Installatiehandleiding voor de lokale connector

Gebruik dit als de MCP-server toegang nodig heeft tot lokale bestanden, apps of privébronnen op je computer.

1

Open de MCP-instellingen

Ga in TypingMind naar Instellingen, Geavanceerde instellingen en vervolgens Model Context Protocol. Kies daar Connector instellen.

  1. Open TypingMind in je browser.
  2. Klik op het pictogram Instellingen.
  3. Ga naar Geavanceerde instellingen.
  4. Open het gedeelte Model Context Protocol.
  5. Klik op Connector instellen en kies Dit apparaat.
Instelscherm voor de TypingMind MCP-connector met Dit apparaat geselecteerd
2

Voer de connectoropdracht uit

Kies Dit apparaat, kopieer de opdracht uit TypingMind en voer deze uit in Terminal. Laat het proces draaien zolang je MCP gebruikt.

  1. Kopieer de installatieopdracht die TypingMind toont.
  2. Open Terminal op macOS of Windows Terminal op Windows.
  3. Plak de opdracht en voer deze uit.
  4. Keur de pakketinstallatie goed als Terminal vraagt of je wilt doorgaan.
  5. Laat het proces in het Terminal-venster draaien zolang je MCP-tools gebruikt.
3

Voeg X64dbg MCP Server toe als server

Klik op Servers bewerken zodra de connectorstatus Gereed is en plak de MCP-serverconfiguratie.

  1. Wacht tot de connectorstatus Gereed aangeeft.
  2. Klik op Servers bewerken.
  3. Plak de MCP-serverconfiguratie van X64dbg MCP Server.
  4. Sla de serverlijst op.
  5. Vernieuw om te controleren of de connector nog steeds klaar is voor gebruik.
MCP-instellingen van TypingMind met een actieve server en de knop Servers bewerken
{
  "mcpServers": {
    "x64dbg-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Gebruik de verbinding met verschillende modellen

Sla de serverlijst op, open Plug-ins en schakel de MCP-tools van X64dbg MCP Server in. Selecteer vervolgens een ondersteund AI-model in TypingMind en gebruik de tools in de chat of wijs ze toe aan een AI-agent.

  1. Open de pagina Plug-ins in TypingMind.
  2. Schakel de MCP-tools van X64dbg MCP Server in.
  3. Start een chat en kies het AI-model dat je wilt gebruiken.
  4. Gebruik de MCP-tools in een chat of wijs ze toe aan een AI-agent.
  5. Schakel wanneer nodig over naar een ander AI-model zonder opnieuw verbinding te maken met MCP.
TypingMind-chat met ingeschakelde MCP-tools en een geselecteerd AI-model
Kun je X64dbg MCP Server gebruiken om me hiermee te helpen?
X64dbg MCP Server
Zeker. Ik heb het gelezen.
Dit vond ik met X64dbg MCP Server.

Veelgestelde vragen

Waarvoor wordt de MCP-server X64dbg MCP Server gebruikt?

X64dbg MCP Server is een MCP-server waarmee compatibele AI-clients verbinding kunnen maken met externe tools en context. In TypingMind hoef je deze MCP-server maar één keer toe te voegen om de tools beschikbaar te maken in je AI-werkruimte.

Kan ik X64dbg MCP Server MCP met meerdere AI-modellen in TypingMind gebruiken?

Ja. TypingMind verbindt MCP-tools op werkruimteniveau. Daardoor kun je X64dbg MCP Server gebruiken met verschillende AI-modellen, zoals Claude, ChatGPT, Gemini of andere modellen die je in TypingMind hebt ingesteld, zonder de MCP-server voor elk model afzonderlijk in te stellen.

Waarom X64dbg MCP Server MCP gebruiken met TypingMind?

TypingMind is een van de beste interfaces voor chats met LLM's, omdat het meerdere AI-modellen, prompts, plug-ins, AI-agenten, API-sleutels en MCP-tools samenbrengt in één werkruimte. Als X64dbg MCP Server verbonden is, kun je de MCP-tools ervan gebruiken met je favoriete modellen en je chatworkflow overzichtelijk houden in TypingMind.

Hoe verbind ik X64dbg MCP Server MCP met TypingMind?

X64dbg MCP Server werkt via de lokale MCP-connector van TypingMind. Dit is de beste optie als de MCP-server toegang nodig heeft tot lokale bestanden, desktopapps, opdrachtregeltools of privébronnen op je computer.

Welke tools biedt X64dbg MCP Server MCP in TypingMind?

X64dbg MCP Server biedt MCP-functies die je kunt inschakelen via de pagina Plug-ins in TypingMind. Je kunt ze gebruiken in chats of toewijzen aan AI-agenten.

Moet ik mijn API-sleutels delen met TypingMind om X64dbg MCP Server MCP te gebruiken?

Nee. TypingMind werkt in de eerste plaats lokaal en laat je de controle houden over je modelaanbieders, API-sleutels, prompts en MCP-configuratie. Als X64dbg MCP Server authenticatie vereist, voeg je bij het maken van de verbinding de vereiste headers, OAuth-instellingen of lokale configuratie voor die MCP-server toe.

Gerelateerde MCP-servers

Toon alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇