Back to Home
HaolongChen icon

playwright-mcp-server

Verified Safe

by HaolongChen

Overview

Provides a Docker-based Model Context Protocol (MCP) server for automating web browser actions using Playwright.

Installation

Run Command
docker-compose up -d

Environment Variables

  • PORT
  • NODE_ENV
  • LOG_LEVEL
  • MCP_SERVER_NAME
  • TIMEOUT

Security Notes

The server uses `helmet` for basic security headers and `cors` (all origins allowed, which might be overly permissive for some use cases). It explicitly mentions non-root container execution and resource limits in Docker Compose, which are good practices. There's no use of `eval` or direct `child_process` execution. However, user-provided `url` and `selector` parameters are passed directly to Playwright methods. While Playwright's APIs generally handle this safely, a malicious or overly complex selector could potentially be exploited for resource exhaustion or unexpected behavior, despite the README's claim of 'Input validation' which isn't explicitly visible in the `server.js` snippet beyond basic existence checks.

Similar Servers

Stats

Interest Score0
Security Score7
Cost ClassMedium
Avg Tokens750
Stars0
Forks0
Last Update2025-12-12

Tags

PlaywrightDockerBrowser AutomationMCPWeb Scraping