ps5debug-mcp
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., "@ps5debug-mcp Attach to the running PS5 game and read 64 bytes at its main module base."
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.
ps5debug-mcp
A zero-dependency Model Context Protocol (MCP) server for ps5debug-NG, built on top of the pure-Python protocol layer from PS5Debug-studio.
It lets AI coding/reversing agents (Claude Code, Antigravity / Gemini, Cursor, VS Code, Windsurf) inspect processes, resolve ASLR module bases, read/write live PS5 memory, scan AOB patterns, disassemble with Zydis, set hardware watchpoints / software breakpoints, walk call stacks, and tail /dev/klog — completely standalone with no external disassembler required (and optionally pairs with Binary Ninja MCP if you want static ELF decompilation alongside it).
Features
Zero external Python dependencies: Uses only Python 3.10+ standard library (
stdioJSON-RPC 2.0).ASLR ↔ Binary Ninja address translation:
ps5_resolve_addressconverts between Binary Ninja / ELF virtual addresses and live PS5 addresses usingPROC_MAPS.Memory & Analysis:
ps5_read_memory(hex, utf8, ascii, typed scalarsu8..f64),ps5_write_memory,ps5_aob_scan,ps5_disasm_region(server-side Zydis),ps5_find_xrefs_to.Live Debugging (Ports 744 + 755):
ps5_debug_attach, software breakpoints (0xCC, 30 slots), hardware watchpoints (DR0–DR3), thread list/suspend/resume, GP registers, single-stepping, and server-side RBP stack walk (ps5_debug_read_stack).Kernel Log Streaming (Port 3232):
ps5_klog_start+ps5_klog_tailwith ring-buffer filtering.
Related MCP server: PS Neighbourhood MCP server
Requirements
Python 3.10+ on the host PC.
A jailbroken PS5 running the
ps5debug-NGpayload (ports744,755,3232).Firewall allowing inbound TCP on port
755if using breakpoints/watchpoints (ps5_debug_attach).
Installation
Install directly from GitHub Releases (no clone needed):
pip install https://github.com/renan-marcel/ps5debug-mcp/releases/latest/download/ps5debug_mcp-0.1.0-py3-none-any.whlOr install directly via Git:
pip install git+https://github.com/renan-marcel/ps5debug-mcp.gitOr clone for local development:
git clone https://github.com/renan-marcel/ps5debug-mcp.git
cd ps5debug-mcp
pip install -e .Or run without installing:
PYTHONPATH=src python -m ps5debug_mcpClient Configuration
Claude Code (~/.claude.json or .mcp.json)
{
"mcpServers": {
"ps5debug": {
"command": "python",
"args": ["-m", "ps5debug_mcp"],
"env": {
"PS5_DEBUG_HOST": "192.168.1.xxx"
}
}
}
}Antigravity / Gemini CLI (~/.gemini/antigravity/mcp_config.json)
{
"mcpServers": {
"ps5debug": {
"command": "python",
"args": ["-m", "ps5debug_mcp"],
"env": {
"PS5_DEBUG_HOST": "192.168.1.xxx"
}
}
}
}Cursor / VS Code / Windsurf
Point the MCP stdio entry to ps5debug-mcp (if installed via pip install -e .) or python -m ps5debug_mcp with PYTHONPATH pointing to src/, and optionally set PS5_DEBUG_HOST.
Documentation
Tools Reference — Every MCP tool, argument, and return payload.
Binary Ninja + PS5 Workflow — Optional guide for combining
binary-ninjaMCP andps5debug-mcp.
GitFlow & Automated Releases
main(protected): Production/release branch. Direct pushes are blocked; changes enter via Pull Request after all CI checks (Python 3.10–3.13) pass.develop: Integration branch forfeature/*andfix/*branches.Auto Tag & Release: Every merge/PR into
mainautomatically computes the next semantic version tag from Conventional Commits (feat!:→ major,feat:→ minor,fix:/chore:/ci:→ patch), pushes thevX.Y.Ztag, builds.whland.tar.gz, and publishes a GitHub Release.
License & Attribution
Licensed under the Apache License 2.0 (LICENSE).
Protocol client (ps5debug_client.py) and interrupt listener (debugger_core.py) are derived from PS5Debug-studio (Apache-2.0) for ps5debug-NG.
Available Tools
28 toolsps5_aob_scanC
Scan a memory range (or module) for an AOB byte pattern with '??' wildcards.
Inputs: pattern (required), pid, start, length, +2 more.
ps5_connectB
Connect to ps5debug-NG on a PS5 console (TCP port 744).
Inputs: host, port, timeout.
ps5_debug_attachC
Start TCP 755 interrupt listener and attach ptrace debugger to pid.
Inputs: pid, listen_port.
ps5_debug_continueB
Resume execution of the attached debuggee.
Inputs: no named parameters.
ps5_debug_detachB
Detach ptrace debugger and stop interrupt listener.
Inputs: no named parameters.
ps5_debug_get_regsC
Read GP registers for a thread (lwpid).
Inputs: lwpid (required).
ps5_debug_read_stackB
Perform server-side RBP stack walk (up to 64 frames).
Inputs: rbp (required), rsp (required), pid, depth.
ps5_debug_resume_threadC
Resume a thread by lwpid.
Inputs: lwpid (required).
ps5_debug_set_breakpointC
Set or clear a software breakpoint (0xCC, slots 0..29).
Inputs: address (required), index, enabled.
ps5_debug_set_watchpointC
Set or clear a hardware watchpoint/breakpoint (DR0..DR3).
Inputs: address (required), index, length, enabled, +1 more.
ps5_debug_stepC
Single-step the attached debuggee (or a specific lwpid).
Inputs: lwpid.
ps5_debug_suspend_threadC
Suspend a thread by lwpid.
Inputs: lwpid (required).
ps5_debug_threadsA
List threads (lwpid, priority, name) of the attached debuggee.
Inputs: no named parameters.
ps5_debug_wait_stopC
Wait for the next breakpoint/watchpoint/signal stop event from TCP 755.
Inputs: timeout.
ps5_disasm_regionC
Server-side Zydis disassembly of a memory region on the PS5.
Inputs: address (required), pid, length.
ps5_disconnectB
Detach debugger, stop klog/interrupt listeners, and close connection.
Inputs: no named parameters.
ps5_find_xrefs_toC
Find instructions in a memory range whose RIP-relative operand targets a specific address.
Inputs: target (required), pid, start, length, +1 more.
ps5_foreground_appA
Get the currently focused foreground PS5 app (pid, titleid, contentid, name, app_ver).
Inputs: no named parameters.
ps5_klog_startB
Start background /dev/klog reader on TCP port 3232.
Inputs: host, port.
ps5_klog_stopB
Stop background /dev/klog reader.
Inputs: no named parameters.
ps5_klog_tailC
Return the most recent /dev/klog lines (with optional case-insensitive filter).
Inputs: lines, filter_text.
ps5_list_processesB
List running PS5 processes (name and pid).
Inputs: no named parameters.
ps5_proc_infoB
Get metadata (name, path, titleid, contentid) for a process.
Inputs: pid.
ps5_proc_mapsC
List virtual memory maps for a process (optional substring filter on segment name, prot filter, and limit).
Inputs: pid, prot, limit, filter_name.
ps5_read_memoryC
Read memory from a PS5 process as hex, utf8, ascii, or scalar (u8/u16/u32/u64/i8/i16/i32/i64/f32/f64).
Inputs: address (required), pid, size, format.
ps5_resolve_addressB
Translate between a relative/ELF address (given image_base/bn_base) and live PS5 ASLR address for a module (default eboot.bin). Works standalone or with any disassembler.
Inputs: address (required), pid, module, bn_base, +2 more.
ps5_statusB
Return connection, attached PID, interrupt listener, and klog status.
Inputs: no named parameters.
ps5_write_memoryC
Write raw bytes (hex string) to target process memory (verified write).
Inputs: address (required), data_hex (required), pid.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 28 tools
Most tools target distinct resources and actions (memory read/write, disassembly, xref scanning, breakpoints, watchpoints, threads, klog). There is some potential confusion between ps5_connect vs ps5_debug_attach and ps5_disconnect vs ps5_debug_detach, but descriptions clarify the lifecycle boundaries.
Names use a consistent ps5_ snake_case prefix with clear sub-domains (debug_, klog_, proc_). Minor deviations like ps5_debug_threads (listing) versus ps5_list_processes, and ambiguous 'set or clear' verbs on breakpoint/watchpoint tools, keep it from perfect consistency.
At 28 tools, the surface is quite heavy even for a full debugger. While each tool maps to a real operation, the count exceeds the comfortable range and increases selection overhead.
Coverage is strong: connection lifecycle, process inspection, memory read/write, disassembly, AOB scanning, xrefs, breakpoints, watchpoints, threads, registers, stack walks, and klog. Gaps like writing registers or listing active breakpoints are minor and workaround-able.
Maintenance
Related MCP Connectors
Live browser debugging for AI assistants — DOM, console, network via MCP.
Evidence-oriented REA + Ghidra static-analysis workflows, read-only PE32 and Delphi VMT tools.
Hunt zero-days by talking to binaries. 40+ tools. Hosted, OAuth + SSO, invite: hi@byteray.ai
Shared debugging memory for AI coding agents
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to control the x64dbg debugger through natural language, providing tools for breakpoints, memory, disassembly, tracing, PE dumping, and anti-debug bypass, all locally via stdio.142MIT
- AlicenseNot gradedqualityBmaintenanceGives stdio-compatible AI clients access to a running PS4 through PS4Debug, exposing processes, memory mappings, bounded reads, structures, strings, scans, watches, guarded writes, RAM dumps, offline inspection and pointer searches. It also covers FTP browsing, package inspection and status, console inventory, and save backup, while payload loading, installation submission, uninstall and power actions remain in the desktop app.22GPL 3.0
- FlicenseNot gradedqualityAmaintenanceEnables AI agents to import, disassemble, and debug binaries directly so they can perform cross-reference reasoning, rename stripped functions, and recover structure layouts during native reverse-engineering workflows. It integrates with offline ELF reconnaissance output to support symbol and struct recovery without opening the Ghidra GUI.-
- AlicenseCqualityBmaintenanceExposes 74 tools over stdio/JSON-RPC that let an LLM agent open DMA or dump-backed sessions, enumerate processes, modules, regions and threads, scan and journaled-patch memory, capture and statically analyze PE images, and emulate captured functions with watchpoints. This enables end-to-end reverse engineering of a live target without a debugger.1152MIT