经 AI Skill Hub 精选评估,Xdebug MCP调试工具 获评「推荐使用」。这款MCP工具在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 7.5 分,适合有一定技术背景的用户使用。
基于MCP协议的PHP调试工具,集成Xdebug实现AI辅助代码调试。支持PHP开发者通过AI助手直接调试PHP应用,提升开发效率。适合PHP全栈开发者和需要智能调试的团队。
Xdebug MCP调试工具 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
基于MCP协议的PHP调试工具,集成Xdebug实现AI辅助代码调试。支持PHP开发者通过AI助手直接调试PHP应用,提升开发效率。适合PHP全栈开发者和需要智能调试的团队。
Xdebug MCP调试工具 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/koriym/xdebug-mcp
# 方式二:手动配置 claude_desktop_config.json
{
"mcpServers": {
"xdebug-mcp----": {
"command": "npx",
"args": ["-y", "xdebug-mcp"]
}
}
}
# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
# 安装后在 Claude 对话中直接使用 # 示例: 用户: 请帮我用 Xdebug MCP调试工具 执行以下任务... Claude: [自动调用 Xdebug MCP调试工具 MCP 工具处理请求] # 查看可用工具列表 # 在 Claude 中输入:"列出所有可用的 MCP 工具"
// claude_desktop_config.json 配置示例
{
"mcpServers": {
"xdebug_mcp____": {
"command": "npx",
"args": ["-y", "xdebug-mcp"],
"env": {
// "API_KEY": "your-api-key-here"
}
}
}
}
// 保存后重启 Claude Desktop 生效
<img width="256" alt="xdebug-mcp" src="docs/images/logo.jpeg" />
Debug PHP with Runtime Data — No var_dump(), No Guesswork
Trace-based debugging for PHP, built on Xdebug. Drive the tools from the CLI, or let an AI assistant run the core tools through plugin, Skill, or MCP integration.
---
💡 Performance Tip: Keep Xdebug disabled in php.ini for daily use. This tool loads Xdebug on-demand only when needed.
composer global require koriym/xdebug-mcp
All tools work with Docker, Podman, and Kubectl:
xstep --break="/app/script.php:42" -- \
docker compose run --rm php php /app/script.php
xtrace -- docker compose run --rm php php /app/script.php
The tools automatically detect container runtime and configure Xdebug networking.
See tests/docker/README.md for details.
For direct command-line usage without AI:
```bash
git clone --depth 1 https://github.com/koriym/xdebug-mcp.git /tmp/xdebug-demo
Claude Code — install the plugin:
/plugin marketplace add koriym/xdebug-mcp
/plugin install xdebug@xdebug-mcp
Codex CLI — install the Skill:
git clone --depth 1 https://github.com/koriym/xdebug-mcp.git /tmp/xdebug-mcp
mkdir -p ~/.codex/skills
cp -r /tmp/xdebug-mcp/skills/xdebug ~/.codex/skills/
Any MCP-capable client — see MCP Configuration below.
You can skip this step entirely and use the CLI tools directly.
For any MCP-capable client, register xdebug-mcp in that client's MCP config (e.g. .mcp.json). MCP exposes xtrace, xprofile, xstep, xcoverage, and xback:
{
"mcpServers": {
"xdebug": {
"command": "php",
"args": ["/ABSOLUTE/PATH/TO/xdebug-mcp"]
}
}
}
Find the path with which xdebug-mcp. Restart your client after editing the config.
Run the demo examples to see each tool in action:
```bash
./bin/xcompare --break="demo/buggy.php:22" --run-a="php demo/buggy.php 10" --run-b="php demo/buggy.php 0"
./bin/xcompare --break="src/calc.php:25" --run="php src/calc.php 10" --compare-with=main ```
Each command outputs structured JSON data that AI can analyze to provide debugging insights.
xcompare --break='calc.php:25' --run-a='php calc.php 10' --run-b='php calc.php 0'
xcompare --break='calc.php:25' --run='php calc.php 10' --compare-with=main ```
Run --help on any tool for detailed options.
Note onxcomparecommands: the--run-a,--run-b, and--runvalues are executed through the shell so that quoting, redirection, and environment variables behave as users expect. Only pass trusted input to these options. Note on--steps:xcomparedefaults to--steps=1, since the comparison only needs the variable snapshot at the breakpoint. Pass--steps=Nexplicitly (e.g.--steps=100) if you want to see how execution diverges between the two runs after the break.
创新的MCP实现,填补AI调试PHP的空白。项目新颖但生态成熟度待观察,维护活跃度需加强。
该工具未明确声明开源协议,商业使用前请联系原作者确认授权范围,避免侵权风险。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
AI Skill Hub 点评:Xdebug MCP调试工具 的核心功能完整,质量良好。对于Claude Desktop / Claude Code 用户来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。
| 原始名称 | xdebug-mcp |
| 原始描述 | 开源MCP工具:Enable AI to debug PHP with Xdebug。⭐50 · PHP |
| Topics | PHP调试XdebugMCP协议AI编程开发工具 |
| GitHub | https://github.com/koriym/xdebug-mcp |
| 语言 | PHP |
收录时间:2026-05-21 · 更新时间:2026-05-22 · License:未公布 · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端