Back to Home
alexrwilliam icon

playwright-mcp-server

Verified Safe

by alexrwilliam

Overview

Provides a robust, token-aware Playwright browser automation server for Large Language Models (LLMs) and coding agents to interact with web content, supporting advanced features like anti-detection and multi-page management.

Installation

Run Command
playwright-mcp stdio

Environment Variables

  • MCP_SESSION_ID
  • PLAYWRIGHT_BROWSERS_PATH

Security Notes

The server itself does not contain obvious malicious patterns or hardcoded secrets. It employs `_resolve_artifact_path` to mitigate directory traversal for artifact access. However, its core functionality includes the `evaluate` tool, which executes arbitrary JavaScript within the browser context, and `intercept_route` for network modification. These powerful capabilities, if controlled by a compromised or malicious agent, could be leveraged for browser-side attacks (e.g., data exfiltration, XSS, bypassing security measures). Running the HTTP server on '0.0.0.0' by default also poses a network exposure risk if not properly secured, necessitating external firewalling or network isolation.

Similar Servers

Stats

Interest Score14
Security Score7
Cost ClassLow
Avg Tokens1000
Stars6
Forks1
Last Update2025-12-16

Tags

PlaywrightBrowser AutomationWeb ScrapingAnti-detectionLLM Tooling