freshcrate
Skin:/
Home > MCP Servers > playwright-mcp

playwright-mcp

Playwright MCP server

Why this rank:Strong adoptionRelease freshnessHealthy release cadence

Description

Playwright MCP server

README

Playwright MCP

A Model Context Protocol (MCP) server that provides browser automation capabilities using Playwright. This server enables LLMs to interact with web pages through structured accessibility snapshots, bypassing the need for screenshots or visually-tuned models.

Playwright MCP vs Playwright CLI

This package provides MCP interface into Playwright. If you are using a coding agent, you might benefit from using the CLI+SKILLS instead.

  • CLI: Modern coding agents increasingly favor CLI–based workflows exposed as SKILLs over MCP because CLI invocations are more token-efficient: they avoid loading large tool schemas and verbose accessibility trees into the model context, allowing agents to act through concise, purpose-built commands. This makes CLI + SKILLs better suited for high-throughput coding agents that must balance browser automation with large codebases, tests, and reasoning within limited context windows.
    Learn more about Playwright CLI with SKILLS.

  • MCP: MCP remains relevant for specialized agentic loops that benefit from persistent state, rich introspection, and iterative reasoning over page structure, such as exploratory automation, self-healing tests, or long-running autonomous workflows where maintaining continuous browser context outweighs token cost concerns.

Key Features

  • Fast and lightweight. Uses Playwright's accessibility tree, not pixel-based input.
  • LLM-friendly. No vision models needed, operates purely on structured data.
  • Deterministic tool application. Avoids ambiguity common with screenshot-based approaches.

Requirements

  • Node.js 18 or newer
  • VS Code, Cursor, Windsurf, Claude Desktop, Goose, Junie or any other MCP client

Getting started

First, install the Playwright MCP server with your client.

Standard config works in most of the tools:

{
  "mcpServers": {
    "playwright": {
      "command": "npx",
      "args": [
        "@playwright/mcp@latest"
      ]
    }
  }
}

Install in VS CodeInstall in VS Code InsidersAdd via the Amp VS Code extension settings screen or by updating your settings.json file:

"amp.mcpServers": {
  "playwright": {
    "command": "npx",
    "args": [
      "@playwright/mcp@latest"
    ]
  }
}

Amp CLI Setup:

Add via the amp mcp addcommand below

amp mcp add playwright -- npx @playwright/mcp@latest
Antigravity

Add via the Antigravity settings or by updating your configuration file:

{
  "mcpServers": {
    "playwright": {
      "command": "npx",
      "args": [
        "@playwright/mcp@latest"
      ]
    }
  }
}
Claude Code

Use the Claude Code CLI to add the Playwright MCP server:

claude mcp add playwright npx @playwright/mcp@latest
Claude Desktop

Follow the MCP install guide, use the standard config above.

Cline

Follow the instruction in the section Configuring MCP Servers

Example: Local Setup

Add the following to your cline_mcp_settings.json file:

{
  "mcpServers": {
    "playwright": {
      "type": "stdio",
      "command": "npx",
      "timeout": 30,
      "args": [
        "-y",
        "@playwright/mcp@latest"
      ],
      "disabled": false
    }
  }
}
Codex

Use the Codex CLI to add the Playwright MCP server:

codex mcp add playwright npx "@playwright/mcp@latest"

Alternatively, create or edit the configuration file ~/.codex/config.toml and add:

[mcp_servers.playwright]
command = "npx"
args = ["@playwright/mcp@latest"]

For more information, see the Codex MCP documentation.

Copilot

Use the Copilot CLI to interactively add the Playwright MCP server:

/mcp add

Alternatively, create or edit the configuration file ~/.copilot/mcp-config.json and add:

{
  "mcpServers": {
    "playwright": {
      "type": "local",
      "command": "npx",
      "tools": [
        "*"
      ],
      "args": [
        "@playwright/mcp@latest"
      ]
    }
  }
}

For more information, see the Copilot CLI documentation.

Cursor

Click the button to install:

Install in Cursor

Or install manually:

Go to Cursor Settings -> MCP -> Add new MCP Server. Name to your liking, use command type with the command npx @playwright/mcp@latest. You can also verify config or add command like arguments via clicking Edit.

Factory

Use the Factory CLI to add the Playwright MCP server:

droid mcp add playwright "npx @playwright/mcp@latest"

Alternatively, type /mcp within Factory droid to open an interactive UI for managing MCP servers.

For more information, see the Factory MCP documentation.

Gemini CLI

Follow the MCP install guide, use the standard config above.

Goose

Click the button to install:

Install in Goose

Or install manually:

Go to Advanced settings -> Extensions -> Add custom extension. Name to your liking, use type STDIO, and set the command to npx @playwright/mcp. Click "Add Extension".

Junie

To add the Playwright MCP server in Junie CLI:

  1. Type /mcp
  2. Press Ctrl+A to add a new MCP server
  3. Select Playwright from the list

Alternatively, add to .junie/mcp/mcp.json:

{
  "mcpServers": {
    "Playwright": {
      "command": "npx",
      "args": [
        "-y",
        "@playwright/mcp@latest"
      ]
    }
  }
}

For more information, see the Junie MCP configuration documentation.

Kiro

Add to Kiro

Follow the MCP Servers documentation. For example in .kiro/settings/mcp.json:

{
  "mcpServers": {
    "playwright": {
      "command": "npx",
      "args": [
        "@playwright/mcp@latest"
      ]
    }
  }
}
LM Studio

Click the button to install:

Add MCP Server playwright to LM Studio

Or install manually:

Go to Program in the right sidebar -> Install -> Edit mcp.json. Use the standard config above.

opencode

Follow the MCP Servers documentation. For example in ~/.config/opencode/opencode.json:

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "playwright": {
      "type": "local",
      "command": [
        "npx",
        "@playwright/mcp@latest"
      ],
      "enabled": true
    }
  }
}
Qodo Gen

Open Qodo Gen chat panel in VSCode or IntelliJ → Connect more tools → + Add new MCP → Paste the standard config above.

Click Save.

VS Code

Click the button to install:

Install in VS CodeInstall in VS Code Insiders

Or install manually:

Follow the MCP install guide, use the standard config above. You can also install the Playwright MCP server using the VS Code CLI:

# For VS Code
code --add-mcp '{"name":"playwright","command":"npx","args":["@playwright/mcp@latest"]}'

After installation, the Playwright MCP server will be available for use with your GitHub Copilot agent in VS Code.

Warp

Go to Settings -> AI -> Manage MCP Servers -> + Add to add an MCP Server. Use the standard config above.

Alternatively, use the slash command /add-mcp in the Warp prompt and paste the standard config from above:

{
  "mcpServers": {
    "playwright": {
      "command": "npx",
      "args": [
        "@playwright/mcp@latest"
      ]
    }
  }
}
Windsurf

Follow Windsurf MCP documentation. Use the standard config above.

Configuration

Playwright MCP server supports following arguments. They can be provided in the JSON configuration above, as a part of the "args" list:

