get_profile_stats
Get current profiling statistics
How to use it
Project documentation lists get_profile_stats for the Xdebug MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), then check which tools your installed version makes available. Tool availability can depend on configuration and credentials. A server handshake does not verify this tool’s behavior. See the full listing for setup details.
Install Xdebug MCP
npm install -g xdebug-mcpOther tools in Xdebug MCP (39)
Add a logpoint with message template
Add a persistent watch expression
Close a debug session
Continue to next breakpoint
Detach and let script continue
Evaluate a PHP expression
Evaluate all watches and detect changes
Get available variable contexts
View coverage statistics
View log output and hit statistics
View memory usage over time
Get detailed state of a session
Get source code
Get the call stack
Get a specific variable
Get all variables in scope
List all breakpoints including pending
List all saved profiles
List all active debug sessions
List all active watches
Load a saved debug profile
Remove a breakpoint (works with pending breakpoints)
Remove a logpoint
Remove a watch expression
Save current configuration as a profile
Set which session is active
Set a line or conditional breakpoint (supports pending breakpoints)
Break on function calls (supports pending breakpoints)
Break on exceptions (supports pending breakpoints)
Set a variable's value
Start tracking code coverage
Start memory/time profiling
Step into function calls
Step out of current function
Step over (skip function internals)
Stop debugging
Stop and get coverage report
Stop profiling and get results
Enable/disable or modify a breakpoint