---
title: "Playwright MCP Server Setup Guide and Schema"
slug: "playwright"
category: "search-web"
package: "@anthropic/mcp-server-playwright"
transport: "stdio"
canonical: "https://mcp-codex.com/servers/playwright"
source: "MCP Codex (https://mcp-codex.com)"
dateModified: "2026-09-28"
---

# Playwright MCP Server

> Full browser automation with Playwright: navigate, click, fill forms, screenshot.

## Overview
The most-used MCP server globally. Full headless browser automation using Playwright: navigate pages, click elements, fill forms, take screenshots, and extract page content. Essential for web testing, scraping, and UI verification workflows.

## Quick Install
```bash
npx -y @anthropic/mcp-server-playwright
```

## Client Configurations

### Claude Desktop (`claude_desktop_config.json`)
```json
{
  "mcpServers": {
    "playwright": {
      "command": "npx",
      "args": [
        "-y",
        "@anthropic/mcp-server-playwright"
      ]
    }
  }
}
```

### Cursor (`mcp.json`)
```json
{
  "mcpServers": {
    "playwright": {
      "command": "npx",
      "args": [
        "-y",
        "@anthropic/mcp-server-playwright"
      ]
    }
  }
}
```

### OpenAI Codex CLI (`~/.codex/config.toml`)
```toml
[mcp_servers.playwright]
command = "npx"
args = ["-y", "@anthropic/mcp-server-playwright"]
```

## Available Tools (6)

- `navigate`
- `click`
- `fill`
- `screenshot`
- `evaluate`
- `get_text_content`

## Documentation & Links
- Canonical Web Page: https://mcp-codex.com/servers/playwright
- Weekly Protocol Changelog: https://mcp-codex.com#newsletter
- GitHub Repository: https://github.com/microsoft/playwright-mcp