Option Description
--allowed-hosts <hosts...> comma-separated list of hosts this server is allowed to serve from. Defaults to the host the server is bound to. Pass '*' to disable the host check.
env PLAYWRIGHT_MCP_ALLOWED_HOSTS
--allowed-origins semicolon-separated list of TRUSTED origins to allow the browser to request. Default is to allow all. Important: does not serve as a security boundary and does not affect redirects.
env PLAYWRIGHT_MCP_ALLOWED_ORIGINS
--allow-unrestricted-file-access allow access to files outside of the workspace roots. Also allows unrestricted access to file:// URLs. By default access to file system is restricted to workspace root directories (or cwd if no roots are configured) only, and navigation to file:// URLs is blocked.
env PLAYWRIGHT_MCP_ALLOW_UNRESTRICTED_FILE_ACCESS
--blocked-origins semicolon-separated list of origins to block the browser from requesting. Blocklist is evaluated before allowlist. If used without the allowlist, requests not matching the blocklist are still allowed. Important: does not serve as a security boundary and does not affect redirects.
env PLAYWRIGHT_MCP_BLOCKED_ORIGINS
--block-service-workers block service workers
env PLAYWRIGHT_MCP_BLOCK_SERVICE_WORKERS
--browser browser or chrome channel to use, possible values: chrome, firefox, webkit, msedge.
env PLAYWRIGHT_MCP_BROWSER
--caps comma-separated list of additional capabilities to enable, possible values: vision, pdf, devtools.
env PLAYWRIGHT_MCP_CAPS
--cdp-endpoint CDP endpoint to connect to.
env PLAYWRIGHT_MCP_CDP_ENDPOINT
--cdp-header <headers...> CDP headers to send with the connect request, multiple can be specified.
env PLAYWRIGHT_MCP_CDP_HEADER
--cdp-timeout timeout in milliseconds for connecting to CDP endpoint, defaults to 30000ms
env PLAYWRIGHT_MCP_CDP_TIMEOUT
--codegen specify the language to use for code generation, possible values: "typescript", "none". Default is "typescript".
env PLAYWRIGHT_MCP_CODEGEN
--config path to the configuration file.
env PLAYWRIGHT_MCP_CONFIG
--console-level level of console messages to return: "error", "warning", "info", "debug". Each level includes the messages of more severe levels.
env PLAYWRIGHT_MCP_CONSOLE_LEVEL
--device device to emulate, for example: "iPhone 15"
env PLAYWRIGHT_MCP_DEVICE
--executable-path path to the browser executable.
env PLAYWRIGHT_MCP_EXECUTABLE_PATH
--extension Connect to a running browser instance (Edge/Chrome only). Requires the "Playwright Extension" to be installed.
env PLAYWRIGHT_MCP_EXTENSION
--endpoint Bound browser endpoint to connect to.
env PLAYWRIGHT_MCP_ENDPOINT
--grant-permissions <permissions...> List of permissions to grant to the browser context, for example "geolocation", "clipboard-read", "clipboard-write".
env PLAYWRIGHT_MCP_GRANT_PERMISSIONS
--headless run browser in headless mode, headed by default
env PLAYWRIGHT_MCP_HEADLESS
--host host to bind server to. Default is localhost. Use 0.0.0.0 to bind to all interfaces.
env PLAYWRIGHT_MCP_HOST
--ignore-https-errors ignore https errors
env PLAYWRIGHT_MCP_IGNORE_HTTPS_ERRORS
--init-page <path...> path to TypeScript file to evaluate on Playwright page object
env PLAYWRIGHT_MCP_INIT_PAGE
--init-script <path...> path to JavaScript file to add as an initialization script. The script will be evaluated in every page before any of the page's scripts. Can be specified multiple times.
env PLAYWRIGHT_MCP_INIT_SCRIPT
--isolated keep the browser profile in memory, do not save it to disk.
env PLAYWRIGHT_MCP_ISOLATED
--image-responses whether to send image responses to the client. Can be "allow" or "omit", Defaults to "allow".
env PLAYWRIGHT_MCP_IMAGE_RESPONSES
--no-sandbox disable the sandbox for all process types that are normally sandboxed.
env PLAYWRIGHT_MCP_NO_SANDBOX
--output-dir path to the directory for output files.
env PLAYWRIGHT_MCP_OUTPUT_DIR
--output-mode whether to save snapshots, console messages, network logs to a file or to the standard output. Can be "file" or "stdout". Default is "stdout".
env PLAYWRIGHT_MCP_OUTPUT_MODE
--port port to listen on for SSE transport.
env PLAYWRIGHT_MCP_PORT
--proxy-bypass comma-separated domains to bypass proxy, for example ".com,chromium.org,.domain.com"
env PLAYWRIGHT_MCP_PROXY_BYPASS
--proxy-server specify proxy server, for example "http://myproxy:3128" or "socks5://myproxy:8080"
env PLAYWRIGHT_MCP_PROXY_SERVER
--sandbox enable the sandbox for all process types that are normally not sandboxed.
env PLAYWRIGHT_MCP_SANDBOX
--save-session Whether to save the Playwright MCP session into the output directory.
env PLAYWRIGHT_MCP_SAVE_SESSION
--secrets path to a file containing secrets in the dotenv format
env PLAYWRIGHT_MCP_SECRETS
--shared-browser-context reuse the same browser context between all connected HTTP clients.
env PLAYWRIGHT_MCP_SHARED_BROWSER_CONTEXT
--snapshot-mode when taking snapshots for responses, specifies the mode to use. Can be "full" or "none". Default is "full".
env PLAYWRIGHT_MCP_SNAPSHOT_MODE
--storage-state path to the storage state file for isolated sessions.
env PLAYWRIGHT_MCP_STORAGE_STATE
--test-id-attribute specify the attribute to use for test ids, defaults to "data-testid"
env PLAYWRIGHT_MCP_TEST_ID_ATTRIBUTE
--timeout-action specify action timeout in milliseconds, defaults to 5000ms
env PLAYWRIGHT_MCP_TIMEOUT_ACTION
--timeout-navigation specify navigation timeout in milliseconds, defaults to 60000ms
env PLAYWRIGHT_MCP_TIMEOUT_NAVIGATION
--user-agent specify user agent string
env PLAYWRIGHT_MCP_USER_AGENT
--user-data-dir path to the user data directory. If not specified, a temporary directory will be created.
env PLAYWRIGHT_MCP_USER_DATA_DIR
--viewport-size specify browser viewport size in pixels, for example "1280x720"
env PLAYWRIGHT_MCP_VIEWPORT_SIZE

User profile

You can run Playwright MCP with persistent profile like a regular browser (default), in isolated contexts for testing sessions, or connect to your existing browser using the browser extension.

Persistent profile

All the logged in information will be stored in the persistent profile, you can delete it between sessions if you'd like to clear the offline state. Persistent profile is located at the following locations and you can override it with the --user-data-dir argument.

# Windows
%USERPROFILE%\AppData\Local\ms-playwright\mcp-{channel}-{workspace-hash}

# macOS
- ~/Library/Caches/ms-playwright/mcp-{channel}-{workspace-hash}

# Linux
- ~/.cache/ms-playwright/mcp-{channel}-{workspace-hash}

{workspace-hash} is derived from the MCP client's workspace root, so different projects get separate profiles automatically.

Isolated

In the isolated mode, each session is started in the isolated profile. Every time you ask MCP to close the browser, the session is closed and all the storage state for this session is lost. You can provide initial storage state to the browser via the config's contextOptions or via the --storage-state argument. Learn more about the storage state here.

{
  "mcpServers": {
    "playwright": {
      "command": "npx",
      "args": [
        "@playwright/mcp@latest",
        "--isolated",
        "--storage-state={path/to/storage.json}"
      ]
    }
  }
}

Browser Extension

The Playwright MCP Chrome Extension allows you to connect to existing browser tabs and leverage your logged-in sessions and browser state. See microsoft/playwright › packages/extension for installation and setup instructions.

Initial state

There are multiple ways to provide the initial state to the browser context or a page.

