Back to Home
sandeep-talware icon

mcp-playwright

by sandeep-talware

Overview

Automate browser actions programmatically via an MCP protocol server, primarily for LLM interaction.

Installation

Run Command
node src/server.js

Environment Variables

  • PORT
  • HOST
  • CHROME_EXECUTABLE_PATH
  • CHROME_START_MAXIMIZED
  • RECORDING_ENABLED
  • NODE_ENV
  • LOG_LEVEL

Security Notes

The server exposes capabilities that allow arbitrary JavaScript execution within the controlled browser context via the `playwright_evaluate` tool, and dynamic network request interception/modification via `playwright_route_request`. If exposed to untrusted clients or integrated with an LLM that might generate malicious code, this poses significant risks, including Cross-Site Scripting (XSS), data exfiltration, or browser exploitation. The included `Validator` primarily checks input structure and types, not the safety of the content. The `README` acknowledges these risks and warns against public exposure without authentication.

Similar Servers

Stats

Interest Score0
Security Score4
Cost ClassLow
Avg Tokens150
Stars0
Forks0
Last Update2025-12-08

Tags

PlaywrightBrowser AutomationMCPWebSocketLLM Tooling