MCP server · Audited from source
Xdebug MCP server
by kpanuragh/xdebug-mcpMIT licenceAudited 9 Oct 2026 · source 3e33a4dea921
Is it safe? With care — CAUTION, grade B (89/100). It exposes 46 tools: 27 read, 14 write and 5 destructive. The audit recorded 3 findings (0 critical, 0 high, 2 medium, 1 low). Maintainer's description: MCP server for PHP Xdebug debugging - enables AI-assisted PHP debugging through the Model Context Protocol with Unix socket and TCP support
Cite
Cite this page
ModelsAtlas. “Xdebug MCP server (kpanuragh/xdebug-mcp)”. Retrieved 9 Oct 2026. https://modelsatlas.com/mcp/kpanuragh/xdebug
Trust audit
Audit 0.4.1 · full source read 9 Oct 2026
3 findings, listed below with the file and line each was found on. Grade A needs a sandboxed behavioural run too; this audit read the source only.
What the source does
- FilesystemDeclared1 observation
- NetworkNone observedNothing seen in the source
- ShellNone observedNothing seen in the source
- DependenciesNot pinnedSome ranges float
- SecretsNone foundNo keys in source
“Declared” means the server says it does this and the source agrees. Browser, file and shell access are expected of some kinds of server.
Five audit layers
| Layer | What we check | Result |
|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS |
L1 Static source | Secrets, path traversal, supply chain | WARN 2 findings |
L2 Instructions | Prompt injection and authority framing in docs and tool descriptions | PASS |
L3 Inventory | Declared tools match the source | WARN 1 finding |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED |
Provenance & runtime
Who published it, and what the audit could and could not run
Provenance
- Repository owner
kpanuraghUser accountAccount type recorded when we read the repository. - PackagePublished on npm
xdebug-mcpat version 1.3.1 - LicenceMITFrom the repository, as read at the audited commit.
- Last push6 days agoActivity of the repository when we read it.
- Source commit read3e33a4dea921The audit covers exactly this commit, read on 9 Oct 2026.
Runtime
- Sandbox runNot run yetThis audit read the source only; it did not execute the server.
- Tool inventory46 declaredRead from the source and classed read, write or destructive.
Every value here is read from the record's own repository and audit.Suggest a correction
Findings (3)
Sorted by severity
MEDIUMObfuscation / stealthobf.homoglyph · src/session/profiler.ts:242
if (ms < 1) return `${(ms * 1000).toFixed(2)} μs`;- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMFilesystem / pathmcp.destructive_tools
close_session, remove_breakpoint, remove_logpoint, remove_watch, stop
- Why
- 5 tool(s) can delete or overwrite
- Fix
- prefer a read-only mode or scoped tokens; the page states the blast radius
LOWSupply chainsupply.unpinned · package.json
@modelcontextprotocol/sdk, fast-xml-parser, zod, @types/node, typescript, tsx
- Why
- 6 dependency range(s) float
- Fix
- pin exact versions or ship a lockfile
Tools it exposes
46 declared in source · 5 destructive
5 tools can delete or overwrite. An agent that can be talked into calling a tool can be talked into calling this one, so give it a token scoped to what you need.
| Tool | Risk | What it does |
|---|---|---|
close_session | destructive | Close and terminate a debug session |
remove_breakpoint | destructive | Remove a breakpoint by its ID. Works for both active session breakpoints and pending breakpoints. |
remove_logpoint | destructive | Remove a logpoint |
remove_watch | destructive | Remove a watch expression |
stop | destructive | Stop the debug session and terminate script execution immediately |
add_logpoint | write | Add a logpoint that logs messages without stopping execution. Use {varName} placeholders for variables. |
add_step_filter | write | Add a step filter to skip certain files/directories during stepping (e.g., vendor code) |
add_watch | write | Add a watch expression that will be evaluated on each break. Watch expressions persist across steps. |
save_debug_profile | write | Save the current debug configuration (breakpoints, watches, filters) as a named profile |
set_active_session | write | Set which debug session should be the active/default session for subsequent commands |
set_breakpoint | write | 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 | write | Set a breakpoint that triggers when a specific function is called. Can be set before a debug session starts. |
set_exception_breakpoint | write | Set a breakpoint that triggers when a specific exception is thrown. Can be set before a debug session starts. |
set_variable | write | Set the value of a variable in the current scope |
start_coverage | write | Start tracking code coverage during debugging |
start_profiling | write | Start profiling to track memory usage and execution time |
stop_coverage | write | Stop tracking code coverage and get the report |
stop_profiling | write | Stop profiling and get the results |
update_breakpoint | write | Update a breakpoint (enable/disable or change hit conditions). Works for both active session and pending breakpoints. |
capture_request_context | read | Capture the current HTTP request context ($_GET, $_POST, $_SESSION, $_COOKIE, headers) |
capture_snapshot | read | Capture a snapshot of the current debug state for the export report |
continue | read | Continue script execution until the next breakpoint or end of script |
detach | read | Detach from the debug session and let the script continue running without debugging |
evaluate | read | 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 | read | Evaluate all watch expressions and return their current values |
export_session | read | Export the current debug session as a report |
get_contexts | read | Get available variable contexts (Local, Superglobals, User-defined constants) at the current position |
get_coverage_report | read | Get the current code coverage report |
get_function_history | read | Get the history of function calls made during debugging |
get_logpoint_history | read | Get the log output history from logpoints |
get_memory_timeline | read | Get memory usage timeline from profiling |
get_profile_stats | read | Get current profiling statistics |
get_session_state | read | Get detailed state of a specific debug session including current position and status |
get_source | read | Get the source code of a file or a specific line range |
get_stack_trace | read | Get the current call stack showing all function calls leading to the current position |
get_variable | read | Get a specific variable by name, including nested properties. Use PHP syntax for nested access (e.g., |
get_variables | read | 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 | read | List all breakpoints including both active session breakpoints and pending breakpoints |
list_debug_profiles | read | List all saved debug profiles |
list_sessions | read | List all active PHP debug sessions with their current state |
list_step_filters | read | List all step filter rules |
list_watches | read | List all active watch expressions |
load_debug_profile | read | Load a saved debug profile |
step_into | read | Step into the next function call, or to the next line if not a function call. This follows execution into called functions. |
step_out | read | Step out of the current function. Execution continues until the current function returns. |
step_over | read | Step over to the next line in the current scope. Function calls are executed but not stepped into. |
Install
Package version 1.3.1 · audited commit 3e33a4d
Read the findings first. The most severe is Obfuscation / stealth (medium) at src/session/profiler.ts.
claude mcp add xdebug-mcp -- npx -y [email protected]
The command pins the package version recorded in the source (1.3.1); the audit covers commit 3e33a4dea921. Transport: stdio. Reads this environment variable: DBGP_IDEKEY. Give it the narrowest token it needs.
Audit history
- !CAUTION B 89 / 100
First audit ·
3e33a4dea921
README badge
For maintainers · updates on every re-audit
[](https://modelsatlas.com/mcp/kpanuragh/xdebug/)
The badge always shows the latest audit; a maintainer cannot pin an old verdict.
Other ratings
Cited, never blended into our score
No third-party security ratings are recorded for this server yet. When they exist they appear here with their source and date, beside, not inside, our grade.
Questions about Xdebug MCP server
What is the Xdebug MCP server?
What tools does Xdebug expose?
Is Xdebug safe to connect to an agent?
What credentials does Xdebug need?
How does Xdebug run?
How current is this page?
Sources
- kpanuragh/xdebug-mcp on GitHub — the source we read, its licence, stars and activityObserved · 9 Oct 2026
- ModelsAtlas trust audit — CAUTION verdict for commit 3e33a4dea921Observed · 9 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What is the Xdebug MCP server?
- What tools does Xdebug expose?
- Is Xdebug safe to connect to an agent?