For the storage state, you can either:

  • Start with a user data directory using the --user-data-dir argument. This will persist all browser data between the sessions.
  • Start with a storage state file using the --storage-state argument. This will load cookies and local storage from the file into an isolated browser context.

For the page state, you can use:

  • --init-page to point to a TypeScript file that will be evaluated on the Playwright page object. This allows you to run arbitrary code to set up the page.
// init-page.ts
export default async ({ page }) => {
  await page.context().grantPermissions(['geolocation']);
  await page.context().setGeolocation({ latitude: 37.7749, longitude: -122.4194 });
  await page.setViewportSize({ width: 1280, height: 720 });
};
  • --init-script to point to a JavaScript file that will be added as an initialization script. The script will be evaluated in every page before any of the page's scripts. This is useful for overriding browser APIs or setting up the environment.
// init-script.js
window.isPlaywrightMCP = true;

Configuration file

The Playwright MCP server can be configured using a JSON configuration file. You can specify the configuration file using the --config command line option:

npx @playwright/mcp@latest --config path/to/config.json
Configuration file schema
{
  /**
   * The browser to use.
   */
  browser?: {
    /**
     * The type of browser to use.
     */
    browserName?: 'chromium' | 'firefox' | 'webkit';

    /**
     * Keep the browser profile in memory, do not save it to disk.
     */
    isolated?: boolean;

    /**
     * Path to a user data directory for browser profile persistence.
     * Temporary directory is created by default.
     */
    userDataDir?: string;

    /**
     * Launch options passed to
     * @see https://playwright.dev/docs/api/class-browsertype#browser-type-launch-persistent-context
     *
     * This is useful for settings options like `channel`, `headless`, `executablePath`, etc.
     */
    launchOptions?: playwright.LaunchOptions;

    /**
     * Context options for the browser context.
     *
     * This is useful for settings options like `viewport`.
     */
    contextOptions?: playwright.BrowserContextOptions;

    /**
     * Chrome DevTools Protocol endpoint to connect to an existing browser instance in case of Chromium family browsers.
     */
    cdpEndpoint?: string;

    /**
     * CDP headers to send with the connect request.
     */
    cdpHeaders?: Record<string, string>;

    /**
     * Timeout in milliseconds for connecting to CDP endpoint. Defaults to 30000 (30 seconds). Pass 0 to disable timeout.
     */
    cdpTimeout?: number;

    /**
     * Remote endpoint to connect to an existing Playwright server.
     */
    remoteEndpoint?: string;

    /**
     * Paths to TypeScript files to add as initialization scripts for Playwright page.
     */
    initPage?: string[];

    /**
     * Paths to JavaScript files to add as initialization scripts.
     * The scripts will be evaluated in every page before any of the page's scripts.
     */
    initScript?: string[];
  },

  /**
   * Connect to a running browser instance (Edge/Chrome only). If specified, `browser`
   * config is ignored.
   * Requires the "Playwright Extension" to be installed.
   */
  extension?: boolean;

  server?: {
    /**
     * The port to listen on for SSE or MCP transport.
     */
    port?: number;

    /**
     * The host to bind the server to. Default is localhost. Use 0.0.0.0 to bind to all interfaces.
     */
    host?: string;

    /**
     * The hosts this server is allowed to serve from. Defaults to the host server is bound to.
     * This is not for CORS, but rather for the DNS rebinding protection.
     */
    allowedHosts?: string[];
  },

  /**
   * List of enabled tool capabilities. Possible values:
   *   - 'core': Core browser automation features.
   *   - 'pdf': PDF generation and manipulation.
   *   - 'vision': Coordinate-based interactions.
   *   - 'devtools': Developer tools features.
   */
  capabilities?: ToolCapability[];

  /**
   * Whether to save the Playwright session into the output directory.
   */
  saveSession?: boolean;

  /**
   * Reuse the same browser context between all connected HTTP clients.
   */
  sharedBrowserContext?: boolean;

  /**
   * Secrets are used to replace matching plain text in the tool responses to prevent the LLM
   * from accidentally getting sensitive data. It is a convenience and not a security feature,
   * make sure to always examine information coming in and from the tool on the client.
   */
  secrets?: Record<string, string>;

  /**
   * The directory to save output files.
   */
  outputDir?: string;

  console?: {
    /**
     * The level of console messages to return. Each level includes the messages of more severe levels. Defaults to "info".
     */
    level?: 'error' | 'warning' | 'info' | 'debug';
  },

  network?: {
    /**
     * List of origins to allow the browser to request. Default is to allow all. Origins matching both `allowedOrigins` and `blockedOrigins` will be blocked.
     *
     * Supported formats:
     * - Full origin: `https://example.com:8080` - matches only that origin
     * - Wildcard port: `http://localhost:*` - matches any port on localhost with http protocol
     */
    allowedOrigins?: string[];

    /**
     * List of origins to block the browser to request. Origins matching both `allowedOrigins` and `blockedOrigins` will be blocked.
     *
     * Supported formats:
     * - Full origin: `https://example.com:8080` - matches only that origin
     * - Wildcard port: `http://localhost:*` - matches any port on localhost with http protocol
     */
    blockedOrigins?: string[];
  };

  /**
   * Specify the attribute to use for test ids, defaults to "data-testid".
   */
  testIdAttribute?: string;

  timeouts?: {
    /*
     * Configures default action timeout: https://playwright.dev/docs/api/class-page#page-set-default-timeout. Defaults to 5000ms.
     */
    action?: number;

    /*
     * Configures default navigation timeout: https://playwright.dev/docs/api/class-page#page-set-default-navigation-timeout. Defaults to 60000ms.
     */
    navigation?: number;

    /**
     * Configures default expect timeout: https://playwright.dev/docs/test-timeouts#expect-timeout. Defaults to 5000ms.
     */
    expect?: number;
  };

  /**
   * Whether to send image responses to the client. Can be "allow", "omit", or "auto". Defaults to "auto", which sends images if the client can display them.
   */
  imageResponses?: 'allow' | 'omit';

  snapshot?: {
    /**
     * When taking snapshots for responses, specifies the mode to use.
     */
    mode?: 'full' | 'none';
  };

  /**
   * allowUnrestrictedFileAccess acts as a guardrail to prevent the LLM from accidentally
   * wandering outside its intended workspace. It is a convenience defense to catch unintended
   * file access, not a secure boundary; a deliberate attempt to reach other directories can be
   * easily worked around, so always rely on client-level permissions for true security.
   */
  allowUnrestrictedFileAccess?: boolean;

  /**
   * Specify the language to use for code generation.
   */
  codegen?: 'typescript' | 'none';
}

Standalone MCP server

When running headed browser on system w/o display or from worker processes of the IDEs, run the MCP server from environment with the DISPLAY and pass the --port flag to enable HTTP transport.

npx @playwright/mcp@latest --port 8931

And then in MCP client config, set the url to the HTTP endpoint:

{
  "mcpServers": {
    "playwright": {
      "url": "http://localhost:8931/mcp"
    }
  }
}

Security

Playwright MCP is not a security boundary. See MCP Security Best Practices for guidance on securing your deployment.

Docker

NOTE: The Docker implementation only supports headless chromium at the moment.

{
  "mcpServers": {
    "playwright": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "--init", "--pull=always", "mcr.microsoft.com/playwright/mcp"]
    }
  }
}

Or If you prefer to run the container as a long-lived service instead of letting the MCP client spawn it, use:

docker run -d -i --rm --init --pull=always \
  --entrypoint node \
  --name playwright \
  -p 8931:8931 \
  mcr.microsoft.com/playwright/mcp \
  cli.js --headless --browser chromium --no-sandbox --port 8931 --host 0.0.0.0

