TokenToSeaMCP Hub
中文 Console

Xdebug MCP

kpanuragh

Lets agents debug PHP applications through Xdebug, connecting over Unix socket or TCP.

Setup

Choose your client, copy the config, then fill in any required environment variables.

Add to CursorAdd to VS Code

claude mcp add xdebug --env LOG_LEVEL='<LOG_LEVEL>' --env XDEBUG_PORT='<XDEBUG_PORT>' -- npx -y xdebug-mcp

Environment variables

  • LOG_LEVEL
  • XDEBUG_PORT

Replace the placeholders with your own credentials and keep them out of version control.