Back to Home
mcpservershub icon

mcp-servers

Verified Safe

by mcpservershub

Overview

The Playwright MCP Server enables AI agents to automate web browser interactions using Playwright. It provides tools for navigation, element manipulation (click, type, hover), tab management, content extraction (snapshots, screenshots, console, network), file uploads, PDF generation, and Playwright test generation. It primarily uses structured accessibility data for robust and LLM-friendly web automation, with an optional visual mode.

Installation

Run Command
npx @playwright/mcp@latest

Environment Variables

  • DEBUG
  • PW_BROWSER_AGENT

Security Notes

1. The `execute_script` tool allows arbitrary JavaScript execution within the browser's context. While an intended feature for browser automation, it's inherently high-privilege. 2. User-provided `outputDir` for generated files (screenshots, PDFs, traces) could be configured to sensitive filesystem locations. Although filenames are sanitized, writing arbitrary browser output to critical system directories poses a risk if the server runs with elevated privileges. 3. The `browser_install` tool executes `playwright install` via `child_process.fork`, requiring appropriate system permissions.

Similar Servers

Stats

Interest Score23
Security Score7
Cost ClassMedium
Avg Tokens15000
Stars1
Forks1
Last Update2026-01-05

Tags

browser-automationplaywrightweb-automationtestingweb-scrapingllm-toolsnodejstypescriptui-automationaccessibility