Official · by microsoft
Playwright MCP server
The Playwright MCP server lets an AI assistant automate a browser to navigate pages, click, type text, and capture snapshots or screenshots.
- Runs locally
- Apache-2.0 licence
- ★ 38,351 on GitHub
- Verified against its source 19 Oct 2026
What the Playwright MCP server does
An assistant can use it to interact with web pages through Playwright browser automation, including navigating to a URL, clicking elements, typing into editable fields, taking accessibility snapshots or screenshots, and evaluating JavaScript on a page. Other listed tools return a numbered list of network requests since the page loaded and list cookies, optionally filtered by domain or path. It runs locally, started with the command npx @playwright/mcp@latest and an optional config file.
Tools it gives your assistant
browser_clickClicks an element on a web pagebrowser_navigateNavigates the browser to a URLbrowser_snapshotCaptures an accessibility snapshot of the current pagebrowser_take_screenshotTakes a screenshot of the current pagebrowser_typeTypes text into an editable elementbrowser_evaluateRuns a JavaScript expression on the page or an elementbrowser_run_code_unsafeRuns a Playwright code snippet, unsafe on the serverbrowser_network_requestsLists network requests since the page loadedbrowser_cookie_listLists cookies, optionally filtered by domain or path
How to install it
Run it locally
npx @playwright/mcp@latestWhat you need
- “Node.js 18 or newer”