Xdebug
MCP server for PHP Xdebug debugging with breakpoints, stepping, and variable inspection
Connector by kpanuragh · GitHub account verified by the MCP Registry
Install
Works with Claude Code, Codex, VS Code, Cursor, Windsurf, Claude Desktop. Read the repository before you give any tool access to your data.
npx agentmarket install connector/kpanuragh-xdebug
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: debugging
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this server can do and what it asks for, from its tool list, install config and code. Checked Oct 25, 2026.
- Tools
- 20 read · 17 write · 3 delete · 6 not yet classified
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Node.js package
Tools by what they do 46
Read from the source code; the running server may list different tools.
Read 20 · Look things up without changing anything.
capture_request_contextcapture_snapshotevaluateevaluate_watchesget_contextsget_coverage_reportget_function_historyget_logpoint_historyget_memory_timelineget_profile_statsget_session_stateget_source
Show 8 more tools
get_stack_traceget_variableget_variableslist_breakpointslist_debug_profileslist_sessionslist_step_filterslist_watches
Write 17 · Create, change, send or run things.
add_logpointadd_step_filteradd_watchclose_sessiondetachsave_debug_profileset_active_sessionset_breakpointset_call_breakpointset_exception_breakpointset_variablestart_coverage
Show 5 more tools
start_profilingstopstop_coveragestop_profilingupdate_breakpoint
Delete 3 · Delete, drop, revoke or wipe things.
remove_breakpointremove_logpointremove_watch
Not yet classified 6 · We could not tell from the name and description.
continueexport_sessionload_debug_profilestep_intostep_outstep_over
Network hosts it talks to 3
github.com· found in codeiamanuragh.in· found in codexdebug.org· found in code
Files it touches
/home/power/Projects/xdebug-mcp/dist/index.js- Any path the agent passes to its tools
Tools (46)
Read from the source code; the running server may differ. Descriptions are the server’s own words; hidden characters are shown as [U+…].
add_logpointAdd a logpoint that logs messages without stopping execution. Use {varName} placeholders for variables.
add_step_filterAdd a step filter to skip certain files/directories during stepping (e.g., vendor code)
add_watchAdd a watch expression that will be evaluated on each break. Watch expressions persist across steps.
capture_request_contextCapture the current HTTP request context ($_GET, $_POST, $_SESSION, $_COOKIE, headers)
capture_snapshotCapture a snapshot of the current debug state for the export report
close_sessionClose and terminate a debug session
continueContinue script execution until the next breakpoint or end of script
detachDetach from the debug session and let the script continue running without debugging
evaluateEvaluate a PHP expression in the current context. Returns the result of the expression. Use for calculations, method calls, or inspecting computed values.
evaluate_watchesEvaluate all watch expressions and return their current values
export_sessionExport the current debug session as a report
get_contextsGet available variable contexts (Local, Superglobals, User-defined constants) at the current position
get_coverage_reportGet the current code coverage report
get_function_historyGet the history of function calls made during debugging
get_logpoint_historyGet the log output history from logpoints
Show 31 more tools
get_memory_timelineGet memory usage timeline from profiling
get_profile_statsGet current profiling statistics
get_session_stateGet detailed state of a specific debug session including current position and status
get_sourceGet the source code of a file or a specific line range
get_stack_traceGet the current call stack showing all function calls leading to the current position
get_variableGet a specific variable by name, including nested properties. Use PHP syntax for nested access (e.g., '$user->name', '$array[0]', '$obj->items[2]->value')
get_variablesList all variables in scope with metadata (names, types, child counts). Use get_variable() to inspect specific variable values. Returns lightweight metadata for browsing the variable tree.
list_breakpointsList all breakpoints including both active session breakpoints and pending breakpoints
list_debug_profilesList all saved debug profiles
list_sessionsList all active PHP debug sessions with their current state
list_step_filtersList all step filter rules
list_watchesList all active watch expressions
load_debug_profileLoad a saved debug profile
remove_breakpointRemove a breakpoint by its ID. Works for both active session breakpoints and pending breakpoints.
remove_logpointRemove a logpoint
remove_watchRemove a watch expression
save_debug_profileSave the current debug configuration (breakpoints, watches, filters) as a named profile
set_active_sessionSet which debug session should be the active/default session for subsequent commands
set_breakpointSet a breakpoint in PHP code. Supports line breakpoints and conditional breakpoints with hit counts. Can be set before a debug session starts - breakpoints will be applied when a session connects.
set_call_breakpointSet a breakpoint that triggers when a specific function is called. Can be set before a debug session starts.
set_exception_breakpointSet a breakpoint that triggers when a specific exception is thrown. Can be set before a debug session starts.
set_variableSet the value of a variable in the current scope
start_coverageStart tracking code coverage during debugging
start_profilingStart profiling to track memory usage and execution time
step_intoStep into the next function call, or to the next line if not a function call. This follows execution into called functions.
step_outStep out of the current function. Execution continues until the current function returns.
step_overStep over to the next line in the current scope. Function calls are executed but not stepped into.
stopStop the debug session and terminate script execution immediately
stop_coverageStop tracking code coverage and get the report
stop_profilingStop profiling and get the results
update_breakpointUpdate a breakpoint (enable/disable or change hit conditions). Works for both active session and pending breakpoints.
Compare and alternatives
Featured in
Signals
- Stars
- 28
- Forks
- 8
- Open issues
- 0
- Contributors
- 5
- Last commit
- Oct 2, 2026 (26 days ago)
- Last release
- Sep 1, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- Registry name
io.github.kpanuragh/xdebug- Version
- 1.2.1
- Auth
- No auth
- Packages
- npm xdebug-mcp
- License
- MIT
- Repository
- github.com/kpanuragh/xdebug-mcp
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
Cite this page
Xdebug MCP server. Agent Mart. https://agentmart.dev/connectors/kpanuragh-xdebug (last updated 2026-10-24)