MCP Server Playwright A Model Context Protocol server that provides browser automation capabilities using Playwright Enable LLMs to interact with web pages, take screenshots, and execute JavaScript in a real browser environment - Installation - Configuration - Components - Resources - π Full browser automation capabilities - πΈ Screenshot capture of entire pages or specific elements - π±οΈ Compreh
Add this skill
npx mdskills install Automata-Labs-team/mcp-server-playwrightWell-documented browser automation MCP server with comprehensive Playwright tools and clear examples
1<h1 align="center">MCP Server Playwright</h1>2<p align="center">3 <a href="https://www.automatalabs.io"><img alt="MCP Playwright" src="https://automatalabs.io/icon.svg" height="250"/></a>4</p>5<p align="center">6 <b>A Model Context Protocol server that provides browser automation capabilities using Playwright</b></br>7 <sub>Enable LLMs to interact with web pages, take screenshots, and execute JavaScript in a real browser environment</sub>8</p>910<p align="center">11 <a href="https://www.npmjs.com/package/@automatalabs/mcp-server-playwright"><img alt="NPM Version" src="https://img.shields.io/npm/v/@automatalabs/mcp-server-playwright.svg" height="20"/></a>12 <a href="https://npmcharts.com/compare/@automatalabs/mcp-server-playwright?minimal=true"><img alt="Downloads per month" src="https://img.shields.io/npm/dm/@automatalabs/mcp-server-playwright.svg" height="20"/></a>13 <a href="https://github.com/Automata-Labs-team/MCP-Server-Playwright/blob/main/LICENSE"><img alt="License" src="https://img.shields.io/github/license/Automata-Labs-team/MCP-Server-Playwright.svg" height="20"/></a>14 <a href="https://smithery.ai/server/@automatalabs/mcp-server-playwright"><img alt="Smithery Installs" src="https://smithery.ai/badge/@automatalabs/mcp-server-playwright" height="20"/></a>15</p>1617<a href="https://glama.ai/mcp/servers/9q4zck8po5"><img width="380" height="200" src="https://glama.ai/mcp/servers/9q4zck8po5/badge" alt="MCP-Server-Playwright MCP server" /></a>1819## Table of Contents2021- [Features](#features)22- [Installation](#installation)23- [Configuration](#configuration)24- [Components](#components)25 - [Tools](#tools)26 - [Resources](#resources)27- [License](#license)2829## Features3031- π Full browser automation capabilities32- πΈ Screenshot capture of entire pages or specific elements33- π±οΈ Comprehensive web interaction (navigation, clicking, form filling)34- π Console log monitoring35- π§ JavaScript execution in browser context3637## Installation3839### Installing via Smithery4041To install MCP Server Playwright for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@automatalabs/mcp-server-playwright):4243```bash44npx -y @smithery/cli install @automatalabs/mcp-server-playwright --client claude45```4647You can install the package using either npx or mcp-get:4849Using npx:50```bash51npx @automatalabs/mcp-server-playwright install52```53This command will:541. Check your operating system compatibility (Windows/macOS)552. Create or update the Claude configuration file563. Configure the Playwright server integration5758The configuration file will be automatically created/updated at:59- Windows: `%APPDATA%\Claude\claude_desktop_config.json`60- macOS: `~/Library/Application Support/Claude/claude_desktop_config.json`6162Using mcp-get:63```bash64npx @michaellatman/mcp-get@latest install @automatalabs/mcp-server-playwright65```6667## Configuration6869The installation process will automatically add the following configuration to your Claude config file:7071```json72{73 "mcpServers": {74 "playwright": {75 "command": "npx",76 "args": ["-y", "@automatalabs/mcp-server-playwright"]77 }78 }79}80```81## Using with Cursor8283You can also use MCP Server Playwright with [Cursor](https://www.cursor.so/), an AI-powered code editor. To enable browser automation in Cursor via MCP:84851. **Install Playwright browsers** (if not already):86 ```bash87 npx playwright install88 ```89902. **Install MCP Server Playwright for Cursor** using Smithery:91 ```bash92 npx -y @smithery/cli install @automatalabs/mcp-server-playwright --client cursor93 ```94953. **Configuration file setup**:96 If you do not use Claude, the configuration file (`claude_desktop_config.json`) may not be created automatically.97 - On Windows, create a folder named `Claude` in `%APPDATA%` (usually `C:\Users\<YourName>\AppData\Roaming\Claude`).98 - Inside that folder, create a file named `claude_desktop_config.json` with the following content:99100 ```json101 {102 "serverPort": 3456103 }104 ```1051064. **Follow the remaining steps in the [Installation](#installation) section above** to complete the setup.107108Now, you can use all the browser automation tools provided by MCP Server Playwright directly from Cursorβs AI features, such as web navigation, screenshot capture, and JavaScript execution.109110> **Note:** Make sure you have Node.js installed and `npx` available in your system PATH.111112## Components113114### Tools115116#### `browser_navigate`117Navigate to any URL in the browser118```javascript119{120 "url": "https://stealthbrowser.cloud"121}122```123124#### `browser_screenshot`125Capture screenshots of the entire page or specific elements126```javascript127{128 "name": "screenshot-name", // required129 "selector": "#element-id", // optional130 "fullPage": true // optional, default: false131}132```133134#### `browser_click`135Click elements on the page using CSS selector136```javascript137{138 "selector": "#button-id"139}140```141142#### `browser_click_text`143Click elements on the page by their text content144```javascript145{146 "text": "Click me"147}148```149150#### `browser_hover`151Hover over elements on the page using CSS selector152```javascript153{154 "selector": "#menu-item"155}156```157158#### `browser_hover_text`159Hover over elements on the page by their text content160```javascript161{162 "text": "Hover me"163}164```165166#### `browser_fill`167Fill out input fields168```javascript169{170 "selector": "#input-field",171 "value": "Hello World"172}173```174175#### `browser_select`176Select an option in a SELECT element using CSS selector177```javascript178{179 "selector": "#dropdown",180 "value": "option-value"181}182```183184#### `browser_select_text`185Select an option in a SELECT element by its text content186```javascript187{188 "text": "Choose me",189 "value": "option-value"190}191```192193#### `browser_evaluate`194Execute JavaScript in the browser console195```javascript196{197 "script": "document.title"198}199```200201### Resources2022031. **Console Logs** (`console://logs`)204 - Access browser console output in text format205 - Includes all console messages from the browser2062072. **Screenshots** (`screenshot://<n>`)208 - Access PNG images of captured screenshots209 - Referenced by the name specified during capture210211## License212213This project is licensed under the MIT License - see the [LICENSE](https://github.com/Automata-Labs-team/MCP-Server-Playwright/blob/main/LICENSE) file for details.214
Full transparency β inspect the skill content before installing.