Until December 31: monthly plans give up to 2.5 times their price in credit. Scale is $200 a month with $400 of usage credit. See plans →

x64dbg MCP

Set up an x64dbg MCP server with Claude Code or Cline on Abliterator: compare duty1g's plugin, x64dbg-automate and others, then debug a program you built.

Published x64dbgMCPReverse EngineeringDebuggingClaude Code

Quick answer

An x64dbg MCP server is a debugger plugin that lets an AI client set breakpoints, step through code and read registers and memory in x64dbg or x32dbg. duty1g's x64dbg-MCP Server 1.9 exposes 80 tools over streamable HTTP with a bearer token: add it to Claude Code or Cline, point the client at Abliterator and pick kimi-k3.1-pro-abliterated. This follows release v1.9, commit 31c05bc.

What an x64dbg MCP server does

An x64dbg MCP server lets an AI client drive x64dbg, the open-source Windows debugger, through the Model Context Protocol. The model calls tools that load a program, set breakpoints, run to them, read registers and memory, disassemble a function and add labels. Unlike a Ghidra or IDA server, which reads a file, a debugger server runs the program. x64dbg has no official MCP server; several community plugins fill the gap. These are the main ones, from their repositories (checked 2026-12-03):

Server Stars Transport Tools x64dbg / x32dbg License Latest Maintained
duty1g/x64dbg-mcp-server 2,941 Streamable HTTP and SSE, served from inside x64dbg 80 Both, one release MIT v1.9, 2026-11-22 Yes
AgentSmithers/x64DbgMCPServer 754 Streamable HTTP and SSE on port 50300 Not stated in the README Both; x32 needs .NET Framework 2.0 and 3.5 No license file v1.6, 2026-06-15 Yes; last commit 2026-10-04
Wasdubya/x64dbgMCP 620 stdio, through a Python bridge to the plugin on 127.0.0.1:8888 56 in x64dbg.py; the README says "40+" Both GPL-3.0 build1.1, 2026-03-15 Slowing; last commit 2026-06-05
SetsunaYukiOvO/x64dbg-mcp 565 Streamable HTTP on /mcp, SSE on /sse 79, plus 15 resources and 10 prompts Both MIT v1.0.12, 2026-10-28 Yes
x64dbg-automate with its Python client (Darius Houle) 213 and 57 stdio 48 Both MIT Client 0.9.2 on PyPI, 2026-07-28 Yes; last commit 2026-11-24
  • Tool counts come from the source: the tool table in duty1g's tools.zig, the @mcp.tool functions in Wasdubya's x64dbg.py and x64dbg-automate's mcp_server.py, and SetsunaYukiOvO's README.
  • Defaults differ. SetsunaYukiOvO's plugin starts with memory writes, register writes and script execution turned off in its config.json. AgentSmithers' plugin listens on all interfaces by default (IpAddress = "+" in McpServerConfig.cs). duty1g's plugin requires a bearer token on every request.
  • x64dbg-automate works differently: a ZeroMQ plugin inside x64dbg and an MCP server that the client starts with pip install x64dbg_automate[mcp]. Its author also publishes Claude Code skills for it (x64dbg-skills). Use it if you want a stdio server or scripted Python sessions next to the agent.

This guide uses duty1g's x64dbg-MCP Server 1.9:

  • It is the most starred, with about four times the stars of the next server, and it ranks first for "x64dbg mcp".
  • One zip holds both plugins: x64dbg-MCP-Server.dp64 and x64dbg-MCP-Server.dp32, written in Zig with no .NET, Python or other runtime to install.
  • Every request needs a token. The plugin generates a 32-character token on first run and answers 401 without it.
  • The server starts with x64dbg and runs inside the debugger, so there is no second process to manage.

Two things in the README are out of date at this release. It says the server listens on 0.0.0.0 by default; the source binds 127.0.0.1 unless you change it (config.zig). And LoadBinary takes an arguments parameter that the handler does not pass to the program, so the sample below needs no command line.

This guide follows x64dbg-MCP Server v1.9, commit 31c05bc, checked 2026-12-03. The configuration was verified against that commit's mcp_server.zig, config.zig and tools.zig, and against the Claude Code and Cline docs linked below. It was not run against Abliterator.

