pwndbg
An MCP tool endows AI agent with the capability to debug ELF
claude mcp add --transport stdio rocketmadev-pwndbg-mcp uvx pwndbg-mcp
How to use
pwndbg-mcp is an MCP server that enables an AI agent to interact with and debug ELF binaries using pwndbg via GDB. It exposes a set of GDB-related capabilities through the MCP interface, including loading executables, issuing debug commands, inspecting process state, and interacting with pwndbg features like context, heap, and vmmap. The server defaults to listening on localhost:8780 and uses an HTTP streamable transport, enabling integration with agents that communicate over HTTP/SSE. Available tools include commands to load executables into the debug session, send commands to the debugger, read and interrupt the process, and utilize pwndbg aliases for quick inspection of program state. It also supports decomp2dbg integration through a dedicated command pathway to display decompiled sections when connected. When running locally, you can interact with pwndbg-mcp via the provided CLI options or through UV to manage dependencies and execution environments.
How to install
Prerequisites:
- Python 3.10+ installed on your system
- Git installed
- Optional: the UV toolchain for Python-based MCP tooling
Install steps:
-
Clone the repository: git clone https://github.com/RocketMaDev/pwndbg-mcp.git cd pwndbg-mcp
-
Install dependencies and run via UV (recommended):
ensure uv is installed, then sync/build the environment
uv sync uv run pwndbg-mcp
-
Alternative: run directly from source without UV:
create a virtual environment and install dependencies if needed
python -m venv .venv source .venv/bin/activate pip install -r requirements.txt # if a requirements file exists python pwndbg_mcp/main.py
-
Optional: install as a local tool for easy access: uv tool install .
run from any path
pwndbg-mcp
-
If you prefer containerized usage, wrap pwndbg-mcp in a minimal container as described in the README to avoid path issues.
Additional notes
Notes and tips:
- By default, pwndbg-mcp runs on localhost:8780 with gdb as the main pwndbg binary and /mcp as the MCP connection endpoint using HTTP transport. You can adjust transport and port with CLI options.
- Exercise caution: the tools load_executable, execute_command, and eval_to_send_to_process can execute arbitrary code within the debugger context. Do not expose the service publicly without isolation.
- For environments where agents expect a containerized filesystem layout, consider wrapping pwndbg-mcp in a minimal container (e.g., bwrap) to preserve working directory assumptions.
- If you enable decomp2dbg features, ensure proper network access to the decomp2dbg endpoint via the provided d2d options.
- Default tools include GDB-related capabilities, process interaction capabilities (send_to_process, read_from_process, interrupt_process), and pwndbg aliases for rapid inspection (e.g., context, heap, vmmap).
Related MCP Servers
jupyter
🪐 🔧 Model Context Protocol (MCP) Server for Jupyter.
mcp -odoo
A Model Context Protocol (MCP) server that enables AI assistants to securely interact with Odoo ERP systems through standardized resources and tools for data retrieval and manipulation.
falcon
Connect AI agents to CrowdStrike Falcon for automated security analysis and threat hunting
beemcp
BeeMCP: an unofficial Model Context Protocol (MCP) server that connects your Bee wearable lifelogger to AI via the Model Context Protocol
ez
The easiest path to getting an MCP server going
MCP-MultiServer-Interoperable-Agent2Agent-LangGraph-AI-System
This project demonstrates a decoupled real-time agent architecture that connects LangGraph agents to remote tools served by custom MCP (Modular Command Protocol) servers. The architecture enables a flexible and scalable multi-agent system where each tool can be hosted independently (via SSE or STDIO), offering modularity and cloud-deployable execut