# MCP-Server-Playwright

> MCP Server

This repository provides a Model Context Protocol (MCP) server leveraging Playwright for browser automation. It enables LLMs to interact with web pages, capture screenshots, and execute JavaScript within a real browser environment.

## Overview

- **Category:** Developer Tools
- **Language:** JavaScript
- **Stars:** 298
- **Forks:** 9
- **Owner:** Automata-Labs-team
- **GitHub:** https://github.com/Automata-Labs-team/MCP-Server-Playwright
- **Created:** 2024-12-02T08:15:20+00:00
- **Updated:** 2025-03-26T18:35:34+00:00
- **Source:** https://model-context-protocol.com/servers/mcp-server-playwright-browser-automation-llms

## Setup

## Setup

To install MCP Server Playwright for Claude Desktop automatically via [Smithery](https://smithery.ai/server/@automatalabs/mcp-server-playwright):

```bash
npx -y @smithery/cli install @automatalabs/mcp-server-playwright --client claude
```

You can install the package using either npx or mcp-get:

Using npx:
```bash
npx @automatalabs/mcp-server-playwright install
```
This command will:
1. Check your operating system compatibility (Windows/macOS)
2. Create or update the Claude configuration file
3. Configure the Playwright server integration

The configuration file will be automatically created/updated at:
- Windows: `%APPDATA%\Claude\claude_desktop_config.json`
- macOS: `~/Library/Application Support/Claude/claude_desktop_config.json`

Using mcp-get:
```bash
npx @michaellatman/mcp-get@latest install @automatalabs/mcp-server-playwright
```

## Tools

## Available Tools

1. Full browser automation capabilities (Allows interaction with web pages)
2. Screenshot capture of entire pages or specific elements (Captures images of web content)
3. Comprehensive web interaction (navigation, clicking, form filling) (Enables user-like actions on web pages)
4. Console log monitoring (Tracks browser console output)
5. JavaScript execution in browser context (Runs JavaScript code within the browser)
