P

Playwright MCP

Cross-browser automation with Chromium, Firefox, and WebKit

Community·
Featured
·No reviews yet
Repo
Share:

About

Cross-browser automation using Microsoft's Playwright. Drive Chromium, Firefox, and WebKit sessions, run end-to-end scenarios, take screenshots, and inspect the accessibility tree. Preferred over Puppeteer when you need multi-browser coverage or better auto-waiting semantics.

Example tools

Illustrative tool names — the actual tool set is defined by the server at runtime.

list_resources
Enumerate resources exposed by this MCP
get_resource
Fetch a resource by ID
invoke
Invoke the primary action of this MCP

Screenshots

No screenshots yet.

Frequently Asked Questions

Common questions about Playwright MCP.

What is Playwright MCP used for?
Playwright MCP facilitates cross-browser automation with Chromium, Firefox, and WebKit. It enables end-to-end testing, screenshot capture, and accessibility tree inspection for web applications.
How can I install Playwright MCP in a client?
Installation in an MCP client typically involves adding the 'playwright' slug to your client's configuration. The exact steps depend on whether you are using Claude Desktop, Cursor, or Cline.
Does Playwright MCP require authentication or API keys?
This Playwright MCP variant does not specify any authentication type, such as API keys or OAuth. Usage typically involves local execution without external service credentials.
What specific capabilities does Playwright MCP expose?
Playwright MCP exposes capabilities for driving browser sessions, running automated test scenarios, taking screenshots, and inspecting the accessibility tree of web pages.
What are the costs associated with using Playwright MCP?
Playwright itself is open-source and free to use. Any associated costs would depend on your specific hosting environment or custom development efforts, not the MCP directly.
What is a common limitation of Playwright MCP usage?
A common limitation is the need for appropriate browser installations on the system where the MCP is executed. Without the target browsers, certain automation tasks cannot be performed.

Install Playwright MCP

Claude Desktop

Add this to claude_desktop_config.json.

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

Cursor

Add this to ~/.cursor/mcp.json.

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

VS Code

Add this to your workspace settings.json.

{
  "mcp.servers": {
    "playwright": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-playwright"
      ]
    }
  }
}

Reviews

Sign in to leave a review.

No reviews yet. Be the first!

Discussion(0)

Sign in to join the discussion.

No comments yet.