Playwright MCP Server

Playwright Tools for AWorld MCP

Local serverstdioTypeScript

What is the Playwright MCP server?

Playwright MCP server is a locally run integration for AI assistants that speak the Model Context Protocol. Playwright Tools for AWorld MCP.

What you get

A Model Context Protocol (MCP) server that provides browser automation capabilities using Playwright. This server enables LLMs to interact with web pages through structured accessibility snapshots, bypassing the need for screenshots or visually-tuned models.

  • Fast and lightweight — . Uses Playwright's accessibility tree, not pixel-based input
  • LLM-friendly — . No vision models needed, operates purely on structured data
  • Deterministic tool application — . Avoids ambiguity common with screenshot-based approaches

Setting it up

Installation goes through your MCP client rather than a global install: point it at @playwright/mcp on npm and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.

What the assistant can call

Once Playwright is connected, these are the calls the assistant has available:

  • browser_click — Title: Click
  • Description — Perform click on a web page
  • Parameters — - element (string): Human-readable element description used to obtain permission to interact with the element
  • Read-onlyfalse
  • browser_close — Title: Close browser
  • browser_console_messages — Title: Get console messages
  • browser_drag — Title: Drag mouse
  • browser_evaluate — Title: Evaluate JavaScript
  • browser_file_upload — Title: Upload files
  • browser_fill_form — Title: F
  • Requirements — The Requirements tool exposed by this server
  • Configuration — Playwright MCP server supports following arguments. They can be provided in the JSON configuration above, as a part of the "args" list:

Configuration and credentials

  • Node.js 18 or newer - VS Code, Cursor, Windsurf, Claude Desktop, Goose or any other MCP client

Before you rely on it

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • With 13 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch Playwright.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the playwright mcp server does with a few real requests.

Choosing this one

This sits in the browser automation group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Playwright's toolset — browser_click, Description, Parameters and 10 more — is a fair guide to whether it matches your workflow. It is maintained by jim.yan; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against Playwright's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Available tools

ToolWhat it does
browser_clickTitle: Click
DescriptionPerform click on a web page
Parameters- element (string): Human-readable element description used to obtain permission to interact with the element
Read-only**false**
browser_closeTitle: Close browser
browser_console_messagesTitle: Get console messages
browser_dragTitle: Drag mouse
browser_evaluateTitle: Evaluate JavaScript
browser_file_uploadTitle: Upload files
browser_fill_formTitle: F
RequirementsThe Requirements tool exposed by this server.
ConfigurationPlaywright MCP server supports following arguments. They can be provided in the JSON configuration above, as a part of the "args" list:
ToolsThe Tools tool exposed by this server.

How to install the Playwright MCP server

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

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

  • Node.js 18 or newer - VS Code, Cursor, Windsurf, Claude Desktop, Goose or any other MCP client

Example prompts to try

  • Use Playwright to browser click.
  • Use Playwright to Description.
  • Use Playwright to Parameters.

Frequently asked questions

It connects Playwright to MCP-compatible AI assistants such as Claude and Cursor, exposing 13 tools (browser_click, Description, Parameters, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Playwright directly.