The server will listen on host port 8931 and can be reached by any MCP client.

You can build the Docker image yourself.

docker build -t mcr.microsoft.com/playwright/mcp .
Programmatic usage
import http from 'http';

import { createConnection } from '@playwright/mcp';
import { SSEServerTransport } from '@modelcontextprotocol/sdk/server/sse.js';

http.createServer(async (req, res) => {
  // ...

  // Creates a headless Playwright MCP server with SSE transport
  const connection = await createConnection({ browser: { launchOptions: { headless: true } } });
  const transport = new SSEServerTransport('/messages', res);
  await connection.connect(transport);

  // ...
});

Tools

Core automation
  • browser_click
    • Title: Click
    • Description: Perform click on a web page
    • Parameters:
      • element (string, optional): Human-readable element description used to obtain permission to interact with the element
      • target (string): Exact target element reference from the page snapshot, or a unique element selector
      • doubleClick (boolean, optional): Whether to perform a double click instead of a single click
      • button (string, optional): Button to click, defaults to left
      • modifiers (array, optional): Modifier keys to press
    • Read-only: false
  • browser_close
    • Title: Close browser
    • Description: Close the page
    • Parameters: None
    • Read-only: false
  • browser_console_messages
    • Title: Get console messages
    • Description: Returns all console messages
    • Parameters:
      • level (string): Level of the console messages to return. Each level includes the messages of more severe levels. Defaults to "info".
      • all (boolean, optional): Return all console messages since the beginning of the session, not just since the last navigation. Defaults to false.
      • filename (string, optional): Filename to save the console messages to. If not provided, messages are returned as text.
    • Read-only: true
  • browser_drag
    • Title: Drag mouse
    • Description: Perform drag and drop between two elements
    • Parameters:
      • startElement (string, optional): Human-readable source element description used to obtain the permission to interact with the element
      • startTarget (string): Exact target element reference from the page snapshot, or a unique element selector
      • endElement (string, optional): Human-readable target element description used to obtain the permission to interact with the element
      • endTarget (string): Exact target element reference from the page snapshot, or a unique element selector
    • Read-only: false
  • browser_evaluate
    • Title: Evaluate JavaScript
    • Description: Evaluate JavaScript expression on page or element
    • Parameters:
      • element (string, optional): Human-readable element description used to obtain permission to interact with the element
      • target (string, optional): Exact target element reference from the page snapshot, or a unique element selector
      • function (string): () => { /* code / } or (element) => { / code */ } when element is provided
      • filename (string, optional): Filename to save the result to. If not provided, result is returned as text.
    • Read-only: false
  • browser_file_upload
    • Title: Upload files
    • Description: Upload one or multiple files
    • Parameters:
      • paths (array, optional): The absolute paths to the files to upload. Can be single file or multiple files. If omitted, file chooser is cancelled.
    • Read-only: false
  • browser_fill_form
    • Title: Fill form
    • Description: Fill multiple form fields
    • Parameters:
      • fields (array): Fields to fill in
    • Read-only: false
  • browser_handle_dialog
    • Title: Handle a dialog
    • Description: Handle a dialog
    • Parameters:
      • accept (boolean): Whether to accept the dialog.
      • promptText (string, optional): The text of the prompt in case of a prompt dialog.
    • Read-only: false
  • browser_hover
    • Title: Hover mouse
    • Description: Hover over element on page
    • Parameters:
      • element (string, optional): Human-readable element description used to obtain permission to interact with the element
      • target (string): Exact target element reference from the page snapshot, or a unique element selector
    • Read-only: false
  • browser_navigate
    • Title: Navigate to a URL
    • Description: Navigate to a URL
    • Parameters:
      • url (string): The URL to navigate to
    • Read-only: false
  • browser_navigate_back
    • Title: Go back
    • Description: Go back to the previous page in the history
    • Parameters: None
    • Read-only: false
  • browser_network_requests
    • Title: List network requests
    • Description: Returns all network requests since loading the page
    • Parameters:
      • static (boolean): Whether to include successful static resources like images, fonts, scripts, etc. Defaults to false.
      • requestBody (boolean): Whether to include request body. Defaults to false.
      • requestHeaders (boolean): Whether to include request headers. Defaults to false.
      • filter (string, optional): Only return requests whose URL matches this regexp (e.g. "/api/.*user").
      • filename (string, optional): Filename to save the network requests to. If not provided, requests are returned as text.
    • Read-only: true
  • browser_press_key
    • Title: Press a key
    • Description: Press a key on the keyboard
    • Parameters:
      • key (string): Name of the key to press or a character to generate, such as ArrowLeft or a
    • Read-only: false
  • browser_resize
    • Title: Resize browser window
    • Description: Resize the browser window
    • Parameters:
      • width (number): Width of the browser window
      • height (number): Height of the browser window
    • Read-only: false
  • browser_run_code
    • Title: Run Playwright code
    • Description: Run Playwright code snippet
    • Parameters:
      • code (string, optional): A JavaScript function containing Playwright code to execute. It will be invoked with a single argument, page, which you can use for any page interaction. For example: async (page) => { await page.getByRole('button', { name: 'Submit' }).click(); return await page.title(); }
      • filename (string, optional): Load code from the specified file. If both code and filename are provided, code will be ignored.
    • Read-only: false
  • browser_select_option
    • Title: Select option
    • Description: Select an option in a dropdown
    • Parameters:
      • element (string, optional): Human-readable element description used to obtain permission to interact with the element
      • target (string): Exact target element reference from the page snapshot, or a unique element selector
      • values (array): Array of values to select in the dropdown. This can be a single value or multiple values.
    • Read-only: false
  • browser_snapshot
    • Title: Page snapshot
    • Description: Capture accessibility snapshot of the current page, this is better than screenshot
    • Parameters:
      • target (string, optional): Exact target element reference from the page snapshot, or a unique element selector
      • filename (string, optional): Save snapshot to markdown file instead of returning it in the response.
      • depth (number, optional): Limit the depth of the snapshot tree
    • Read-only: true
  • browser_take_screenshot
    • Title: Take a screenshot
    • Description: Take a screenshot of the current page. You can't perform actions based on the screenshot, use browser_snapshot for actions.
    • Parameters:
      • element (string, optional): Human-readable element description used to obtain permission to interact with the element
      • target (string, optional): Exact target element reference from the page snapshot, or a unique element selector
      • type (string): Image format for the screenshot. Default is png.
      • filename (string, optional): File name to save the screenshot to. Defaults to page-{timestamp}.{png|jpeg} if not specified. Prefer relative file names to stay within the output directory.
      • fullPage (boolean, optional): When true, takes a screenshot of the full scrollable page, instead of the currently visible viewport. Cannot be used with element screenshots.
    • Read-only: true
  • browser_type
    • Title: Type text
    • Description: Type text into editable element
    • Parameters:
      • element (string, optional): Human-readable element description used to obtain permission to interact with the element
      • target (string): Exact target element reference from the page snapshot, or a unique element selector
      • text (string): Text to type into the element
      • submit (boolean, optional): Whether to submit entered text (press Enter after)
      • slowly (boolean, optional): Whether to type one character at a time. Useful for triggering key handlers in the page. By default entire text is filled in at once.
    • Read-only: false
  • browser_wait_for
    • Title: Wait for
    • Description: Wait for text to appear or disappear or a specified time to pass
    • Parameters:
      • time (number, optional): The time to wait in seconds
      • text (string, optional): The text to wait for
      • textGone (string, optional): The text to wait for to disappear
    • Read-only: false
