Playwright MCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| --caps | No | Comma-separated list of additional capabilities to enable. Possible values: vision, pdf. | |
| --host | No | Host to bind server to. Default is localhost. Use 0.0.0.0 to bind to all interfaces. | localhost |
| --port | No | Port to listen on for SSE transport. | |
| --config | No | Path to the configuration file. | |
| --device | No | Device to emulate, for example: 'iPhone 15'. | |
| --browser | No | Browser or Chrome channel to use. Possible values: chrome, firefox, webkit, msedge. | |
| --secrets | No | Path to a file containing secrets in the dotenv format. | |
| --stealth | No | Enable stealth mode to help bypass common bot detection mechanisms. | false |
| --headless | No | Run browser in headless mode. Headed by default. | false |
| --isolated | No | Keep the browser profile in memory, do not save it to disk. | false |
| --extension | No | Connect to a running browser instance (Edge/Chrome only). Requires the Playwright MCP Bridge browser extension to be installed. | false |
| --init-page | No | Path to a TypeScript file to evaluate on the Playwright page object. Can be specified multiple times. | |
| --cdp-header | No | CDP headers to send with the connect request. Multiple can be specified. | |
| --no-sandbox | No | Disable the sandbox for all process types that are normally sandboxed. | false |
| --output-dir | No | Path to the directory for output files. | |
| --save-trace | No | Whether to save the Playwright Trace of the session into the output directory. | false |
| --save-video | No | Whether to save the video of the session into the output directory. For example '800x600'. | |
| --user-agent | No | Specify user agent string. | |
| --init-script | No | Path to a 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. | |
| --cdp-endpoint | No | CDP endpoint to connect to. | |
| --proxy-bypass | No | Comma-separated domains to bypass proxy, for example '.com,chromium.org,.domain.com'. | |
| --proxy-server | No | Specify proxy server, for example 'http://myproxy:3128' or 'socks5://myproxy:8080'. | |
| --save-session | No | Whether to save the Playwright MCP session into the output directory. | false |
| --allowed-hosts | No | 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. | |
| --console-level | No | Level of console messages to return: 'error', 'warning', 'info', or 'debug'. Each level includes the messages of more severe levels. | info |
| --snapshot-mode | No | When taking snapshots for responses, specifies the mode to use. Can be 'incremental', 'full', or 'none'. | incremental |
| --storage-state | No | Path to the storage state file for isolated sessions. | |
| --user-data-dir | No | Path to the user data directory. If not specified, a temporary directory will be created. | |
| --viewport-size | No | Specify browser viewport size in pixels, for example '1280x720'. | |
| --timeout-action | No | Specify action timeout in milliseconds. Defaults to 5000ms. | 5000 |
| --allowed-origins | No | 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. | allow all |
| --blocked-origins | No | 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. | |
| --executable-path | No | Path to the browser executable. | |
| --image-responses | No | Whether to send image responses to the client. Can be 'allow' or 'omit'. | allow |
| --grant-permissions | No | List of permissions to grant to the browser context, for example 'geolocation', 'clipboard-read', 'clipboard-write'. | |
| --test-id-attribute | No | Specify the attribute to use for test ids. | data-testid |
| --timeout-navigation | No | Specify navigation timeout in milliseconds. Defaults to 60000ms. | 60000 |
| --ignore-https-errors | No | Ignore HTTPS errors. | false |
| --block-service-workers | No | Block service workers. | false |
| --shared-browser-context | No | Reuse the same browser context between all connected HTTP clients. | false |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Server capabilities have not been inspected yet.
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
No tools | |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
This server cannot be deployed
Maintenance
ActivityInactive
ResponsivenessNo recent community issues