Playwright MCP Server

Playwright Tools for AWorld MCP

Local serverstdioTypeScript

What is the Playwright MCP Server?

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

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-only — false
  • 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

Recorded tools

  • browser_click — Title: Click
  • 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

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
browser_clickTitle: Click
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

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

Playwright Tools for AWorld MCP Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.