Live survey315 models · 14 providers · 23,592 auditsAudited implement · SAFE →What changedHow we verifyllms.txt

MCP server · Audited from source

Xdebug MCP server

by kpanuragh/xdebug-mcpMIT licenceAudited 9 Oct 2026 · source 3e33a4dea921

npm xdebug-mcp 1.3.1stdio★ 28
!CAUTIONGrade B · 89/100 · 9 Oct 2026 · 3e33a4d
28GitHub stars

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

Ask an AI about this pageGChatGPTCClaudePPerplexityGeGeminiXGrok
More
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

Trust score89/100!CAUTION B
0 critical0 high2 medium1 low0 info

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

LayerWhat we checkResult
L0 ProvenanceRepo owner, licence, archive status, activityPASS
L1 Static sourceSecrets, path traversal, supply chainWARN 2 findings
L2 InstructionsPrompt injection and authority framing in docs and tool descriptionsPASS
L3 InventoryDeclared tools match the sourceWARN 1 finding
L4 SandboxRun in isolation and watch behaviourSKIPPED

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 npmxdebug-mcp at 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
F-07 Obfuscation / stealthCWE-506 · CWE-94Layer L1
if (ms < 1) return `${(ms * 1000).toFixed(2)} μs`;
Why
No further detail recorded for this rule.
Fix
—
MEDIUMFilesystem / pathmcp.destructive_tools
F-05 Filesystem / pathCWE-22 · CWE-59Layer L3
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
F-08 Supply chainCWE-829 · CWE-1357Layer L1
@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

27 read14 write5 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.

ToolRiskWhat it does
close_sessiondestructiveClose and terminate a debug session
remove_breakpointdestructiveRemove a breakpoint by its ID. Works for both active session breakpoints and pending breakpoints.
remove_logpointdestructiveRemove a logpoint
remove_watchdestructiveRemove a watch expression
stopdestructiveStop the debug session and terminate script execution immediately
add_logpointwriteAdd a logpoint that logs messages without stopping execution. Use {varName} placeholders for variables.
add_step_filterwriteAdd a step filter to skip certain files/directories during stepping (e.g., vendor code)
add_watchwriteAdd a watch expression that will be evaluated on each break. Watch expressions persist across steps.
save_debug_profilewriteSave the current debug configuration (breakpoints, watches, filters) as a named profile
set_active_sessionwriteSet which debug session should be the active/default session for subsequent commands
set_breakpointwriteSet 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_breakpointwriteSet a breakpoint that triggers when a specific function is called. Can be set before a debug session starts.
set_exception_breakpointwriteSet a breakpoint that triggers when a specific exception is thrown. Can be set before a debug session starts.
set_variablewriteSet the value of a variable in the current scope
start_coveragewriteStart tracking code coverage during debugging
start_profilingwriteStart profiling to track memory usage and execution time
stop_coveragewriteStop tracking code coverage and get the report
stop_profilingwriteStop profiling and get the results
update_breakpointwriteUpdate a breakpoint (enable/disable or change hit conditions). Works for both active session and pending breakpoints.
capture_request_contextreadCapture the current HTTP request context ($_GET, $_POST, $_SESSION, $_COOKIE, headers)
capture_snapshotreadCapture a snapshot of the current debug state for the export report
continuereadContinue script execution until the next breakpoint or end of script
detachreadDetach from the debug session and let the script continue running without debugging
evaluatereadEvaluate a PHP expression in the current context. Returns the result of the expression. Use for calculations, method calls, or inspecting computed values.
evaluate_watchesreadEvaluate all watch expressions and return their current values
export_sessionreadExport the current debug session as a report
get_contextsreadGet available variable contexts (Local, Superglobals, User-defined constants) at the current position
get_coverage_reportreadGet the current code coverage report
get_function_historyreadGet the history of function calls made during debugging
get_logpoint_historyreadGet the log output history from logpoints
get_memory_timelinereadGet memory usage timeline from profiling
get_profile_statsreadGet current profiling statistics
get_session_statereadGet detailed state of a specific debug session including current position and status
get_sourcereadGet the source code of a file or a specific line range
get_stack_tracereadGet the current call stack showing all function calls leading to the current position
get_variablereadGet a specific variable by name, including nested properties. Use PHP syntax for nested access (e.g.,
get_variablesreadList 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_breakpointsreadList all breakpoints including both active session breakpoints and pending breakpoints
list_debug_profilesreadList all saved debug profiles
list_sessionsreadList all active PHP debug sessions with their current state
list_step_filtersreadList all step filter rules
list_watchesreadList all active watch expressions
load_debug_profilereadLoad a saved debug profile
step_intoreadStep into the next function call, or to the next line if not a function call. This follows execution into called functions.
step_outreadStep out of the current function. Execution continues until the current function returns.
step_overreadStep 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

  1. !CAUTION B 89 / 100

    First audit · 3e33a4dea921

README badge

For maintainers · updates on every re-audit

ModelsAtlas: CAUTION BMODELSATLASCAUTION · B
[![ModelsAtlas: CAUTION B](https://modelsatlas.com/mcp/kpanuragh/xdebug/badge.svg)](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?
MCP server for PHP Xdebug debugging - enables AI-assisted PHP debugging through the Model Context Protocol with Unix socket and TCP support
What tools does Xdebug expose?
46 in total: 27 read-only, 14 that write, and 5 that can delete or overwrite (close_session, remove_breakpoint, remove_logpoint, remove_watch, stop). Every one is listed on this page with its risk.
Is Xdebug safe to connect to an agent?
With care. The audit graded it B (89/100) and found 3 things worth knowing before you trust this server, listed below with the exact line each was found on. Separately from the audit: 5 of its tools can destroy data, so scope the token you give it to what you actually need.
What credentials does Xdebug need?
It reads DBGP_IDEKEY from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How does Xdebug run?
It speaks stdio, so it runs as a local process your client starts. It is published on npm as xdebug-mcp at 1.3.1.
How current is this page?
The grade is for one exact copy of the source (3e33a4dea921), read on 2026-10-09. The repository is watched and re-audited when it changes.

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.