Skip to main content
Glama
z-x64dbg-mcp
by Zekiog

Z-x64dbg-MCP Server

合并并优化的 x64dbg MCP 服务器 - 结合了 duty1g/x64dbg-mcp-server(71 个工具,Zig)和 bromoket/x64dbg_mcp(23 个超级工具,TypeScript)的最佳特性,形成一个统一的高性能逆向工程平台。

License: MIT MCP Server

🚀 功能特性

  • 71+ MCP 工具 - 来自两种实现的统一工具集

  • 双架构 - Zig(原生,零依赖)+ TypeScript(npm 生态)

  • HTTP + SSE + stdio - 多种传输协议

  • x32 与 x64 支持 - 完整的调试器覆盖

  • 22+ 事件回调 - 断点、内存、跟踪和调试事件

  • REST API 桥接 - 151+ 个 AI 代理端点

  • Claude Code 集成 - 直接 AI 驱动的逆向工程

Related MCP server: x64dbg MCP Server

📦 安装

快速安装(PowerShell)

# Clone the repository
git clone https://github.com/Zekiog/z-x64dbg-mcp.git
cd z-x64dbg-mcp

# Run the unified installer
.\install.ps1

手动设置

1. 安装 x64dbg 插件

  • 将 plugin/z-x64dbg-mcp.dp32 复制到 x32dbg/plugins/

  • 将 plugin/z-x64dbg-mcp.dp64 复制到 x64dbg/plugins/

2. 启动 MCP 服务器

# Zig build (native, recommended)
zig build run

# Or TypeScript (npm ecosystem)
cd server
npm install
npm start

3. 配置 Claude Code

添加到你的 claude_desktop_config.json:

{
  "mcpServers": {
    "z-x64dbg": {
      "command": "node",
      "args": ["/path/to/z-x64dbg-mcp/server/dist/index.js"],
      "env": {
        "X64DBG_HOST": "localhost",
        "X64DBG_PORT": "31964"
      }
    }
  }
}

🛠️ 工具类别

类别

工具数

描述

断点

12

硬件、软件和内存断点

内存

15

读取、写入、搜索、转储和保护

反汇编

8

指令、分析和导航

跟踪

10

单步、跟踪和执行日志

调试控制

14

启动、停止、暂停和附加

PE 与模块

7

转储、分析和模块管理

反反调试

5

绕过常见的反调试技术

📊 架构

┌─────────────────┐     ┌──────────────────┐     ┌─────────────────┐
│   AI Client     │────▶│  MCP Server      │────▶│  x64dbg Plugin  │
│  (Claude Code)  │◀────│ (Zig/TypeScript) │◀────│  (C++ Bridge)   │
└─────────────────┘     └──────────────────┘     └─────────────────┘
         │                       │                        │
         │  MCP Protocol         │  REST API              │  Debugger
         │  (stdio/SSE/HTTP)     │  (localhost:31964)     │  Events

🔧 开发

从源码构建

Zig(原生)

zig build
zig build run

TypeScript(服务器)

cd server
npm install
npm run build
npm start

插件(C++)

cd plugin
mkdir build && cd build
cmake .. -G "Visual Studio 17 2022"
cmake --build . --config Release

测试

# Run test suite
npm test

# Integration tests
npm run test:integration

📖 文档

🤝 致谢

本项目合并并优化了:

📄 许可证

MIT 许可证 - 详见 LICENSE。

🌟 展示

示例:AI 驱动的断点分析

{
  "tool": "x64dbg.set_breakpoint",
  "arguments": {
    "address": "0x140001000",
    "type": "hardware",
    "condition": "rax == 0x42"
  }
}

由 Zekiog 用 ❤️ 构建 | 报告问题

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      C
      maintenance
      Enables AI-assisted reverse engineering and debugging through x64dbg integration. Provides 40+ tools for breakpoint management, memory operations, register manipulation, code analysis, process control, and advanced debugging features.
      22
      -
    • A
      license
      A
      quality
      D
      maintenance
      Enables AI assistants to perform reverse engineering and debugging of Windows executables through x64dbg, with tools for loading executables, controlling execution, analyzing memory and security, and generating reports.
      39
      58 npm
      9
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Connects AI agents to IDA Pro and x64dbg for unified static and dynamic reverse engineering, enabling coordinated analysis, debugging, and patch planning through a local MCP daemon.
      16
      MIT
    • A
      license
      B
      quality
      B
      maintenance
      MCP server that connects WinDbg, IDA Pro, and x64dbg to AI assistants for reverse engineering and Windows security research, offering 160+ tools for debugging, analysis, and cross-debugger workflows.
      169
      31
      MIT