Playwright

Playwright

This MCP Server will help you run browser automation and webscraping using Playwright

5,011
Stars
461
Forks
0
Releases

Overview

Playwright MCP Server is a Model Context Protocol server that exposes browser automation capabilities through Playwright to large language models. It lets LLMs load web pages, interact with page elements, take screenshots, generate test code, and web-scrape content within a real browser environment. The server also supports executing JavaScript in the live browser, enabling richer interactions with dynamic pages. It is designed to be installed via npm, mcp-get, or Smithery, and can run in Docker for isolated execution. The Docker image uses a Debian-based slim Node.js environment with core dependencies, and browsers are downloaded on first use to keep image size small. After installation, the Playwright MCP server can be used with Claude Desktop and GitHub Copilot agents in VS Code, with configuration examples provided for Claude Desktop. Documentation and an API reference are available, and testing is performed with Jest. The project also presents evals for MCP client evaluation. Overall, this server empowers LLMs to perform browser automation tasks, data extraction, and testing from within the MCP context without leaving the model environment.

Details

Owner
executeautomation
Language
TypeScript
License
MIT License
Updated
2025-12-07

Features

Playwright-powered browser automation

Exposes Playwright controls to drive real browser sessions for LLMs.

Web page interaction and automation

LLMs can navigate, click, fill forms, and interact with page elements.

Screenshots and visual output

Take screenshots of pages for debugging and validation.

Test code generation

Generate test code based on interactions and requirements.

Web scraping and data extraction

Extract page content and data during sessions.

JavaScript execution in browser

Run JavaScript in the live browser context to perform dynamic tasks.

Docker support

Run the MCP server in Docker; Debian-based slim Node.js image; browsers downloaded on first use.

Flexible installation and integration

Install via npm, mcp-get, or Smithery; Claude Desktop and VS Code Copilot integration; comprehensive docs and API references.

Audience

LLM developers / AI agentsUse to enable browser automation, testing, and data extraction from web pages via MCP.
Claude Desktop usersConfigure Claude Desktop to access and use the Playwright MCP Server for web automation tasks.
VS Code / GitHub Copilot usersIntegrate with Copilot in VS Code to drive browser actions and automate workflows.

Tags

PlaywrightMCPbrowser automationweb scrapingscreenshotstest code generationJavaScript executionDockerClaudeCopilotLLMweb automation