-
Notifications
You must be signed in to change notification settings - Fork 7
Home
Anuragh K P edited this page Mar 23, 2026
·
4 revisions
Welcome to the Xdebug MCP Server documentation! This wiki provides comprehensive information about Xdebug, the Xdebug MCP Server, and how to use it for PHP debugging.
- Agent Integration β - Use xdebug-mcp with Claude, Cursor, Cline, VS Code, Copilot, Windsurf, PhpStorm, and more
- Getting Started - Installation and basic setup
- Debugging Guide - How to debug PHP applications
- Configuration Reference - All configuration options
- Tools & Commands - Available debugging tools
- Connection Modes - TCP vs Unix Domain Sockets
- Troubleshooting - Common issues and solutions
- Understanding Xdebug - What is Xdebug and how it works
- DBGp Protocol - The debugging protocol used by Xdebug
- MCP Server Architecture - How the Xdebug MCP Server works
npm install -g xdebug-mcp
xdebug-mcpThe server will start and listen for Xdebug connections. Use with Claude or any MCP client to debug PHP code.
Using xdebug-mcp with an AI Agent or IDE? β Start here:
- Agent Integration - Complete setup for your tool (Claude, Cursor, Cline, VS Code, Copilot, Windsurf, PhpStorm, etc.)
Setting up for the first time?
- Getting Started - Install and configure (5 minutes)
- Agent Integration - Connect with your agent (5 minutes)
- Debugging Guide - Learn debugging workflows (10 minutes)
Troubleshooting & Configuration:
- Troubleshooting - Fix common problems
- Configuration Reference - All options explained
- Connection Modes - TCP vs Unix socket performance
Advanced Topics:
- Understanding Xdebug - How Xdebug works internally
- DBGp Protocol - Protocol specification details
- MCP Server Architecture - Server internals
- Tools & Commands - Low-level tool reference
Xdebug is a powerful PHP extension that provides debugging and profiling capabilities. It allows developers to:
- Set breakpoints and pause execution
- Inspect variables and stack traces
- Step through code line by line
- Generate profiling reports
- Collect code coverage metrics