# Playwright MCP Server for Browser Automation

> The official Microsoft Playwright MCP server provides browser automation capabilities through the Model Context Protocol, enabling LLMs to interact with web pages via structured accessibility snapshots without requiring vision models or screenshots.

- Skill: `agentskillexchange/playwright-mcp-server-for-browser-automation` (Agent Skill)
- Install (CLI): `npx skillmds@latest add agentskillexchange/playwright-mcp-server-for-browser-automation`
- Raw SKILL.md: https://api.skillmd.com/api/skills/agentskillexchange/playwright-mcp-server-for-browser-automation/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Web & Frontend
- Author: agentskillexchange (https://skillmd.com/u/agentskillexchange)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/agentskillexchange/playwright-mcp-server-for-browser-automation

---


# Playwright MCP Server for Browser Automation

The official Microsoft Playwright MCP server provides browser automation capabilities through the Model Context Protocol, enabling LLMs to interact with web pages via structured accessibility snapshots without requiring vision models or screenshots.

## Installation

Use the upstream install or setup path that matches your environment:
- npx @playwright/mcp@latest --config path/to/config.json
- npx @playwright/mcp@latest --port 8931
- docker run -d -i --rm --init --pull=always \
- docker build -t mcr.microsoft.com/playwright/mcp .

Requirements and caveats from upstream:
- Node.js 18 or newer
- node utils/generate-links.js
- | --extension | Connect to a running browser instance (Edge/Chrome only). Requires the "Playwright Extension" to be installed.<br>*env* PLAYWRIGHT_MCP_EXTENSION |

Basic usage or getting-started notes:
- VS Code, Cursor, Windsurf, Claude Desktop, Goose, Junie or any other MCP client
- <!--
- // Generate using:

- Source: https://github.com/microsoft/playwright-mcp
- Extracted from upstream docs: https://raw.githubusercontent.com/microsoft/playwright-mcp/HEAD/README.md

## Documentation

- https://github.com/microsoft/playwright-mcp

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/playwright-mcp-server-browser-automation/)

