Back to Home
fveracoechea icon

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

Run Command
bun run dev

Environment 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

Stats

Interest Score0
Security Score6
Cost ClassHigh
Avg Tokens5000
Stars0
Forks0
Last Update2025-11-20

Tags

accessibilityWCAGPlaywrightaxe-coreweb-audit