Only for systems you own or have written permission to test. A debugger runs the program, so use your own builds or practice programs whose authors allow it, inside an isolated Windows VM. Respect software licenses and the law where you are: this guide does not cover bypassing anti-debugging checks, unpacking protected commercial software or getting around license checks.

How the server reaches a model

An MCP server has no model of its own; the MCP client brings one. With x64dbg-MCP Server the chain has three parts:

  1. The plugin runs inside x64dbg and serves MCP over HTTP on 127.0.0.1:9094 for x64dbg, or 9095 for x32dbg. It maps each tool call to a debugger SDK call (mcp_server.zig).
  2. The MCP client, Claude Code or Cline here, connects to that URL with the token, gives the tools to the model and runs the calls the model asks for. Each tool carries a readOnlyHint annotation, so the client can tell ReadMemory from WriteMemToAddress.
  3. The model is Abliterator. Claude Code reaches it through the Anthropic Messages API at https://abliterator.ai; Cline through the OpenAI-compatible API at https://abliterator.ai/v1. Both send the tools as native tool calls, which both models support (tool calling).

The README shows a generic mcpServers block with "type": "http". Claude Code and Cline accept the same URL and header in their own formats, shown below.

Before you start

  • A Windows 10 or 11 VM with snapshots. Claude Code runs natively on Windows 10 1809 or later (setup docs). Keep the VM off your production network; the only traffic that has to leave it is the client's calls to Abliterator.
  • x64dbg, snapshot 2026.05.27. Extract it to a folder your user can write to; the archive holds release\x64\x64dbg.exe, release\x32\x32dbg.exe and release\x96dbg.exe.
  • A C compiler for the sample, such as the Visual Studio Build Tools.
  • Claude Code, or VS Code with Cline, and an Abliterator key from /keys. Create a key for this VM only, with a spend limit (authentication). New accounts get $10 of credit.

Install x64dbg-MCP Server 1.9

In PowerShell in the VM, download the release, check its SHA-256 (published with release v1.9 and checked 2026-12-03) and extract it into x64dbg's release folder. This example assumes x64dbg is in C:\Tools\x64dbg:

Invoke-WebRequest -Uri https://github.com/duty1g/x64dbg-mcp-server/releases/download/v1.9/x64dbg-MCP-Server-v1.9.zip -OutFile x64dbg-MCP-Server-v1.9.zip
(Get-FileHash .\x64dbg-MCP-Server-v1.9.zip -Algorithm SHA256).Hash -eq "B7D46284190ACE5BDE7071B98A2AEDA970C9588AEE5A31EF3E6BE1630D34F8EE"
Expand-Archive .\x64dbg-MCP-Server-v1.9.zip -DestinationPath C:\Tools\x64dbg\release

The second line prints True when the hash matches. The archive puts x64dbg-MCP-Server.dp64 in release\x64\plugins\ and x64dbg-MCP-Server.dp32 in release\x32\plugins\. Then:

  1. Start release\x64\x64dbg.exe. The MCP server starts with it.
  2. Open Plugins > x64dbg-MCP Server > Configure MCP Server.... Check that the address is 127.0.0.1, and copy the token. The plugin saves both in mcp_config.json next to x64dbg.exe.
  3. Check the server from PowerShell, with your token in place of YOUR_X64DBG_TOKEN:
Invoke-RestMethod -Uri http://127.0.0.1:9094/ -Headers @{ Authorization = "Bearer YOUR_X64DBG_TOKEN" }

The reply names x64dbg-MCP Server, version 1.9 and transport streamable-http. Without the header, the plugin answers 401 with {"error":"Unauthorized"}. For 32-bit programs, start x32dbg.exe instead; it has its own token and listens on port 9095.

Route 1: Claude Code

Point Claude Code at Abliterator with the variables from the Claude Code guide. On Windows the simplest place for them is the env block of %USERPROFILE%\.claude\settings.json, since Claude Code reads ~/.claude as %USERPROFILE%\.claude there (settings docs):