Tab management
  • browser_tabs
    • Title: Manage tabs
    • Description: List, create, close, or select a browser tab.
    • Parameters:
      • action (string): Operation to perform
      • index (number, optional): Tab index, used for close/select. If omitted for close, current tab is closed.
      • url (string, optional): URL to navigate to in the new tab, used for new.
    • Read-only: false
Browser installation
Configuration (opt-in via --caps=config)
  • browser_get_config
    • Title: Get config
    • Description: Get the final resolved config after merging CLI options, environment variables and config file.
    • Parameters: None
    • Read-only: true
Network (opt-in via --caps=network)
  • browser_network_state_set
    • Title: Set network state
    • Description: Sets the browser network state to online or offline. When offline, all network requests will fail.
    • Parameters:
      • state (string): Set to "offline" to simulate offline mode, "online" to restore network connectivity
    • Read-only: false
  • browser_route
    • Title: Mock network requests
    • Description: Set up a route to mock network requests matching a URL pattern
    • Parameters:
      • pattern (string): URL pattern to match (e.g., "/api/users", "/*.{png,jpg}")
      • status (number, optional): HTTP status code to return (default: 200)
      • body (string, optional): Response body (text or JSON string)
      • contentType (string, optional): Content-Type header (e.g., "application/json", "text/html")
      • headers (array, optional): Headers to add in "Name: Value" format
      • removeHeaders (string, optional): Comma-separated list of header names to remove from request
    • Read-only: false
  • browser_route_list
    • Title: List network routes
    • Description: List all active network routes
    • Parameters: None
    • Read-only: true
  • browser_unroute
    • Title: Remove network routes
    • Description: Remove network routes matching a pattern (or all routes if no pattern specified)
    • Parameters:
      • pattern (string, optional): URL pattern to unroute (omit to remove all routes)
    • Read-only: false
Storage (opt-in via --caps=storage)
  • browser_cookie_clear
    • Title: Clear cookies
    • Description: Clear all cookies
    • Parameters: None
    • Read-only: false
  • browser_cookie_delete
    • Title: Delete cookie
    • Description: Delete a specific cookie
    • Parameters:
      • name (string): Cookie name to delete
    • Read-only: false
  • browser_cookie_get
    • Title: Get cookie
    • Description: Get a specific cookie by name
    • Parameters:
      • name (string): Cookie name to get
    • Read-only: true
  • browser_cookie_list
    • Title: List cookies
    • Description: List all cookies (optionally filtered by domain/path)
    • Parameters:
      • domain (string, optional): Filter cookies by domain
      • path (string, optional): Filter cookies by path
    • Read-only: true
  • browser_cookie_set
    • Title: Set cookie
    • Description: Set a cookie with optional flags (domain, path, expires, httpOnly, secure, sameSite)
    • Parameters:
      • name (string): Cookie name
      • value (string): Cookie value
      • domain (string, optional): Cookie domain
      • path (string, optional): Cookie path
      • expires (number, optional): Cookie expiration as Unix timestamp
      • httpOnly (boolean, optional): Whether the cookie is HTTP only
      • secure (boolean, optional): Whether the cookie is secure
      • sameSite (string, optional): Cookie SameSite attribute
    • Read-only: false
  • browser_localstorage_clear
    • Title: Clear localStorage
    • Description: Clear all localStorage
    • Parameters: None
    • Read-only: false
  • browser_localstorage_delete
    • Title: Delete localStorage item
    • Description: Delete a localStorage item
    • Parameters:
      • key (string): Key to delete
    • Read-only: false
  • browser_localstorage_get
    • Title: Get localStorage item
    • Description: Get a localStorage item by key
    • Parameters:
      • key (string): Key to get
    • Read-only: true
  • browser_localstorage_list
    • Title: List localStorage
    • Description: List all localStorage key-value pairs
    • Parameters: None
    • Read-only: true
  • browser_localstorage_set
    • Title: Set localStorage item
    • Description: Set a localStorage item
    • Parameters:
      • key (string): Key to set
      • value (string): Value to set
    • Read-only: false
  • browser_sessionstorage_clear
    • Title: Clear sessionStorage
    • Description: Clear all sessionStorage
    • Parameters: None
    • Read-only: false
  • browser_sessionstorage_delete
    • Title: Delete sessionStorage item
    • Description: Delete a sessionStorage item
    • Parameters:
      • key (string): Key to delete
    • Read-only: false
  • browser_sessionstorage_get
    • Title: Get sessionStorage item
    • Description: Get a sessionStorage item by key
    • Parameters:
      • key (string): Key to get
    • Read-only: true
  • browser_sessionstorage_list
    • Title: List sessionStorage
    • Description: List all sessionStorage key-value pairs
    • Parameters: None
    • Read-only: true
  • browser_sessionstorage_set
    • Title: Set sessionStorage item
    • Description: Set a sessionStorage item
    • Parameters:
      • key (string): Key to set
      • value (string): Value to set
    • Read-only: false
  • browser_set_storage_state
    • Title: Restore storage state
    • Description: Restore storage state (cookies, local storage) from a file. This clears existing cookies and local storage before restoring.
    • Parameters:
      • filename (string): Path to the storage state file to restore from
    • Read-only: false
  • browser_storage_state
    • Title: Save storage state
    • Description: Save storage state (cookies, local storage) to a file for later reuse
    • Parameters:
      • filename (string, optional): File name to save the storage state to. Defaults to storage-state-{timestamp}.json if not specified.
    • Read-only: true
DevTools (opt-in via --caps=devtools)
  • browser_hide_highlight
    • Title: Hide element highlight
    • Description: Remove a highlight overlay previously added for the element.
    • Parameters:
      • element (string, optional): Human-readable element description used when adding the highlight; must match the value passed to browser_highlight.
      • target (string, optional): Exact target element reference from the page snapshot, or a unique element selector
    • Read-only: true
  • browser_highlight
    • Title: Highlight element
    • Description: Show a persistent highlight overlay around the element on the page.
    • Parameters:
      • element (string, optional): Human-readable element description used to obtain permission to interact with the element
      • target (string): Exact target element reference from the page snapshot, or a unique element selector
      • style (string, optional): Additional inline CSS applied to the highlight overlay, e.g. "outline: 2px dashed red".
    • Read-only: true
  • browser_pick_locator
    • Title: Pick element locator
    • Description: Wait for the user to pick an element in the browser and return its ref and locator.
    • Parameters: None
    • Read-only: true
  • browser_resume
    • Title: Resume paused script execution
    • Description: Resume script execution after it was paused. When called with step set to true, execution will pause again before the next action.
    • Parameters:
      • step (boolean, optional): When true, execution will pause again before the next action, allowing step-by-step debugging.
      • location (string, optional): Pause execution at a specific :, e.g. "example.spec.ts:42".
    • Read-only: false
  • browser_start_tracing
    • Title: Start tracing
    • Description: Start trace recording
    • Parameters: None
    • Read-only: true
  • browser_start_video
    • Title: Start video
    • Description: Start video recording
    • Parameters:
      • filename (string, optional): Filename to save the video.
      • size (object, optional): Video size
    • Read-only: true
  • browser_stop_tracing
    • Title: Stop tracing
    • Description: Stop trace recording
    • Parameters: None
    • Read-only: true
  • browser_stop_video
    • Title: Stop video
    • Description: Stop video recording
    • Parameters: None
    • Read-only: true
  • browser_video_chapter
    • Title: Video chapter
    • Description: Add a chapter marker to the video recording. Shows a full-screen chapter card with blurred backdrop.
    • Parameters:
      • title (string): Chapter title
      • description (string, optional): Chapter description
      • duration (number, optional): Duration in milliseconds to show the chapter card
    • Read-only: true
