ctxdebug
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ctxdebugAnalyze C:\dumps\crash.dmp and decompile the crashing function."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
▎ Overview
ctxdebug is an MCP server platform that connects WinDbg, IDA Pro 9.x, and x64dbg to AI coding assistants for reverse engineering and Windows security research.
One stdio interface. 160+ tools. Three debuggers, one mission control.
The idea. MCO turns your debuggers into MCP (Model Context Protocol) tool servers. You talk to Claude, Kiro, or any MCP-compatible client — it talks to your debuggers. No copy-pasting output. No switching windows. No manual data correlation between tools.
One round trip. You say "analyze this crash dump and find the root cause." MCO opens the dump in WinDbg, runs
!analyze -v, extracts the faulting address, pivots to IDA Pro to decompile the crashing function, and returns a combined report with pseudocode and caller chain.
Related MCP server: procmon-mcp
▎ Demo
▎ Launch Sequence
T-2 — Requirements
Python 3.11+
OS Windows 10 / 11
At least one debugger — WinDbg (Windows SDK) · IDA Pro 9.x · x64dbg
T-1 — Install
git clone https://github.com/DdUdle/ctxdebug.git
cd ctxdebug
pip install -e .T-0 — Register servers
Individual servers:
claude mcp add windbg -- python windbg_mcp.py
claude mcp add ida -- python ida_mcp.py
claude mcp add x64dbg -- python -m agent --mcp
claude mcp add mco -- python mco_orchestrator.py
claude mcp add mco-sessions -- python mco_sessions.pyOr use the unified gateway — one server, every tool:
claude mcp add mco-gateway -- python mco_gateway.pySee mcp_config_example.json for full JSON configuration with environment variables.
LIFTOFF — Test it
Once a server is registered, ask your AI client:
Open C:\dumps\crash.dmp, run a full crash analysis,
and decompile the function at the fault address.MCO chains windbg_open_dump → windbg_analyze_crash → mco_pivot_to_ida automatically and returns pseudocode with the caller chain.
▎ Features
Capability | What it does |
Real-time debugger control | Run, pause, step, and inspect a live process through x64dbg. Set breakpoints on entire API groups ( |
Cross-debugger pivoting | Take an address from a WinDbg crash dump and jump straight to IDA Pro decompilation, callers, and callees with one tool call. |
Autonomous analysis agent | The x64dbg server ships an optional ReAct reasoning agent ( |
Persistent memory | The agent remembers packer signatures, anti-debug patterns, and past-session insights, and recalls them automatically on new targets. |
Session recording | Every tool call can be logged to SQLite with full-text search (FTS5). Replay a timeline, diff two sessions, or export a full Markdown report. |
Anti-debug detect & bypass | Static scan (IDA imports/patterns) + dynamic scan (x64dbg PEB/RDTSC) combined into one report, with automatic PEB patching and instruction-level bypass patches. |
▎ Architecture
Transport — stdio JSON-RPC (MCP
2024-11-05spec)IDA communication — HTTP REST to
localhost:2022, auto-discovers endpoint from 6 candidatesx64dbg communication — binary framing over named pipe (
X64Amagic + uint32 length + 8-byte padding + JSON)Agent reasoning — ReAct loop with pluggable LLM backends (Claude, Groq, OpenRouter, local Ollama, or heuristics-only)
Sessions — SQLite with FTS5 full-text search, WAL mode, thread-safe
Gateway — spawns sub-servers as child processes, proxies all tool calls through one stdio connection
▎ Fleet — Servers
Server | File | What it does | Tools |
|
| Crash dumps, heap analysis, shadow stack, kernel debugging | 70+ |
|
| Decompilation, xrefs, type recovery, binary patching | 32+ |
|
| Dynamic analysis, ReAct agent, anti-debug bypass, memory patching | 38+ |
|
| Cross-debugger compound workflows | 7 |
|
| Session recording, FTS search, Markdown export | 13 |
|
| Unified proxy — all servers through one connection | all |
▎ Ground Setup — Debuggers
Needs cdb.exe from the Windows SDK. Default path:
C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\cdb.exeSet WINDBG_MCP_CDB if your path differs. No pre-launch needed — tools open dumps or attach on demand.
Open IDA Pro 9.x with a binary loaded.
In the Python console, run:
exec(open(r'path\to\mco\ida_server_plugin.py').read())HTTP server starts on port
2022.
Build the C++ plugin:
cd agent\plugins build_plugin.batCopy
mco_agent.dp64to x64dbg's plugin directory.Restart x64dbg — the plugin exposes named pipe
\\.\pipe\x64dbg_ai_agent.
▎ Key Workflows
Crash → source code (one command)
mco_crash_to_source(dump_path="C:\\dumps\\crash.dmp")Opens the dump, runs !analyze -v, extracts the faulting address, decompiles the crashing function in IDA, and returns pseudocode with callers.
Anti-debug detection & bypass
mco_bossix_report()
bossix_hide() # PEB patch
bossix_patch(address) # NOP / flip JCC at checkPivot any address to pseudocode
mco_pivot_to_ida(address="0x7FF712340000")Autonomous, goal-driven analysis
agent_analyze(goal="Find the unpacking loop and identify the OEP")The agent plans a sequence of tool calls, executes them, and reports findings — with or without an LLM backend.
Session recording
session_start(name="chrome uaf analysis")
# ... do your work ...
session_end(notes="UAF at CRenderObject::Destroy")
session_export_markdown(session_id=1)▎ x64dbg Server Modes
Mode | Command |
Tool-only (default) |
|
Claude reasoning |
|
Local Ollama |
|
Groq (free tier) |
|
OpenRouter |
|
Interactive CLI |
|
▎ Environment Variables
Variable | Server | Purpose |
| windbg | Path to cdb.exe |
| ida | IDA HTTP host (default: |
| ida | IDA HTTP port (default: |
| x64dbg | Path to x64dbg.exe |
| x64dbg | Named pipe path |
| x64dbg | Only needed with |
| x64dbg | Only needed with |
| sessions | SQLite database path |
| gateway | Comma-separated subset of servers to enable |
▎ Project Structure
mco/
├── windbg_mcp.py # WinDbg MCP server (production, 3000+ lines)
├── ida_mcp.py # IDA Pro MCP server
├── ida_server_plugin.py # IDA Python plugin (starts HTTP server)
├── mco_orchestrator.py # Cross-debugger meta-tools
├── mco_sessions.py # Session recording (SQLite + FTS5)
├── mco_gateway.py # Unified gateway proxy
├── agent/
│ ├── __main__.py # x64dbg MCP entry point + LLM backend selection
│ ├── core.py # ReAct agent (Observe → Think → Act)
│ ├── memory.py # Persistent memory store (~/.x64ai/)
│ ├── bridge.py # Named-pipe IPC to x64dbg plugin
│ ├── mcp_server.py # Tool definitions (38+)
│ ├── skills/ # Modular skill implementations
│ └── plugins/
│ ├── x64dbg_plugin.cpp
│ └── build_plugin.bat
├── mcp_config_example.json # Ready-to-use MCP client config
└── pyproject.toml▎ Development
git clone https://github.com/DdUdle/ctxdebug.git
cd ctxdebug
pip install -e ".[dev]"
pytest▎ Contributing
Contributions are welcome. Please open an issue before starting large changes so the approach can be discussed first.
▎ License
MIT — see LICENSE.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityFmaintenanceMCP server for reverse engineering that enables interaction with IDA Pro for analysis tasks such as decompilation, disassembly, and memory engagement reports.2446MIT
- AlicenseBqualityDmaintenanceAn MCP server that provides AI assistants with real-time access to Windows internals including processes, kernel traces, event logs, services, drivers, and PE analysis.1878MIT
- Alicense-qualityDmaintenanceAn enhanced MCP server for IDA Pro that integrates bulk binary export, multi-instance management via Broker mode, and 80+ analysis tools for AI-assisted reverse engineering.6MIT
- Flicense-qualityBmaintenanceA local, privacy-first MCP server that orchestrates Ghidra, Binary Ninja, x64dbg, and system tools to provide AI assistants with powerful binary analysis capabilities.
Related MCP Connectors
Driflyte MCP server which lets AI assistants query topic-specific knowledge from web and GitHub.
Security-first WordPress MCP server. 129 tools for Claude, ChatGPT, Gemini. Free on wp.org.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/DdUdle/ctxdebug'
If you have feedback or need assistance with the MCP directory API, please join our Discord server