mcp-playwright  by executeautomation

MCP server for browser automation in LLM contexts

created 8 months ago
4,462 stars

Top 11.1% on sourcepulse

GitHubView on GitHub
Project Summary

This project provides a Model Context Protocol (MCP) server for Playwright, enabling Large Language Models (LLMs) to automate browser and API interactions. It targets developers and AI agents seeking to integrate real-time web data and actions into LLM workflows, offering capabilities like web scraping, JavaScript execution, and test code generation.

How It Works

The server leverages Playwright to control real browser instances, acting as an intermediary between LLMs and the web. It exposes browser automation functionalities through the Model Context Protocol, allowing AI agents to request actions such as page navigation, element interaction, and screenshot capture. This approach provides LLMs with direct, programmatic access to dynamic web content and user interface manipulation.

Quick Start & Requirements

  • Installation: npm install -g @executeautomation/playwright-mcp-server or npx @michaellatman/mcp-get@latest install @executeautomation/playwright-mcp-server.
  • Prerequisites: Node.js. Playwright will download browser binaries upon first run.
  • VS Code Integration: Install via VS Code CLI: code --add-mcp '{"name":"playwright","command":"npx","args":["@executeautomation/playwright-mcp-server"]}'.
  • Documentation: Screenshot Documentation, API Reference.

Highlighted Details

  • Enables LLMs to interact with web pages, take screenshots, generate test code, and scrape pages.
  • Supports execution of JavaScript within a real browser environment.
  • Integrates with AI tools like Claude Desktop and GitHub Copilot agents in VS Code.

Maintenance & Community

  • Project is maintained by ExecuteAutomation.
  • No explicit community links (Discord/Slack) or roadmap are provided in the README.

Licensing & Compatibility

  • The README does not explicitly state a license.

Limitations & Caveats

The project's licensing is not specified, which may impact commercial use or integration into closed-source projects. Community support channels and a clear roadmap are also not detailed.

Health Check
Last commit

1 month ago

Responsiveness

1 day

Pull Requests (30d)
5
Issues (30d)
7
Star History
1,133 stars in the last 90 days

Explore Similar Projects

Feedback? Help us improve.