xdebug-mcp
An MCP server that enables AI assistants like Claude to directly debug PHP applications using Xdebug's DBGp protocol. It supports features such as setting breakpoints, stepping through code, inspecting variables, evaluating expressions, and viewing stack traces. It also offers advanced capabilities like watch expressions, logpoints, memory profiling, and code coverage tracking.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
What you can do with it
- Set line, conditional, or exception breakpoints in PHP code
- Step into, over, or out of PHP functions during debugging
- Inspect variables and evaluate PHP expressions in the current context
- View full call stacks and track memory usage between breakpoints
Source and maintenance
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
xdebug-mcp 1.2.1
{
"version": "1.2.1",
"transport": "stdio",
"identifier": "xdebug-mcp",
"registryType": "npm"
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"xdebug-mcp": {
"command": "npx",
"args": [
"-y",
"xdebug-mcp@1.2.1"
]
}
}
}Cline
{
"mcpServers": {
"xdebug-mcp": {
"command": "npx",
"args": [
"-y",
"xdebug-mcp@1.2.1"
]
}
}
}VS Code
{
"servers": {
"xdebug-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"xdebug-mcp@1.2.1"
]
}
}
}Claude Desktop
{
"mcpServers": {
"xdebug-mcp": {
"command": "npx",
"args": [
"-y",
"xdebug-mcp@1.2.1"
]
}
}
}Let your agent find its tools
Find servers like xdebug-mcp from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.