Back to Home
microsoft icon

playwright-mcp

by microsoft

Overview

A Model Context Protocol (MCP) server enabling LLMs to automate browser interactions through structured accessibility snapshots, bypassing traditional vision models.

Installation

Run Command
npx @playwright/mcp@latest

Environment Variables

  • PLAYWRIGHT_MCP_EXTENSION_TOKEN
  • DEBUG

Security Notes

The server itself, when running in its default mode, leverages Playwright's sandboxed browser environments. However, the browser extension component, especially when combined with the `--extension` flag and `PLAYWRIGHT_MCP_EXTENSION_TOKEN`, grants an external Model Context Protocol (MCP) client full debugger access to the user's active browser profile. This allows the client to inject arbitrary Chrome DevTools Protocol (CDP) commands, posing a critical risk of full browser compromise, including access to all logged-in sessions and sensitive data. While there's an interactive approval dialog, the token mechanism bypasses this. The explicit configuration options (`allowedOrigins`, `blockedOrigins`) for network requests are noted as *not* a security boundary. Running this tool requires extreme caution and absolute trust in the MCP client and relay server.

Similar Servers

Stats

Interest Score100
Security Score4
Cost ClassMedium
Avg Tokens3000
Stars24021
Forks1955
Last Update2025-12-05

Tags

PlaywrightBrowser AutomationLLM IntegrationWeb InteractionAccessibility Tree