re-gdb
Click on "Deploy 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., "@re-gdb run to breakpoint at main in ./vuln and show registers"
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.
re-gdb
MCP server wrapping GDB + GEF for dynamic analysis. Spawns a persistent GDB subprocess per session and drives it via the GDB/MI protocol.
Tools
Tool | What it does |
| Confirm gdb + GEF |
| Open a session, optionally load a binary |
| Tear down a session |
| Set a BP and run |
| Single-step N times, return registers |
|
|
| GEF |
| GEF |
| GEF |
| GEF |
| GEF |
| Cyclic-pattern helpers |
| Attach to a running process |
Related MCP server: gdb-mcp
Install
# System dependency
apt install gdb # Debian/Ubuntu
brew install gdb # macOS
scoop install gdb # Windows
# GEF (auto-installed by install.sh to ~/.gdb/gef.py)
curl -fsSL https://github.com/hugsy/gef/raw/main/gef.py -o ~/.gdb/gef.py
# Python
pip install -e ./servers/re-gdbSafety
Never run unsigned binaries on a host you care about. Use a sandbox, a VM, or a Docker container. Dynamic analysis on untrusted samples is dangerous.
Available Tools
14 toolsattach_pidC
Attach to a running process by PID.
Inputs: session (required), pid (required).
check_gdbA
Return gdb version + whether GEF is configured.
Inputs: no named parameters.
end_sessionC
Tear down a GDB session.
Inputs: session (required).
gef_canaryD
GEF: stack canary check.
Inputs: session (required).
gef_heapC
GEF: heap chunks (glibc malloc bins).
Inputs: session (required).
gef_nearpcB
GEF: nearpc (look ahead N instructions from PC).
Inputs: session (required), n.
gef_pattern_createA
Create a cyclic pattern of length bytes (for offset-finding).
Inputs: length (required).
gef_pattern_offsetB
Find the offset of value in a cyclic pattern.
Inputs: value (required).
gef_registersC
GEF: registers (extended view).
Inputs: session (required).
gef_vmmapC
GEF: vmmap (mapped regions with perms).
Inputs: session (required).
read_memoryC
Read count memory units at addr.
Inputs: session (required), addr (required), count, fmt.
run_to_breakpointC
Set a breakpoint at target and run to it.
Inputs: session (required), target (required), condition.
start_sessionC
Open (or reuse) a GDB session. Optionally load a binary.
Inputs: path, gdb_args, session.
step_countC
Single-step count times, return register state after.
Inputs: session (required), count.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 14 tools
Each tool targets a distinct GDB operation or GEF feature, with clear separation between session management, memory reading, stepping, breakpoints, and specific GEF utilities. No two tools have overlapping purposes.
Tool names follow a predictable pattern: core GDB operations use verb_noun (attach_pid, read_memory) while GEF-specific tools use the gef_ prefix followed by a noun (gef_heap, gef_registers). Within each subgroup, naming is consistent and intuitive.
14 tools is well-scoped for a GDB interface, covering essential debugger actions (attach, breakpoint, step, memory read) and key GEF features (heap, registers, vmmap, canary, pattern). Not too few nor overwhelming.
Covers core debugging operations but misses common tasks like memory write, expression evaluation, breakpoint deletion, continuing execution, and arbitrary command execution. These gaps may limit agent autonomy for complex reverse engineering workflows.
Related MCP Connectors
Repository knowledge graph MCP server for codebase understanding and debugging.
MCP server for ScanMalware.com URL scanning, malware detection, and analysis.
Related MCP Servers
- AlicenseAqualityDmaintenanceAn MCP server that enables AI assistants to control GDB debugging sessions, including breakpoint management, thread analysis, and variable inspection, using the GDB/MI protocol.221MIT
- AlicenseBqualityDmaintenanceMCP server that wraps gdb to enable LLMs to drive live debugging sessions, including starting sessions on binaries, attaching to processes, and running commands.72,027 PyPI4MIT
- AlicenseNot gradedqualityFmaintenanceMCP server for reverse engineering Windows executables and related binary formats, offering static analysis, Ghidra-assisted function recovery, plugin-driven tooling, and optional isolated Windows runtime execution.238MIT
- AlicenseBqualityBmaintenanceGDB MCP server for binary security research (reverse engineering / PWN) with first-class pwndbg integration, enabling heap analysis, cyclic pattern, checksec, ROP gadgets, and more via MCP protocol.271MIT