This server connects Claude directly to PHP's Xdebug via the DBGp protocol, giving you full debugging control through MCP tools. You get the standard step through, step over, step out commands alongside breakpoint management (including conditional and exception breakpoints), variable inspection, expression evaluation, and stack traces. It handles multiple simultaneous sessions, works with Docker containers through path mappings, and supports both TCP and Unix domain sockets. Beyond basic debugging, it adds watch expressions, logpoints, memory profiling, and code coverage tracking. You can set pending breakpoints before a session starts, export debug sessions as JSON or HTML, and even register with DBGp proxy servers for multi-agent setups. Useful when you need Claude to debug PHP without switching to a traditional IDE.
claude mcp add --transport stdio io.github.kpanuragh-xdebug uvx xdebug