MCP server for PHP Xdebug debugging - enables AI-assisted PHP debugging through the Model Context Protocol
| Tool name | Description | Destructive? |
|---|---|---|
| get_stack_trace | ✓ no | |
| get_contexts | ✓ no | |
| get_variables | ✓ no | |
| get_variable | ✓ no | |
| set_variable | ✓ no |
| evaluate | ✓ no | |
| get_source | ✓ no | |
| add_watch | ✓ no | |
| remove_watch⚠ | ⚠ yes | |
| evaluate_watches | ✓ no | |
| list_watches | ✓ no | |
| add_logpoint | ✓ no | |
| remove_logpoint⚠ | ⚠ yes | |
| get_logpoint_history | ✓ no | |
| start_profiling | ✓ no | |
| stop_profiling | ✓ no | |
| get_profile_stats | ✓ no | |
| get_memory_timeline | ✓ no | |
| capture_request_context | ✓ no | |
| add_step_filter | ✓ no | |
| list_step_filters | ✓ no | |
| get_function_history | ✓ no | |
| start_coverage | ✓ no | |
| stop_coverage | ✓ no | |
| get_coverage_report | ✓ no | |
| save_debug_profile | ✓ no | |
| load_debug_profile | ✓ no | |
| list_debug_profiles | ✓ no | |
| export_session | ✓ no | |
| capture_snapshot | ✓ no | |
| set_breakpoint | ✓ no | |
| set_exception_breakpoint | ✓ no | |
| set_call_breakpoint | ✓ no | |
| remove_breakpoint⚠ | ⚠ yes | |
| update_breakpoint | ✓ no | |
| list_breakpoints | ✓ no | |
| continue | ✓ no | |
| step_into | ✓ no | |
| step_over | ✓ no | |
| step_out | ✓ no | |
| stop | ✓ no | |
| detach | ✓ no | |
| list_sessions | ✓ no | |
| get_session_state | ✓ no | |
| set_active_session | ✓ no | |
| close_session | ✓ no |
{
"mcpServers": {
"xdebug": {
"command": "npx",
"args": [
"-y",
"xdebug-mcp"
]
}
}
}