Feature your MCP

Playwright MCP

Community

Local · Apache-2.0 · Updated Nov 6, 2026

RegionGlobal

/About Playwright MCP

Playwright MCP is a Model Context Protocol server from Microsoft that provides browser automation capabilities using Playwright. It enables LLMs to interact with web pages through structured accessibility snapshots, without needing screenshots or vision models, making interactions fast, lightweight and deterministic.

AI-generated listing based on the project's public information. It may contain errors: check the original source.

/How to use Playwright MCP

Navigate to a URL and take an accessibility snapshot of the page
Fill out and submit a login form on a website
Capture a full-page screenshot of a web page
List network requests made by a page and inspect one request in detail
Set a cookie or localStorage item in the browser before testing

/Playwright MCP tools

What your assistant can call once connected.

ToolWhat it does
browser clickPerform click on a web page
browser closeClose the page
browser console messagesReturns all console messages
browser dragPerform drag and drop between two elements
browser dropDrop files or MIME-typed data onto an element, as if dragged from outside the page
browser emulate mediaEmulate CSS media features for the page, e.g. switch between light and dark color scheme
browser evaluateEvaluate JavaScript expression on page or element
browser file uploadUpload one or multiple files
browser fill formFill multiple form fields
browser findSearch the accessibility snapshot of the current page for text or a regular expression
browser handle dialogHandle a dialog
browser hoverHover over element on page
browser navigateNavigate to a URL
browser navigate backGo back to the previous page in the history
browser network requestReturns full details (headers and body) of a single network request
browser network requestsReturns a numbered list of network requests since loading the page
browser press keyPress a key on the keyboard
browser resizeResize the browser window
browser run code unsafeRun a Playwright code snippet. Unsafe: executes arbitrary JavaScript and is RCE-equivalent
browser select optionSelect an option in a dropdown
browser snapshotCapture accessibility snapshot of the current page, better than screenshot
browser take screenshotTake a screenshot of the current page
browser typeType text into editable element
browser wait forWait for text to appear or disappear or a specified time to pass
browser tabsList, create, close, or select a browser tab
browser get configGet the final resolved config after merging CLI options, environment variables and config file
browser network state setSet the browser network state to online or offline
browser routeSet up a route to mock network requests matching a URL pattern
browser route listList all active network routes
browser unrouteRemove network routes matching a pattern (or all routes)
browser cookie clearClear all cookies
browser cookie deleteDelete a specific cookie (optionally only on a given domain/path)
browser cookie getGet a specific cookie by name
browser cookie listList all cookies (optionally filtered by domain/path)
browser cookie setSet a cookie with optional flags (domain, path, expires, httpOnly, secure, sameSite)
browser localstorage clearClear all localStorage
browser localstorage deleteDelete a localStorage item
browser localstorage getGet a localStorage item by key
browser localstorage listList all localStorage key-value pairs
browser localstorage setSet a localStorage item
browser sessionstorage clearClear all sessionStorage
browser sessionstorage deleteDelete a sessionStorage item
browser sessionstorage getGet a sessionStorage item by key
browser sessionstorage listList all sessionStorage key-value pairs
browser sessionstorage setSet a sessionStorage item
browser set storage stateRestore storage state (cookies, local storage) from a file
browser storage stateSave storage state (cookies, local storage) to a file for later reuse
browser annotateOpen the Playwright Dashboard in annotation mode and wait for the user to draw annotations
browser hide highlightRemove a highlight overlay previously added for the element

/Before you connect Playwright MCP

Do I need a key or an account?

No. It connects without a key.

Which countries does it work in?

Any country.