AITeamGuide

AITeamGuide Hub · MCP server

Playwright MCP

Microsoft's MCP server that lets an assistant drive a browser through Playwright using the page's accessibility tree.

MCP server★ 40k starsApache-2.0Software developmentOps & IT

View on GitHub

Short answer: how to install Playwright MCP

Playwright MCP is an Apache-2.0-licensed, open-source MCP server on GitHub (microsoft/playwright-mcp) with 40,434 stars as of December 2, 2026. Its last push was on December 1, 2026. To install it in Claude Code, run claude mcp add playwright npx @playwright/mcp@latest. It works with Any MCP client, VS Code, Claude Code, Cursor; steps for each are below.

Key facts

Type
MCP server
Jobs it fits
Do web errands; Test a web app
Fields
Software development, Ops & IT
Works with
Any MCP client, VS Code, Claude Code, Cursor
GitHub
microsoft/playwright-mcp
Licence
Apache-2.0
Stars
40,434 as of December 2, 2026
Last updated
December 1, 2026 (last push to GitHub)
Author
@microsoft
Submitted by
@aiteamguide
Added to the Hub
October 21, 2026

Install / Use it

Apache-2.0Local MCP server

Download ZIP View source

Cursor

Add to Cursor

Or paste into ~/.cursor/mcp.json

{
  "mcpServers": {
    "playwright": {
      "command": "npx",
      "args": [
        "@playwright/mcp@latest"
      ]
    }
  }
}

Claude Code

Command from the README

claude mcp add playwright npx @playwright/mcp@latest

Claude Desktop

Add to claude_desktop_config.json (Settings → Developer → Edit Config), then restart Claude

{
  "mcpServers": {
    "playwright": {
      "command": "npx",
      "args": [
        "@playwright/mcp@latest"
      ]
    }
  }
}

VS Code

Add to VS Code

Or from the command line

code --add-mcp '{"name":"playwright","type":"stdio","command":"npx","args":["@playwright/mcp@latest"]}'

Codex

Command from the README

codex mcp add playwright npx "@playwright/mcp@latest"

Safety: Runs code from a third-party repo. Review the source and the permissions before installing.

Commands and configs are taken from the project's README and re-wrapped in each app's documented format. If they differ, the README wins.

How to add MCP servers in your app, step by step: Claude Code · Cursor · VS Code · Claude Desktop · Codex · Gemini CLI · Copilot CLI · OpenCode · Cline · Roo Code · Kilo Code · Zed · LM Studio · Antigravity · Windsurf · Hermes Agent · ChatGPT.

FAQ

How do I add Playwright MCP to Claude Code?

Run claude mcp add playwright npx @playwright/mcp@latest in your terminal.

How do I add Playwright MCP to Codex?

Run codex mcp add playwright npx "@playwright/mcp@latest" in your terminal.

How do I add Playwright MCP to Cursor?

Use the Add to Cursor button in the install panel on this page, or paste this entry under mcpServers in ~/.cursor/mcp.json: {"playwright":{"command":"npx","args":["@playwright/mcp@latest"]}}.

Is Playwright MCP free?

The code is open source under the Apache-2.0 licence, so it's free to use. Any account or API key the connected service needs is billed by that service, not by the project; see the README.

Is Playwright MCP still maintained?

Its last push to GitHub was on December 1, 2026, and it had 40,434 stars as of December 2, 2026. We re-check GitHub daily.

Prefer a ready-made product?

Commercial agents for the same job, with real prices: Claude in Chrome, Perplexity Comet, Browser Use, all browser & computer-use agents.

Get new open-source AI tools like Playwright MCP in one weekly email

One email a week: new open-source agents, skills, MCP servers and playbooks from the Hub, plus AI agent price changes and new free plans. Free; unsubscribe anytime.

Free, no signup needed: the AI agent pricing cheat sheet, the cheapest listed plan for every job on one printable page.

The pricing cheat sheet is a free page on this site (no signup needed). Not sure yet? Read the latest issue first.

More from the Hub

Summary written by AITeamGuide in our own words. GitHub numbers come from the public GitHub API and refresh daily. Maintainer and want a correction or removal? Tell us. Got something similar? Submit it to the Hub.

Featured in our guides: Best MCP servers for web search · Best MCP servers for coding.