Skip to content
Agentmart
Submit a tool

Xdebug

MCP server for PHP Xdebug debugging with breakpoints, stepping, and variable inspection

Connector by kpanuragh · GitHub account verified by the MCP Registry

IndexedMITLocal (stdio)★ 28
Write a review

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.

We use your email only for this newsletter. Privacy

About

MCP server for PHP Xdebug debugging with breakpoints, stepping, and variable inspection

Use cases: debugging

No 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_context
  • capture_snapshot
  • evaluate
  • evaluate_watches
  • get_contexts
  • get_coverage_report
  • get_function_history
  • get_logpoint_history
  • get_memory_timeline
  • get_profile_stats
  • get_session_state
  • get_source
Show 8 more tools
  • get_stack_trace
  • get_variable
  • get_variables
  • list_breakpoints
  • list_debug_profiles
  • list_sessions
  • list_step_filters
  • list_watches

Write 17 · Create, change, send or run things.

  • add_logpoint
  • add_step_filter
  • add_watch
  • close_session
  • detach
  • save_debug_profile
  • set_active_session
  • set_breakpoint
  • set_call_breakpoint
  • set_exception_breakpoint
  • set_variable
  • start_coverage
Show 5 more tools
  • start_profiling
  • stop
  • stop_coverage
  • stop_profiling
  • update_breakpoint

Delete 3 · Delete, drop, revoke or wipe things.

  • remove_breakpoint
  • remove_logpoint
  • remove_watch

Not yet classified 6 · We could not tell from the name and description.

  • continue
  • export_session
  • load_debug_profile
  • step_into
  • step_out
  • step_over

Network hosts it talks to 3

  • github.com · found in code
  • iamanuragh.in · found in code
  • xdebug.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_logpoint

    Add a logpoint that logs messages without stopping execution. Use {varName} placeholders for variables.

  • add_step_filter

    Add a step filter to skip certain files/directories during stepping (e.g., vendor code)

  • add_watch

    Add a watch expression that will be evaluated on each break. Watch expressions persist across steps.

  • capture_request_context

    Capture the current HTTP request context ($_GET, $_POST, $_SESSION, $_COOKIE, headers)

  • capture_snapshot

    Capture a snapshot of the current debug state for the export report

  • close_session

    Close and terminate a debug session

  • continue

    Continue script execution until the next breakpoint or end of script

  • detach

    Detach from the debug session and let the script continue running without debugging

  • evaluate

    Evaluate a PHP expression in the current context. Returns the result of the expression. Use for calculations, method calls, or inspecting computed values.

  • evaluate_watches

    Evaluate all watch expressions and return their current values

  • export_session

    Export the current debug session as a report

  • get_contexts

    Get available variable contexts (Local, Superglobals, User-defined constants) at the current position

  • get_coverage_report

    Get the current code coverage report

  • get_function_history

    Get the history of function calls made during debugging

  • get_logpoint_history

    Get the log output history from logpoints

Show 31 more tools
  • get_memory_timeline

    Get memory usage timeline from profiling

  • get_profile_stats

    Get current profiling statistics

  • get_session_state

    Get detailed state of a specific debug session including current position and status

  • get_source

    Get the source code of a file or a specific line range

  • get_stack_trace

    Get the current call stack showing all function calls leading to the current position

  • get_variable

    Get 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_variables

    List 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_breakpoints

    List all breakpoints including both active session breakpoints and pending breakpoints

  • list_debug_profiles

    List all saved debug profiles

  • list_sessions

    List all active PHP debug sessions with their current state

  • list_step_filters

    List all step filter rules

  • list_watches

    List all active watch expressions

  • load_debug_profile

    Load a saved debug profile

  • remove_breakpoint

    Remove a breakpoint by its ID. Works for both active session breakpoints and pending breakpoints.

  • remove_logpoint

    Remove a logpoint

  • remove_watch

    Remove a watch expression

  • save_debug_profile

    Save the current debug configuration (breakpoints, watches, filters) as a named profile

  • set_active_session

    Set which debug session should be the active/default session for subsequent commands

  • set_breakpoint

    Set 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_breakpoint

    Set a breakpoint that triggers when a specific function is called. Can be set before a debug session starts.

  • set_exception_breakpoint

    Set a breakpoint that triggers when a specific exception is thrown. Can be set before a debug session starts.

  • set_variable

    Set the value of a variable in the current scope

  • start_coverage

    Start tracking code coverage during debugging

  • start_profiling

    Start profiling to track memory usage and execution time

  • step_into

    Step into the next function call, or to the next line if not a function call. This follows execution into called functions.

  • step_out

    Step out of the current function. Execution continues until the current function returns.

  • step_over

    Step over to the next line in the current scope. Function calls are executed but not stepped into.

  • stop

    Stop the debug session and terminate script execution immediately

  • stop_coverage

    Stop tracking code coverage and get the report

  • stop_profiling

    Stop profiling and get the results

  • update_breakpoint

    Update 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
    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)