Prerequisites
- Chrome, Edge, or Chromium browser
Installation
Step 1: Install the Extension
Install Playwright MCP Bridge from the Chrome Web Store.Step 2: Configure Playwright MCP Server
Add the--extension flag to your MCP server configuration:
Usage
Browser Tab Selection
When the LLM interacts with the browser for the first time, it will load a page where you can select which browser tab the LLM will connect to. This gives you control over which specific page the AI assistant will interact with during the session.Bypassing Connection Approval
By default, you need to approve each connection when the MCP server tries to connect to your browser. To bypass this approval dialog and allow automatic connections, use an authentication token.Using Your Authentication Token
Get your token
After installing the extension, click on the extension icon or navigate to the extension’s status page. Copy the
PLAYWRIGHT_MCP_EXTENSION_TOKEN value displayed in the extension UI.Benefits
Use Existing Sessions
Interact with websites where you’re already logged in without separate authentication.
Access Browser State
Leverage your existing cookies, local storage, and browser configuration.
Seamless Experience
No need to set up storage state files or manage separate profiles.
Real Browser Context
Work with your actual browser tabs and their current state.
Limitations
- Only works with Chrome, Edge, and Chromium browsers
- The
browserconfiguration is ignored when using--extensionmode - Requires manual tab selection on first connection (unless using authentication token)