{
  "env": {
    "ANTHROPIC_BASE_URL": "https://abliterator.ai",
    "ANTHROPIC_AUTH_TOKEN": "sk-abl-v1-...",
    "ANTHROPIC_MODEL": "kimi-k3.1-pro-abliterated",
    "ANTHROPIC_DEFAULT_OPUS_MODEL": "kimi-k3.1-pro-abliterated",
    "ANTHROPIC_DEFAULT_SONNET_MODEL": "kimi-k3.1-pro-abliterated",
    "ANTHROPIC_DEFAULT_HAIKU_MODEL": "deepseek-v4.1-flash-abliterated",
    "CLAUDE_CODE_SUBAGENT_MODEL": "kimi-k3.1-pro-abliterated"
  }
}

Then add the plugin as an HTTP server with the claude mcp add syntax from Claude Code's MCP docs, passing the token with --header:

claude mcp add --transport http x64dbg http://127.0.0.1:9094/ --header "Authorization: Bearer YOUR_X64DBG_TOKEN"
claude mcp list

claude mcp list prints ✔ Connected next to a working server while x64dbg is open. Add a second entry named x32dbg on port 9095 if you also debug 32-bit programs.

Start the session without Claude Code's shell tools and without the tools that change the target or run arbitrary debugger commands:

mkdir C:\re-lab; cd C:\re-lab
claude --disallowedTools "Bash" "PowerShell" "mcp__x64dbg__WriteMemToAddress" "mcp__x64dbg__Assemble" "mcp__x64dbg__SetRegister" "mcp__x64dbg__AllocateMemory" "mcp__x64dbg__ExecuteDebuggerCommand" "mcp__x64dbg__DumpMemory" "mcp__x64dbg__DumpModule"

Per Claude Code's CLI reference, a bare tool name in --disallowedTools removes that tool from the model's context, and MCP tools are named mcp__<server>__<tool> (permissions). Claude Code asks before every other tool call you have not allowed. Inside the session, /mcp shows x64dbg with its tools.

Behind a custom ANTHROPIC_BASE_URL, Claude Code defers MCP tools and loads them through tool search; v2.1.305 and later retry without it if the endpoint rejects the extra fields (MCP docs). To load all 80 tools up front instead, add "ENABLE_TOOL_SEARCH": "false" to the env block.

Route 2: Cline

Cline reaches Abliterator through its OpenAI Compatible provider: Base URL https://abliterator.ai/v1, your key, and kimi-k3.1-pro-abliterated or deepseek-v4.1-flash-abliterated as the Model ID, as set out in the Cline guide. To add the plugin, click the MCP Servers icon in the Cline panel, open Configure and click Configure MCP Servers. Add this entry under mcpServers, in the format of Cline's MCP docs:

{
  "mcpServers": {
    "x64dbg": {
      "type": "streamableHttp",
      "url": "http://127.0.0.1:9094/",
      "headers": {
        "Authorization": "Bearer YOUR_X64DBG_TOKEN"
      },
      "disabled": false,
      "autoApprove": []
    }
  }
}
Field Why
type: "streamableHttp" Without it Cline falls back to the legacy SSE transport, per its docs
headers The plugin rejects any request without the bearer token
autoApprove: [] Cline asks before every tool call. Add read-only tools such as GetAllRegisters and ReadMemory here once you trust the setup; leave WriteMemToAddress, Assemble and ExecuteDebuggerCommand out

Cline can also run terminal commands. Approve them one at a time in this VM.

First task: a program you compiled

The safest first target is a program you wrote, so you can check every claim the model makes. This one hashes three fixed words with a 32-bit FNV-1a function and prints the results. It takes no arguments, because LoadBinary does not pass any at v1.9. Save it as C:\re-lab\fnvsum.c:

#include <stdint.h>
#include <stdio.h>
#include <string.h>

static uint32_t fnv1a32(const char *s, size_t n) {
    uint32_t h = 0x811C9DC5u;
    for (size_t i = 0; i < n; i++) {
        h ^= (unsigned char)s[i];
        h *= 0x01000193u;
    }
    return h;
}

int main(void) {
    static const char *words[] = {"alpha", "bravo", "charlie"};
    for (int i = 0; i < 3; i++) {
        uint32_t h = fnv1a32(words[i], strlen(words[i]));
        printf("%08x  %s\n", h, words[i]);
    }
    return 0;
}

