MCP server for PHP Xdebug debugging with breakpoints, stepping, and variable inspection
Please install the `xdebug` MCP server into my current AI client (that's you).
Required prerequisites (do these first if not already done):
- **PHP with Xdebug** — Configure xdebug.mode=debug and xdebug.client_host pointing to MCP server
Canonical MCP server config (stdio transport):
- command: `npx`
- args: ["-y","xdebug-mcp"]
- optional environment variables:
- `XDEBUG_PORT`: Port to listen for Xdebug connections (TCP mode) (example: `9003`)
- `XDEBUG_SOCKET_PATH`: Unix domain socket path (replaces TCP when set) (example: `/tmp/xdebug.sock`)
- `PATH_MAPPINGS`: JSON mapping container paths to host paths (for Docker) (example: `{"/var/www/html": "/home/user/projects/myapp"}`)
Note: 41 tools for PHP debugging via Xdebug DBGp protocol. Supports TCP and Unix socket modes. Works with Docker containers via path mappings.
Add this MCP server to my current client's config in the correct format for you. If you need secrets or credentials I haven't provided, ASK me — do not invent values or leave raw placeholders. After adding it, tell me how to verify the server is connected.Real-time Kubernetes network traffic visibility and API analysis for HTTP, gRPC, Redis, Kafka, DNS.