playwright-a11y-mcp
by fveracoechea
Overview
Automated web accessibility auditing and reporting against WCAG 2.1 A/AA criteria using Playwright and axe-core.
Installation
bun run devEnvironment Variables
- AUTH_COOKIE_NAME
- AUTH_COOKIE_VALUE
- STORAGE_TYPE
- S3_BUCKET
- S3_REGION
- S3_ACCESS_KEY_ID
- S3_SECRET_ACCESS_KEY
- S3_BASE_URL
- PUBLIC_SCREENSHOTS_PATH
- BASE_URL
Security Notes
The source code explicitly launches Playwright in non-headless mode (`headless: false`) in all browser automation tools (`analizeURL`, `testPageTool`). This contradicts the README's claim of 'Runs in headless Chromium'. Running non-headless browsers on a server introduces significant operational complexities (requires a display environment) and security risks (increased attack surface if a browser exploit were to escape the sandbox, potential for unexpected UI interactions). Sensitive credentials (`AUTH_COOKIE_NAME`, `AUTH_COOKIE_VALUE`, S3 keys) are correctly loaded from environment variables and validated with Zod. Uploaded screenshots to S3 are marked `public-read`, which is expected but means any sensitive data captured in screenshots will be publicly accessible. Inputs are validated with Zod, mitigating some injection risks.
Similar Servers
playwright-mcp
Provides a Model Context Protocol (MCP) server for LLMs to automate browser interactions using Playwright's accessibility tree, avoiding pixel-based vision models.
mcp-accessibility-scanner
Automated web accessibility scanning and browser automation using Playwright and Axe-core, enabling LLMs to perform WCAG compliance checks and generate reports.
Playwright-AI-Agent-POM-MCP-Server
An enterprise-grade Playwright test automation framework facilitating AI agent integration for comprehensive web and mobile testing across various categories, including visual diffs, performance, and security.
browser-devtools-mcp
This MCP server provides AI coding assistants with comprehensive browser automation and debugging capabilities using Playwright, enabling execution-level and visual debugging for web pages.