Build it in an x64 Native Tools Command Prompt without debug symbols, so the model has to work out what the function does. /Ob0 turns off inline expansion (MSVC docs), which keeps fnv1a32 a separate function:

cd C:\re-lab
cl /nologo /O1 /Ob0 fnvsum.c
fnvsum.exe

The first line of output is 5d8b6dab alpha. Keep x64dbg open, start the client in C:\re-lab and send these prompts one at a time. Each names the tools, so you can follow what the model calls.

1. Load and survey the program.

Call GetDebugState, then LoadBinary with filePath C:\re-lab\fnvsum.exe. Then call ListModules and AnalyzeModule for fnvsum.exe and summarize the entry point, sections and image size.

LoadBinary starts a debug session and pauses at the system breakpoint. AnalyzeModule returns the PE sections, entry point and image size.

2. Find and explain the hash function.

Call AnalyzeCode on fnvsum.exe. Then call FindPattern with the pattern "93 01 00 01" in fnvsum.exe, and DisassembleFunction at the first hit. Explain the function step by step and name the algorithm if you recognize it.

93 01 00 01 is the constant 0x01000193 in little-endian byte order. In a build like this the multiply takes it as an immediate operand, so the pattern lands inside the hash function. A correct answer names 32-bit FNV-1a: the function starts from 0x811C9DC5, XORs each byte into the hash and multiplies by 0x01000193.

3. Break on the function and read its arguments.

Set a breakpoint at the start of that function with SetBreakpoint, then call run. If it stops at the program's entry point first, call run again. When it stops in the function, call GetArguments with count 2 and GetAllRegisters, then ReadMemory at the first argument with size 16.