Coordinate-based (opt-in via --caps=vision)
  • browser_mouse_click_xy
    • Title: Click
    • Description: Click mouse button at a given position
    • Parameters:
      • x (number): X coordinate
      • y (number): Y coordinate
      • button (string, optional): Button to click, defaults to left
      • clickCount (number, optional): Number of clicks, defaults to 1
      • delay (number, optional): Time to wait between mouse down and mouse up in milliseconds, defaults to 0
    • Read-only: false
  • browser_mouse_down
    • Title: Press mouse down
    • Description: Press mouse down
    • Parameters:
      • button (string, optional): Button to press, defaults to left
    • Read-only: false
  • browser_mouse_drag_xy
    • Title: Drag mouse
    • Description: Drag left mouse button to a given position
    • Parameters:
      • startX (number): Start X coordinate
      • startY (number): Start Y coordinate
      • endX (number): End X coordinate
      • endY (number): End Y coordinate
    • Read-only: false
  • browser_mouse_move_xy
    • Title: Move mouse
    • Description: Move mouse to a given position
    • Parameters:
      • x (number): X coordinate
      • y (number): Y coordinate
    • Read-only: false
  • browser_mouse_up
    • Title: Press mouse up
    • Description: Press mouse up
    • Parameters:
      • button (string, optional): Button to press, defaults to left
    • Read-only: false
  • browser_mouse_wheel
    • Title: Scroll mouse wheel
    • Description: Scroll mouse wheel
    • Parameters:
      • deltaX (number): X delta
      • deltaY (number): Y delta
    • Read-only: false
PDF generation (opt-in via --caps=pdf)
  • browser_pdf_save
    • Title: Save as PDF
    • Description: Save page as PDF
    • Parameters:
      • filename (string, optional): File name to save the pdf to. Defaults to page-{timestamp}.pdf if not specified. Prefer relative file names to stay within the output directory.
    • Read-only: true
Test assertions (opt-in via --caps=testing)
  • browser_generate_locator
    • Title: Create locator for element
    • Description: Generate locator for the given element to use in tests
    • Parameters:
      • element (string, optional): Human-readable element description used to obtain permission to interact with the element
      • target (string): Exact target element reference from the page snapshot, or a unique element selector
    • Read-only: true
  • browser_verify_element_visible
    • Title: Verify element visible
    • Description: Verify element is visible on the page
    • Parameters:
      • role (string): ROLE of the element. Can be found in the snapshot like this: - {ROLE} "Accessible Name":
      • accessibleName (string): ACCESSIBLE_NAME of the element. Can be found in the snapshot like this: - role "{ACCESSIBLE_NAME}"
    • Read-only: false
  • browser_verify_list_visible
    • Title: Verify list visible
    • Description: Verify list is visible on the page
    • Parameters:
      • element (string): Human-readable list description
      • target (string): Exact target element reference that points to the list
      • items (array): Items to verify
    • Read-only: false
  • browser_verify_text_visible
    • Title: Verify text visible
    • Description: Verify text is visible on the page. Prefer browser_verify_element_visible if possible.
    • Parameters:
      • text (string): TEXT to verify. Can be found in the snapshot like this: - role "Accessible Name": {TEXT} or like this: - text: {TEXT}
    • Read-only: false
  • browser_verify_value
    • Title: Verify value
    • Description: Verify element value
    • Parameters:
      • type (string): Type of the element
      • element (string): Human-readable element description
      • target (string): Exact target element reference from the page snapshot
      • value (string): Value to verify. For checkbox, use "true" or "false".
    • Read-only: false

Release History

