MCP Directory

MCP Server Playwright

Browser automation via Playwright — let LLMs navigate, click, fill forms, screenshot, and run JS in a real browser.

Unverified
stdio (local)
No auth
Stale
JavaScript

Add to your client

Copy the config for your MCP client and paste it into its config file.

Install / run
npx @automatalabs/mcp-server-playwright install

Paste into ~/Library/Application Support/Claude/claude_desktop_config.json

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

Step-by-step guides: Add to Claude Desktop · Add to Cursor · Add to Windsurf

Before you start

  • Node.js with npx available in PATH
  • Playwright browsers installed (npx playwright install)
  • Windows or macOS (the automated installer checks OS compatibility)

About MCP Server Playwright

MCP Server Playwright gives LLM clients (Claude Desktop, Cursor, etc.) browser automation through Playwright. Tools cover navigation, clicking by selector or text, hovering, filling inputs, selecting dropdown options, taking screenshots, and executing arbitrary JavaScript in the page. Console logs and screenshots are also exposed as MCP resources. Installation is automated via an npx installer that writes the Claude Desktop config, or via Smithery for Claude and Cursor.

Tools & capabilities (10)

browser_navigate

Navigate to any URL in the browser.

browser_screenshot

Capture a screenshot of the entire page or a specific element. Accepts name (required), optional selector, and optional fullPage flag.

browser_click

Click an element on the page using a CSS selector.

browser_click_text

Click an element on the page by its text content.

browser_hover

Hover over an element on the page using a CSS selector.

browser_hover_text

Hover over an element on the page by its text content.

browser_fill

Fill out an input field given a selector and value.

browser_select

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

browser_select_text

Select an option in a SELECT element by its text content.

browser_evaluate

Execute JavaScript in the browser console and return the result.

What this server can do

MCP Server Playwright provides tools for these capabilities — tap one to see every MCP server that does the same:

When to use it

  • Automating web navigation and form filling from an LLM client
  • Capturing full-page or element screenshots of websites
  • Scraping or inspecting page content by running JavaScript in the page
  • Monitoring browser console output during automated interactions

Security notes

Runs a real browser locally and executes arbitrary JavaScript supplied by the model via browser_evaluate, and navigates to any URL. Treat model-driven navigation and script execution as untrusted; avoid using on machines with sensitive logged-in browser sessions.

MCP Server Playwright FAQ

How do I install it?

Run `npx @automatalabs/mcp-server-playwright install`, which checks OS compatibility and creates/updates your Claude Desktop config. Alternatively install via Smithery: `npx -y @smithery/cli install @automatalabs/mcp-server-playwright --client claude` (or `--client cursor`).

Can I use it with Cursor?

Yes. Install Playwright browsers with `npx playwright install`, then run the Smithery installer with `--client cursor`. If you do not use Claude, you may need to manually create claude_desktop_config.json as described in the README.

What resources does it expose?

Browser console logs at `console://logs` (text) and captured screenshots at `screenshot://<name>` (PNG, referenced by the name given during capture).

Alternatives to MCP Server Playwright

Compare all alternatives →

All-in-one web access MCP — Web Unlocker, SERP, Scraper API, and a cloud Scraping Browser.

Verified
stdio (local)
API key
JavaScript
12 tools
Updated 18 days agoRepo

Popular community Playwright + API testing MCP server with codegen, screenshots, and device emulation.

Verified
stdio (local)
No auth
TypeScript
12 tools
Updated 1 month agoRepo

Official Browserbase cloud-browser MCP built on Stagehand — natural-language act/extract/observe.

Verified
stdio (local)
API key
TypeScript
8 tools
Updated 18 days agoRepo