On x64 Windows the first two integer arguments arrive in RCX and RDX (Microsoft's x64 calling convention). GetArguments reads them: a pointer to the string and its length, 5 on the first call. ReadMemory returns a hex dump with ASCII, which shows alpha at that pointer.

4. Read the return value.

Call StepOut, then GetAllRegisters. Report the low 32 bits of RAX as hex and compare them with what the function should return for "alpha".

StepOut runs to the end of the function. The low 32 bits of RAX hold the hash, 5d8b6dab, which matches the program's first output line. Check the algorithm a second way from PowerShell; the two values match if the model is right:

python -c "import functools; print('%08x' % functools.reduce(lambda h, b: ((h ^ b) * 0x01000193) & 0xffffffff, b'alpha', 0x811c9dc5))"

5. Label the function and save.

Label the function start fnv1a32 with CommentOrLabelAtAddress, mode Label. Add a comment there that summarizes what it does. Then call SaveDatabase and StopDebug.

SaveDatabase writes the labels and comments to x64dbg's database, so they are there the next time you open the program. Review them in x64dbg before you rely on them. For the analysis side of the work on real samples, such as indicator extraction and report writing, see malware analysis, and use the Ghidra MCP guide for static analysis before you run anything.

Text inside a program, such as its strings, comes from whoever wrote it and can be written to read like instructions to the model. Keep the write tools off, approve each run and step, revert the VM snapshot after a session, and confirm the model's conclusions in the debugger before they go into a report.

Which model to use

Both models support tool calling (tool calling) and a 1,048,576-token context. They refuse far less than the originals: refusals fell from 94% to 1% on DeepSeek V4.1 Flash and from 94% to 3% on Kimi K3.1 Pro (benchmarks).

Model Use it for Notes
kimi-k3.1-pro-abliterated Long sessions that chain breakpoints, steps and memory reads across a program Terminal-Bench 4.0 went from 66.6 to 62.3 after abliteration, a drop that is plausible but not statistically shown (benchmarks), so try it on a program you know first
deepseek-v4.1-flash-abliterated Short questions: one register dump, one function, one memory region On security suites it stayed within noise of the original: CyberMetric-2000 94.2 → 93.8, InterCode-CTF 94.2 → 95.5, Cybench 98.3 → 96.6 (benchmarks)

Each turn resends the tool definitions and the conversation, including earlier register dumps and disassembly. Abliterator caches the repeated prefix automatically and bills it at $0.40 per 1M tokens on kimi-k3.1-pro-abliterated and $0.10 on deepseek-v4.1-flash-abliterated (prompt caching). Ask for small ranges: ReadMemory reads at most 4,096 bytes per call.

Why a hosted model sometimes stops

Hosted frontier models run cyber safeguards that judge each request, and a debugging session on an unknown binary can trip them even when the work is defensive. The providers say so in their own policies:

  • Anthropic. Its Usage Policy, effective November 12, 2026, says it "does not prohibit security research, testing, or tool development conducted on systems you own or operate", and that "encountering a block does not by itself indicate a violation". Its Cyber Verification Program lists malware analysis under Defense Access, the tier individuals can apply for on paid plans. Enrolled users "may experience some model refusals and classifier blocks for allowed security work".
  • OpenAI. Its Usage Policies, effective November 20, 2026, prohibit "circumventing our safeguards". Its Daybreak Trusted Access program lists malware analysis among the Blue tier's use cases and says "Some safeguards can still apply after approval, even with Daybreak Red."

If your team works under one of these programs, use it. Abliterator serves models with the refusal behavior removed from the weights, so the analysis does not depend on a safeguard's judgment of each request. Some uses are always prohibited; see the acceptable use policy. More on each provider: Claude refused and ChatGPT refused.

Troubleshooting

Symptom Cause Fix
401 with {"error":"Unauthorized"} The token is wrong, or the header lacks the Bearer prefix (issue #5) Copy the token from Configure MCP Server... and send Authorization: Bearer <token>
claude mcp list shows ✘ Failed to connect, or Cline shows the server as failed x64dbg is closed, or the port does not match Start x64dbg first; the server runs inside it. Use 9094 for x64dbg and 9095 for x32dbg, or the port set in the dialog
Tool requires an active debug session. The model called a debugging tool before loading a program Tell it to call LoadBinary or AttachProcess first
The plugin is missing from the Plugins menu The .dp64 file is in the x32 folder, or the reverse Put x64dbg-MCP-Server.dp64 in release\x64\plugins\ and x64dbg-MCP-Server.dp32 in release\x32\plugins\
The program behaves as if it got no arguments At v1.9, LoadBinary sends init "<path>" and ignores its arguments parameter Use test programs that need no command line, like the sample above
Result too large — response buffer overflow A result passed the plugin's 128 KB response buffer Ask for fewer instructions or a smaller memory range
400 that names defer_loading or tool_reference Claude Code sent tool-search fields with the request Set ENABLE_TOOL_SEARCH to false, or update Claude Code to v2.1.305 or later
404 Model "claude-..." is not available on abliterator A Claude Code model alias is not pinned Set all the model variables in Route 1

Frequently asked questions

What is x64dbg MCP?

x64dbg MCP is the name of several community plugins that connect the x64dbg and x32dbg Windows debuggers to AI clients through the Model Context Protocol. The model can then load a program, set breakpoints, step, and read registers and memory. The most starred is duty1g's x64dbg-MCP Server, with 2,941 GitHub stars (checked 2026-12-03).

Does x64dbg have an official MCP server?

No. The x64dbg project's own releases and README list no MCP server. MCP support comes from community plugins such as duty1g's x64dbg-MCP Server, x64dbg-automate's MCP server, SetsunaYukiOvO's x64dbg-mcp and Wasdubya's x64dbgMCP.

Does x64dbg MCP work with x32dbg?

Yes. duty1g's release ships a .dp64 plugin for x64dbg and a .dp32 plugin for x32dbg. The 64-bit plugin listens on port 9094 and the 32-bit one on 9095, so you add a separate MCP server entry for each debugger you use.

Can x64dbg MCP use a model other than Claude?

Yes. The plugin has no model of its own; the MCP client supplies it. Claude Code and Cline both accept a custom endpoint, so either can drive x64dbg with kimi-k3.1-pro-abliterated or deepseek-v4.1-flash-abliterated on Abliterator.

Try it in your browser.

Ask it something your usual model refuses.

Start a chat

No sign-up to try. $10 free when you verify your email.