Back to MCP Directory
Playwright
Model Context Protocol moderate risk

Playwright

Playwright MCP server automates web browser actions, enabling LLMs to interact with web pages, capture screenshots, scrape content, and execute JavaScript in a controlled environment.

Connections & Capabilities

Connects To

GitHubPlaywright

Capabilities

readwriteexec

Quickstart

Install

npm install -g @executeautomation/playwright-mcp-server

Config

{
  "mcpServers": {
    "playwright": {
      "command": "npx",
      "args": ["-y", "@executeautomation/playwright-mcp-server"]
    }
  }
}

Exposed MCP Tools (7)

safe
playwright_goto

Navigates the browser to a specified URL.

Navigating to a URL is a read operation.

safe
playwright_screenshot

Captures a screenshot of the current browser page.

Capturing a screenshot is a read operation.

safe
playwright_content

Retrieves the HTML content of the current browser page.

Retrieving content is a read operation.

high
playwright_evaluate

Executes JavaScript code in the browser context.

Executing arbitrary JavaScript can have significant side effects.

moderate
playwright_click

Clicks on a specified element on the page.

Clicking elements can trigger state changes on the page.

moderate
playwright_type

Types text into a specified element on the page.

Typing text can modify form fields and trigger state changes.

safe
playwright_resize

Resizes the browser window to emulate different devices.

Resizing the window does not directly modify data.

Safety Assessment

The Playwright MCP server offers powerful browser automation capabilities, but it requires careful configuration and monitoring to mitigate potential risks. Using it in stdio mode with Claude Desktop is generally safer than exposing it as an HTTP server. Avoid granting excessive permissions to prevent misuse.

  • Provides browser automation in a controlled environment.
  • Supports device emulation for testing on different devices.
  • Offers both stdio and HTTP modes for different use cases.
  • Includes a health check endpoint for monitoring.
  • Can execute arbitrary JavaScript on web pages.
  • May expose sensitive information if not configured correctly.
  • Requires careful handling of browser contexts to prevent data leakage.
  • Potential for misuse if granted excessive permissions.