Skip to content
Cursor

xdebug for Cursor

io.github.kpanuragh/xdebug

MCP server for PHP Xdebug debugging with breakpoints, stepping, and variable inspection

client:Cursor transport:stdio runtime:npm

Install xdebug in Cursor

~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json

{
  "mcpServers": {
    "xdebug": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "xdebug-mcp"
      ]
    }
  }
}

Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs

xdebug in other clients