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-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.
verdex-mcp
AI-first browser automation for Playwright test authoring, enabling AI coding assistants to generate robust, container-scoped, and content-filtered Playwright selectors for end-to-end tests.
playwright-mcp-evals
A Playwright-based testing framework for evaluating and validating Model Context Protocol (MCP) servers, including tool calls, conformance, and LLM-driven scenarios.
playwright-mcp
Provides a guide and example client project for generating and running Playwright UI and API tests using an MCP Playwright server with LLM agents.