MCP_server_Playwright
by naumanstafona
Overview
Automated end-to-end UI testing for a web application using Playwright, including multi-factor authentication (OTP via Gmail).
Installation
npx @playwright/mcp@latest –port 8080Environment Variables
- CI
- TEST_GMAIL_USER
- TEST_GMAIL_PASSWORD
Security Notes
CRITICAL: Hardcoded Gmail account credentials (`GMAIL_USER`, `GMAIL_PASS`) and Trackstack login credentials (`TRACKSTACK_EMAIL`) are present directly in the source code (`helpers/login.ts`, `tests/LogintoApplication_New.spec.ts`, `tests/login-to-trackstack-using-gmail-otp.spec.ts`). This is a severe security vulnerability, exposing sensitive information if the repository is publicly accessible or compromised. Credentials must be loaded from secure environment variables or a secrets management system.
Similar Servers
playwright-mcp
A Model Context Protocol (MCP) server enabling LLMs to automate browser interactions through structured accessibility snapshots, bypassing traditional vision models.
fetcher-mcp
Fetch web page content using a Playwright headless browser, capable of handling dynamic JavaScript, intelligent content extraction, and parallel URL processing.
mcp-accessibility-scanner
Automated web accessibility scanning and browser automation for LLMs, enabling WCAG compliance checks, screenshot capture, and detailed accessibility reports.
mastra-playwright-mcp-with-aws
Orchestrates an AI agent using Amazon Bedrock and AWS ECS to perform automated browser interactions via the Playwright MCP server.