Playwright Debug MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Playwright Debug MCP Serveranalyze trace at ./test-results/trace.zip"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Playwright Debug MCP Server
An MCP (Model Context Protocol) server designed to supercharge AI-assisted debugging of Playwright tests.
Instead of manually downloading and scrubbing through trace.zip files to find why a test failed, simply point this MCP server to your trace file or Playwright results directory. The server instantly parses the exact failing action, action history, network failures, DOM snapshots, and screenshots so your AI assistant (like Claude, Cursor, Cline, or Antigravity) can instantly pinpoint the failure and suggest a code fix.
Features
🐛
analyze_trace: Automatically extracts the exact action that hung or failed, the selector used, DOM snapshots, and Base64 screenshots.📜
get_action_history: Extracts a full chronological timeline of every user action performed during the test.🌐
get_network_log: Filters network requests inside the trace to find exactly what APIs returned 4xx or 5xx right before the crash.🖼️
get_screenshots_around_time: Visual timeline extraction tool for the AI to view the exact state of the browser before and after any given timestamp.🛠️
suggest_fix: A built-in logic engine mapping common Playwright errors to actionable fixes.
Related MCP server: Playwright MCP
Usage for the Public (VS Code, Cursor, Claude Desktop)
This server can be used out-of-the-box by any MCP-compatible AI agent without needing to clone or configure anything locally.
Using in Cursor
Go to Cursor Settings > Features > MCP Servers
Click + Add New MCP Server
Set Type to
commandSet Name to
playwright-debugSet Command to:
npx -y github:aakarshitsharma06/playwright-debug-mcp
Using in VS Code (with Cline / RooCode extension)
Open your MCP configuration file (usually in ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json) and add:
{
"mcpServers": {
"playwright-debugger": {
"command": "npx",
"args": ["-y", "github:aakarshitsharma06/playwright-debug-mcp"]
}
}
}Using in Claude Desktop
Open your Claude Desktop config file (~/Library/Application Support/Claude/claude_desktop_config.json) and add:
{
"mcpServers": {
"playwright-debugger": {
"command": "npx",
"args": ["-y", "github:aakarshitsharma06/playwright-debug-mcp"]
}
}
}How to Build Locally
If you want to modify or run the code locally:
npm install
npm run build
node dist/index.jsThis server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/aakarshitsharma06/playwright-debug-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server