Back to MCP Directory
Playwright
Model Context Protocol moderate risk

Playwright

The Playwright MCP server enables LLMs to automate web browser interactions, including navigation, screenshot capture, form filling, and JavaScript execution.

Connections & Capabilities

Connects To

GitHubPlaywright

Capabilities

readwriteexec

Quickstart

Install

npx -y @smithery/cli install @automatalabs/mcp-server-playwright --client claude

Config

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

Exposed MCP Tools (10)

moderate
browser_navigate

Navigates the browser to a specified URL.

Navigating to untrusted URLs can expose the system to malicious websites.

moderate
browser_screenshot

Captures a screenshot of the entire page or a specific element.

Screenshots may inadvertently capture sensitive information.

moderate
browser_click

Clicks an element on the page using a CSS selector.

Clicking on unintended elements can lead to unexpected behavior.

moderate
browser_click_text

Clicks an element on the page based on its text content.

Clicking on unintended elements can lead to unexpected behavior.

safe
browser_hover

Hovers the mouse over an element on the page using a CSS selector.

Hovering is generally a read-only operation with minimal risk.

safe
browser_hover_text

Hovers the mouse over an element on the page based on its text content.

Hovering is generally a read-only operation with minimal risk.

moderate
browser_fill

Fills out an input field with a specified value.

Filling out forms with incorrect or malicious data can have unintended consequences.

moderate
browser_select

Selects an option in a SELECT element using a CSS selector.

Selecting unintended options can lead to unexpected behavior.

moderate
browser_select_text

Selects an option in a SELECT element based on its text content.

Selecting unintended options can lead to unexpected behavior.

high
browser_evaluate

Executes JavaScript code in the browser console.

Executing arbitrary JavaScript code can have significant security implications, including XSS and data exfiltration.

Safety Assessment

This server offers powerful browser automation capabilities but requires careful input validation to prevent unintended consequences. It is relatively safe when used with trusted LLMs and well-defined workflows, but risky if exposed to untrusted inputs or used to access sensitive websites without proper controls.

  • No authentication required, reducing risk of credential compromise.
  • Execution is sandboxed within the browser environment.
  • Tools are well-defined with specific input parameters.
  • No direct access to the host filesystem or network.
  • Unvalidated URLs in `browser_navigate` could lead to malicious sites.
  • JavaScript execution in `browser_evaluate` poses a potential security risk if the script is not carefully vetted.
  • Screenshot capture could expose sensitive information if not used judiciously.
  • Lack of authentication means any LLM can control the browser.
Playwright Review, Pricing & Alternatives (2026) | Flaex AI