Playwright Report MCP
Playwright Report MCP
Un servidor MCP que expone los informes de pruebas JSON de Playwright como herramientas para agentes de LLM.
Requisitos
Python >= 3.10
uv (
brew install uvocurl -LsSf https://astral.sh/uv/install.sh | sh)Node.js + npx — solo para
mcp dev, que inicia el MCP Inspector
Related MCP server: Tesults MCP
1. Instalar dependencias
Desde la raíz del repositorio:
uv syncEsto crea .venv/ e instala el proyecto en modo editable. Todos los comandos siguientes se ejecutan mediante uv run, por lo que nunca necesitas activar el venv manualmente.
2. Generar un informe JSON de Playwright
El servidor lee un informe de Playwright generado por el reportero json. En tu proyecto de Playwright:
npx playwright test --reporter=json > results.jsonO configúralo permanentemente en playwright.config.ts:
export default defineConfig({
reporter: [['json', { outputFile: 'results.json' }]],
});El archivo debe contener las claves estándar de nivel superior config, suites, errors, stats.
Se incluye un informe de muestra en results.json si solo quieres probar el servidor.
3. Configurar la ruta del informe
Crea un archivo .env en la raíz del repositorio que apunte a ese informe (se recomienda una ruta absoluta):
REPORT_PATH=/absolute/path/to/results.jsonPara usar el ejemplo incluido en su lugar:
REPORT_PATH=/absolute/path/to/playwright-test-analysis-mcp/src/playwright_report_mcp/results.jsonREPORT_PATH se lee en cada llamada a una herramienta, por lo que puedes regenerar el informe sin reiniciar el servidor. Si no está definida, las llamadas a herramientas fallan con REPORT_PATH environment variable is not set.
4. Ejecutar el servidor
Desarrollo interactivo (MCP Inspector)
uv run mcp dev src/playwright_report_mcp/server.pyAbre el MCP Inspector en tu navegador, donde puedes listar e invocar las herramientas manualmente. Requiere npx.
Servidor stdio simple
uv run playwright-report-mcpo, de forma equivalente:
uv run mcp run src/playwright_report_mcp/server.pyHabla el protocolo MCP a través de stdin/stdout. Útil para conectarlo a un cliente MCP, o para una prueba de humo rápida:
printf '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"t","version":"1"}}}\n' \
| uv run playwright-report-mcpDeberías recibir un resultado JSON-RPC con "serverInfo":{"name":"Playwright Report",...}.
Conéctalo a un cliente
Registra el servidor con Claude Desktop:
uv run mcp install src/playwright_report_mcp/server.pyO añádelo manualmente a la configuración de un cliente MCP (p. ej. claude_desktop_config.json):
{
"mcpServers": {
"playwright-report": {
"command": "uv",
"args": [
"--directory",
"/absolute/path/to/playwright-test-analysis-mcp",
"run",
"playwright-report-mcp"
]
}
}
}--directory es importante: hace que uv resuelva el venv de este proyecto y permite que load_dotenv() encuentre el archivo .env.
Herramientas
Herramienta | Descripción |
| Resumen de la última ejecución: |
| Lista de pruebas fallidas, cada una con |
Ejecutar las pruebas
pytest y pytest-asyncio están instalados, pero el repositorio aún no tiene archivos de prueba, por lo que actualmente se recopilan 0 pruebas:
uv run pytestSolución de problemas
Síntoma | Solución |
| Crea |
|
|
| El JSON no es un informe del reportero |
| Instala Node.js para que |
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables LLMs to explore and analyze UK Government BEIS inspect_ai evaluation logs directly from tools like Claude Code and Cursor. It provides capabilities to list logs, view evaluation summaries, and inspect conversation histories for specific samples.6MIT

Tesults MCPofficial
AlicenseNot gradedqualityDmaintenanceConnect AI agents to your test results, insights, and targets. Query test runs, failures, flaky tests, and regressions across frameworks including Playwright, Jest, Pytest, Cypress and more.37MIT- FlicenseAqualityDmaintenanceEnables AI agents to run reusable Playwright test fixtures against live deployments, providing structured test results, screenshots, and assertions.3
- AlicenseBqualityBmaintenanceSupercharges AI-assisted debugging of Playwright tests by parsing trace files to extract failures, action history, network logs, screenshots, and suggesting fixes.612MIT
Related MCP Connectors
Browser-backed QA with evidence and fix-ready reports for coding agents.
Playwright selector risk checks with healing suggestions and receipts.
BuildPulse CI test analytics for AI agents — flaky tests, coverage, and CI run history.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/nora-weisser/playwright-test-analysis-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server