VersionChangesUrgencyDate
v0.0.75## Bug Fixes - Serialize shared browser launch in `--isolated` mode ([#40709](https://github.com/microsoft/playwright/pull/40709)) - Forward browser-level CDP commands in extension mode ([#40706](https://github.com/microsoft/playwright/pull/40706)) High5/7/2026
v0.0.73## What's New ### Distribution - Playwright MCP is now published to the official [MCP Registry](https://registry.modelcontextprotocol.io) on each release ([#1585](https://github.com/microsoft/playwright-mcp/pull/1585)) ## Bug Fixes - Resolve extension `channel` and `executablePath` from CLI flags and environment variables ([#40572](https://github.com/microsoft/playwright/pull/40572)) - Propagate `--browser` channel on the `--extension` path ([#40567](https://github.com/microsoft/plaHigh5/1/2026
v0.0.71## What's New ### New Tools - **`browser_drop`** — Expose `Locator.drop` as an MCP tool for completing drag-and-drop operations onto a target ([#40367](https://github.com/microsoft/playwright/pull/40367)) ### Tool Improvements - **`browser_network_requests`** — Added `responseBody` and `responseHeaders` options; binary bodies are rendered as a placeholder using mime-type detection ([microsoft/playwright@f0be0b17](https://github.com/microsoft/playwright/commit/f0be0b1728)) - **`browsHigh4/27/2026
v0.0.70- Maintenance release off 1.59 branch pointMedium4/1/2026
v0.0.69## What's New ### New Tools - **`browser_network_state_set`** — Toggle network offline mode for testing connectivity scenarios ([#39459](https://github.com/microsoft/playwright/pull/39459)) - **`browser_video_chapter`** — Add a chapter marker to the video recording, showing a full-screen chapter card with blurred backdrop ([#39891](https://github.com/microsoft/playwright/pull/39891)) ### Tool Improvements - **`browser_mouse_click_xy`** — Added `button`, `clickCount`, and `delay` optMedium3/30/2026
v0.0.68### Quick follow-up bug fix - Revert `--no-sandbox` → `--no-chromium-sandbox` rename. The CLI flag name is restored to `--no-sandbox`. Low2/14/2026
v0.0.67### Extension - **Our Google Chrome extension is now available in the Chrome Web Store**: [Playwright MCP Bridge](https://chromewebstore.google.com/detail/playwright-mcp-bridge/mmlmfjhmonkocbjadbfplnigmagldckm) ### Bug Fixes - Rename `--[no-]sandbox` to `--[no-]chromium-sandbox` for clarity and to avoid ambiguity with other browsers. Low2/14/2026
v0.0.64### 🕶️ Incognito by default Browser profiles are now in-memory by default — every session starts clean with no leftover state. Use `--persistent` to opt into a persistent profile, or `--profile=<path>` to specify a custom profile directory: ```sh > playwright-cli open example.com # incognito, clean slate > playwright-cli open example.com --persistent # persistent profile > playwright-cli open example.com --profile=./my-data # custom profile directoryLow2/6/2026
v0.0.63### 🗄️ Browser storage & authentication state control Full introspection and manipulation of browser storage, enabling reproducible auth flows, debugging, and stateful automation. ```sh > playwright-cli state-save auth.json > playwright-cli state-load auth.json ``` Inspect and manage cookies: ```sh > playwright-cli cookie-list > playwright-cli cookie-get session_id > playwright-cli cookie-set session_id abc123 --domain=example.com > playwright-cli cookie-delete session_id > Low2/4/2026
v0.0.62Infrastructure for Playwright CLI is in, so we are ready to cook the features and skills! ### ⚡ Lightning fast Playwright CLI executable (http://github.com/microsoft/playwright-cli) ```sh > playwright-cli open example.com > time playwright-cli snapshot 0.03s user 0.01s system cpu 0.055 total ``` ### 🎥 On-demand video recording ```sh > playwright-cli video-start > playwright-cli open playwright.dev > playwright-cli video-stop ### Result - [Video](.playwLow1/31/2026
v0.0.61- Internal: release the "mcp" binary and scope it to playwright in NPX worldLow1/26/2026
v0.0.60### Bugfixes - Fixing the Windows CLILow1/26/2026
v0.0.59# Full Playwright CLI configuration: - Support config file in `playwright-cli.json` - Support environment configuration - Support non-Chrome browsers - See [https://github.com/microsoft/playwright-cli](https://github.com/microsoft/playwright-cli) for more info ## 📣 Playwright CLI We are adding a new token-efficient CLI mode of operation to Playwright with the skills located at [playwright-cli](https://github.com/microsoft/playwright-cli). This brings the long-awaited official SKILL-foLow1/25/2026
v0.0.58## 📣 Playwright CLI We are adding a new token-efficient CLI mode of operation to Playwright with the skills located at [playwright-cli](https://github.com/microsoft/playwright-cli). This brings the long-awaited official SKILL-focused CLI mode to our story and makes it more coding agent-friendly. > It is the first snapshot with the essential command set (which is already larger than the original MCP!), but we expect it to grow rapidly. Unlike the token use, that one we expect to go down siLow1/24/2026
v0.0.57## Prep for v0.0.58Low1/24/2026
v0.0.56### Features - Added `cdpTimeout` configuration option for CDP connections, allowing control over connection timeouts (default: 30s, `0` disables timeout). ### Fixes - Improved error handling when browser launch fails: - Clearer messaging when the browser profile is already in use (including Windows-specific exit cases). - Better diagnostics for missing system dependencies, with a suggestion to run `playwright install-deps`. Low1/16/2026
v0.0.55### 🔐 Security & Safety - MCP now enforces **protocol and filesystem access restrictions by default**: - Browser navigation and API requests are limited to `http:`, `https:`, `about:`, and `data:` URLs; `file://` is blocked. - File uploads (`setInputFiles`, file choosers, MCP file tools) are restricted to **workspace root directories** (or `cwd` if no roots are configured). - Added `--allow-unrestricted-file-access` (and `allowUnrestrictedFileAccess` config) to explicitly opt out, allowLow1/9/2026
v0.0.54## Bug Fixes - MCP extension now only connects to MCP server running on the same machine (https://github.com/microsoft/playwright/pull/38626) Low12/29/2025
v0.0.53## Bug Fixes - Fixed persistence of `saveVideo` in configs (https://github.com/microsoft/playwright/pull/38621) - Fixed issue with empty snapshots sometimes written into .md files (https://github.com/microsoft/playwright/pull/38583) - Removed 50 MB upload limit when uploading files in the Playwright extension (https://github.com/microsoft/playwright/pull/38614)- Low12/20/2025
v0.0.52### Highlights - **browser_run_code** now takes a function and supports `return` statements. - **browser_snapshot** now accepts an optional `filename` parameter. When provided, the snapshot is saved to disk and a link appears in the Files section. This avoids inlining large snapshots and keeps MCP payloads smaller.Low12/11/2025
v0.0.51### New config options - `--console-level=<'error' | 'warning' | 'info' | 'debug'>` configure the console severity level that is included in the replies. Defaults to 'info'. - `--snapshot=<'incremental' | 'full' | 'none'>` configure snapshot output mode. Defaults to 'incremental'. ### New params - **browser_console_messages** now accepts `{ level: 'error' | 'warning' | 'info' | 'debug' }` to include messages up to the given severity level. - **browser_network_requests** no longer returLow12/8/2025
v0.0.50### Maintenance releaseLow12/5/2025
v0.0.49### Maintenance releaseLow11/30/2025
v0.0.48### Maintenance release We are bringing back the `--allow-origins` flag! Please make sure you point at the trusted origins only.Low11/21/2025
v0.0.47### New ways to provide initial state There are now multiple ways to provide the initial state to the browser context or a page. For the storage state, you can either: - Start with a user data directory using the `--user-data-dir` argument. This will persist all browser data between the sessions. - Start with a storage state file using the `--storage-state` argument. This will load cookies and local storage from the file into an isolated browser context. For the page state, you can usLow11/14/2025
v0.0.46### Maintenance release - fresh Playwright under the hood - chore(mcp): log tool responses for debugging - https://github.com/microsoft/playwright/pull/38110Low11/7/2025
v0.0.45### Maintenance release - fix(mcp): do not fail on wsl client w/ windows server - [(#38063)](https://github.com/microsoft/playwright/pull/38063)Low10/31/2025
v0.0.44### Maintenance releaseLow10/24/2025
v0.0.43### MCP Changes Since Last Release * **Incremental page snapshots**: `pageState` now supports diffs. Unchanged subtrees are collapsed as `- ref=<id> [unchanged]`. Reduces noise and payload size. microsoft/playwright#37795 * **Encourage relative path usage** — MCP now suggests using relative paths for portability microsoft/playwright#37857 * **Image size cap** — Added limits on rendered image sizes to prevent resource overuse microsoft/playwright#37856 Low10/16/2025
v0.0.42- https://github.com/microsoft/playwright/commit/47f3da37a27217f16c36669261cb214864413209 feat(mcp): support test-id-attribute option (https://github.com/microsoft/playwright/pull/37760) Low10/9/2025
v0.0.41- https://github.com/microsoft/playwright/commit/86a00d091808b9637e3b9ffd91c217ec3fec700d chore(mcp): handle cross-fs video moves (https://github.com/microsoft/playwright/pull/37663) - https://github.com/microsoft/playwright/commit/52b2da831b47ba55b16cf5e62168c46361f4d885 chore(mcp): support --allowed-hosts=* (https://github.com/microsoft/playwright/pull/37657) - https://github.com/microsoft/playwright/commit/9f371ad5e386f2f0afdca479400257b1ff5ea80f feat(mcp): console error and faster wait (htLow10/1/2025
v0.0.40### Features - https://github.com/microsoft/playwright/commit/c813e9cf5 feat(mcp): allow saving videos for sessions https://github.com/microsoft/playwright/issues/37531 ```bash # video is saved from the creation of the page to the closure of the context (browser_close call). npx @playwright/mcp --save-video=800x600 ``` - https://github.com/microsoft/playwright/commit/fff065816 feat(mcp): add --init-script option https://github.com/microsoft/playwright/issues/37507 ```bash #Low9/25/2025
v0.0.39https://github.com/microsoft/playwright/commit/afb59a0ec fix(mcp): tolerate malformed roots https://github.com/microsoft/playwright/issues/37492 https://github.com/microsoft/playwright/commit/0574514a0 feat(mcp): support shared browser context https://github.com/microsoft/playwright/issues/37463Low9/19/2025
v0.0.38https://github.com/microsoft/playwright/commit/29fb93479 fix(mcp): use single output dir https://github.com/microsoft/playwright/pull/37436 https://github.com/microsoft/playwright/commit/f07c8c0ac chore(mcp): --grant-permissions cli option https://github.com/microsoft/playwright/pull/37431 https://github.com/microsoft/playwright/commit/eb39131eb fix(mcp): --allowed/blocked-origins accept origins not hosts https://github.com/microsoft/playwright/pull/37408 https://github.com/microsoft/playwrigLow9/18/2025
v0.0.37- 🔥 **Secrets** 🔥 - https://github.com/microsoft/playwright/commit/dea31d86d When user prompts ``` "Authenticate using X-USERNAME / X-PASSWORD" ``` the secret values for `X-USERNAME` and `X-PASSWORD` are not sent to the LLM. ```txt # secrets.env X-USERNAME=<secret_value> X-PASSWORD=<secret_value> ``` - **Action** and **navigation timeouts** can be configured to go beyond standard 5s/60s. - https://github.com/microsoft/playwright/commit/b37caaaf5 - ClicLow9/8/2025
v0.0.36b176111 chore: roll Playwright to latest (#971) 29d468d chore: add verification tools section (#957) 78298c3 chore: introduce verification tools (#951) 7fb8b0d fix: `browser_tabs` select action with index 0 failing due to falsy check (#964) 7774ad9 chore(extension): support custom executablePath (#947) Low8/31/2025
v0.0.353d1a60b chore: introduce form filling tool (#935) 86eba22 chore: remove navigate_forward due to low usage counts (#934) 2521a67 chore: merge tabs tool into one (#933) Low8/24/2025
v0.0.34### 🔥 Default profile support 🔥 Connect to the default Chrome profile using the [companion extension](https://github.com/microsoft/playwright-mcp/blob/main/extension/README.md) <img width="415" height="216" alt="Screenshot 2025-08-15 at 5 46 57 PM" src="https://github.com/user-attachments/assets/742c04f0-595c-4c7c-84df-bd315b4a29fd" /> ### Fixes 91d5d24 chore: handle list roots in the server, with timeout (#898) 3f148a4 docs: add opencode installation instructions (#895) 53c6b6d fiLow8/16/2025
v0.0.3316f3523 chore: do not return fullPage screenshots to the LLM (#849) 3f6837b fix: cursor does not respond to listRoots (#826) a60d7b8 chore: slice profile dirs by root in vscode (#814) 2a86ac7 chore: use pngs by default for screenshots (#797) f600234 chore: record user actions in the session log (#798) Low8/9/2025
v0.0.32- 2bf57e2 chore: do not snapshot on fill (#767) - // *speed up form filling* - a9b9fb8 chore: ping streaming HTTP client and disconnect on connection termination (#764) - da8a244 chore: one tool experiment (#746) - // **experimental** *encapsulate action in subagent loops* - b1a0f77 chore: save session log (#740) - // **experimental** *log trajectory extensively via CLI --save-session* - 468c84e chore: move page state to tab, do not cache snapshot (#730) - // *modal states are local to tabs Low7/26/2025
v0.0.31### What's new - 🔥 **browser_evaluate** tool was added. Evaluate on element to read styles, attributes or globally to run code 012c906 - 💻 Recent console logs are included in the tool results. Agents no longer need to poll for console messages 5bfff0a - 💻 Page errors are included in console messages a5a57df - 🏷️ Right click for your userland context menus c97bc6e - 🖱️ (x,y) - based mouse actions available as opt-in (run mcp server with `--caps=vision` argument) d61aa16 ### Misc - 9Low7/17/2025
v0.0.307fca8f5 chore: roll Playwright to 1.54.1 (#665) 59f1d67 feat(dblclick): add double click (#654) Low7/14/2025
v0.0.29#### Issues fixed * ElementHandle can only be created from FrameDispatcher #538 * Error with CSS selector #537 * MCP Server crashes when a simple button is clicked #524 #### Notable changes * docs(readme): fix connection method call in programmatic usage example #532 * Include Cursor One-Click in README.md #531 * Add instructions for MCP server in Qodo Gen #530 * chore: roll playwright to Jun 10th, v1.53 #542 Low6/11/2025
v0.0.286567795 chore: respect server settings from config (#502) eec177d chore: reuse browser in server mode (#495) 54ed7c3 chore: refactor server, prepare for browser reuse (#490) Low6/1/2025
v0.0.279429463 chore: roll Playwright to 5/27 (#485) 9e5ffd2 fix(cursor): allow enforcing images for cursor --image-responses=allow (#478) 13cd1b4 fix: respect browserName in config (#461) Low5/28/2025
v.0.0.261318e39 chore: fix operation over cdp (#440) aa6ac51 feat(trace): allow saving trajectory as trace (experimental) (#426) fea50e6 chore: introduce resolved config for programmatic operation (#425) Low5/17/2025
v0.0.25c506027 chore: run w/ sandbox by default, --no-sandbox to opt out (#412) 7be0c88 feat(args): allow configuring proxy, UA, viewport, https errors via args (#410) ce72367 feat(storage): allow passing storage state for isolated contexts (#409) 949f956 feat(ephemeral): allow for non-persistent isolated context operation (#405) Low5/13/2025
v0.0.24 445170a chore: roll playwright 5/9 (#394) - [a6b4b222e](https://github.com/microsoft/playwright/commit/a6b4b222e) chore: upstream the frame tree snapshot [#35917](https://github.com/microsoft/playwright/issues35917/) - [3196aff32](https://github.com/microsoft/playwright/commit/3196aff32) chore: experiment with stable aria refs [#35900](https://github.com/microsoft/playwright/issues35900/) - [263453a7b](https://github.com/microsoft/playwright/commit/263453a7b) chore: relax the visibility Low5/12/2025
v0.0.22c225524 fix: don't error on navigating to a download link (#328) 950d0d1 devops: fix Docker publishing (#369) Low5/7/2025
v0.0.2135e6c49 devops: publish Docker image to :latest as well (#365) e95b5b1 chore: get rid of connection factory (do not send binary to cursor) (#362) 23a2e5f devops: add Docker publishing (#356) d01aa19 chore: annotate tools (#351) 8cd7d5a chore(docker): optimize Dockerfile by excluding unnecessary files and using non-root user (#273) 42faa3c feat: add --(allowed|blocked)-origins (#319) 4694d60 fix(config): allow specifying user data dir in config (#342) 7dc689e fix: installation tool on WindLow5/7/2025
v0.0.204997964 fix: require is not defined (#334)Low5/3/2025
v0.0.19927a128 chore: allow generating tests for script (#331) 292e75d chore: roll Playwright to remove empty generic nodes (#330) 2c9376e chore: don't sanitize file extension away (#327) 062cdd0 fix: sticky launch errors (#324) a15f0f3 chore: save downloads to outputDir (#310) 685dea9 chore: migrate to ESM (#303) Low5/3/2025
v0.0.18BugfixesLow4/30/2025

Dependencies & License Audit

Loading dependencies...

Similar Packages

apitapCLI, MCP server, and npm library that turns any website into an API — no docs, no SDK, no browser.v1.12.1
justoneapi-mcpProduction-ready MCP server exposing JustOneAPI endpoints to AI agents with raw JSON responses.main@2026-06-06
metorial-platformThe engine powering hundreds of thousands of MCP connections 🤖 🔥dev@2026-06-06
claude-code-proxyMonitor and visualize your Claude Code API interactions with Claude Code Proxy. Easily set up a transparent proxy and live dashboard. 🛠️🚀main@2026-06-06
opentabsBrowser automation clicks buttons. OpenTabs calls APIs.main@2026-06-06

More from microsoft

generative-ai-for-beginners21 Lessons, Get Started Building with Generative AI
autogenA programming framework for agentic AI
semantic-kernelIntegrate cutting-edge LLM technology quickly and easily into your apps
onnxruntimeONNX Runtime: cross-platform, high performance ML inferencing and training accelerator

More in MCP Servers

AstrBotAgentic IM Chatbot infrastructure that integrates lots of IM platforms, LLMs, plugins and AI feature, and can be your openclaw alternative. ✨
agentscopeBuild and run agents you can see, understand and trust.
claude-plugins-officialOfficial, Anthropic-managed directory of high quality Claude Code Plugins.
langchain4jLangChain4j is an open-source Java library that simplifies the integration of LLMs into Java applications through a unified API, providing access to popular LLMs and vector databases. It makes impleme