Playwright MCP
by rekhamitta33
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PLAYWRIGHT_MCP_CAPS | No | Comma-separated list of additional capabilities to enable, possible values: vision, pdf, devtools. Corresponds to --caps. | |
| PLAYWRIGHT_MCP_HOST | No | Host to bind server to. Default is localhost. Use 0.0.0.0 to bind to all interfaces. Corresponds to --host. | |
| PLAYWRIGHT_MCP_PORT | No | Port to listen on for SSE transport. Corresponds to --port. | |
| PLAYWRIGHT_MCP_CONFIG | No | Path to the configuration file. Corresponds to --config. | |
| PLAYWRIGHT_MCP_DEVICE | No | Device to emulate, for example: "iPhone 15". Corresponds to --device. | |
| PLAYWRIGHT_MCP_BROWSER | No | Browser or chrome channel to use, possible values: chrome, firefox, webkit, msedge. Corresponds to --browser. | |
| PLAYWRIGHT_MCP_CODEGEN | No | Specify the language to use for code generation, possible values: "typescript", "none". Default is "typescript". Corresponds to --codegen. | |
| PLAYWRIGHT_MCP_SANDBOX | No | Enable the sandbox for all process types that are normally not sandboxed. Corresponds to --sandbox. | |
| PLAYWRIGHT_MCP_SECRETS | No | Path to a file containing secrets in the dotenv format. Corresponds to --secrets. | |
| PLAYWRIGHT_MCP_HEADLESS | No | Run browser in headless mode, headed by default. Corresponds to --headless. | |
| PLAYWRIGHT_MCP_ISOLATED | No | Keep the browser profile in memory, do not save it to disk. Corresponds to --isolated. | |
| PLAYWRIGHT_MCP_EXTENSION | No | Connect to a running browser instance (Edge/Chrome only). Requires the "Playwright MCP Bridge" browser extension to be installed. Corresponds to --extension. | |
| PLAYWRIGHT_MCP_INIT_PAGE | No | Path to TypeScript file to evaluate on Playwright page object. Corresponds to --init-page. | |
| PLAYWRIGHT_MCP_CDP_HEADER | No | CDP headers to send with the connect request, multiple can be specified. Corresponds to --cdp-header. | |
| PLAYWRIGHT_MCP_NO_SANDBOX | No | Disable the sandbox for all process types that are normally sandboxed. Corresponds to --no-sandbox. | |
| PLAYWRIGHT_MCP_OUTPUT_DIR | No | Path to the directory for output files. Corresponds to --output-dir. | |
| PLAYWRIGHT_MCP_SAVE_TRACE | No | Whether to save the Playwright Trace of the session into the output directory. Corresponds to --save-trace. | |
| PLAYWRIGHT_MCP_SAVE_VIDEO | No | Whether to save the video of the session into the output directory. For example "--save-video=800x600". Corresponds to --save-video. | |
| PLAYWRIGHT_MCP_USER_AGENT | No | Specify user agent string. Corresponds to --user-agent. | |
| PLAYWRIGHT_MCP_CDP_TIMEOUT | No | Timeout in milliseconds for connecting to CDP endpoint, defaults to 30000ms. Corresponds to --cdp-timeout. | |
| PLAYWRIGHT_MCP_INIT_SCRIPT | No | 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. Corresponds to --init-script. | |
| PLAYWRIGHT_MCP_OUTPUT_MODE | No | Whether to save snapshots, console messages, network logs to a file or to the standard output. Can be "file" or "stdout". Default is "stdout". Corresponds to --output-mode. | |
| PLAYWRIGHT_MCP_CDP_ENDPOINT | No | CDP endpoint to connect to. Corresponds to --cdp-endpoint. | |
| PLAYWRIGHT_MCP_PROXY_BYPASS | No | Comma-separated domains to bypass proxy, for example ".com,chromium.org,.domain.com". Corresponds to --proxy-bypass. | |
| PLAYWRIGHT_MCP_PROXY_SERVER | No | Specify proxy server, for example "http://myproxy:3128" or "socks5://myproxy:8080". Corresponds to --proxy-server. | |
| PLAYWRIGHT_MCP_SAVE_SESSION | No | Whether to save the Playwright MCP session into the output directory. Corresponds to --save-session. | |
| PLAYWRIGHT_MCP_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. Corresponds to --allowed-hosts. | |
| PLAYWRIGHT_MCP_CONSOLE_LEVEL | No | Level of console messages to return: "error", "warning", "info", "debug". Each level includes the messages of more severe levels. Corresponds to --console-level. | |
| PLAYWRIGHT_MCP_SNAPSHOT_MODE | No | When taking snapshots for responses, specifies the mode to use. Can be "incremental", "full", or "none". Default is incremental. Corresponds to --snapshot-mode. | |
| PLAYWRIGHT_MCP_STORAGE_STATE | No | Path to the storage state file for isolated sessions. Corresponds to --storage-state. | |
| PLAYWRIGHT_MCP_USER_DATA_DIR | No | Path to the user data directory. If not specified, a temporary directory will be created. Corresponds to --user-data-dir. | |
| PLAYWRIGHT_MCP_VIEWPORT_SIZE | No | Specify browser viewport size in pixels, for example "1280x720". Corresponds to --viewport-size. | |
| PLAYWRIGHT_MCP_TIMEOUT_ACTION | No | Specify action timeout in milliseconds, defaults to 5000ms. Corresponds to --timeout-action. | |
| PLAYWRIGHT_MCP_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. Corresponds to --allowed-origins. | |
| PLAYWRIGHT_MCP_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. Corresponds to --blocked-origins. | |
| PLAYWRIGHT_MCP_EXECUTABLE_PATH | No | Path to the browser executable. Corresponds to --executable-path. | |
| PLAYWRIGHT_MCP_IMAGE_RESPONSES | No | Whether to send image responses to the client. Can be "allow" or "omit", Defaults to "allow". Corresponds to --image-responses. | |
| PLAYWRIGHT_MCP_GRANT_PERMISSIONS | No | List of permissions to grant to the browser context, for example "geolocation", "clipboard-read", "clipboard-write". Corresponds to --grant-permissions. | |
| PLAYWRIGHT_MCP_TEST_ID_ATTRIBUTE | No | Specify the attribute to use for test ids, defaults to "data-testid". Corresponds to --test-id-attribute. | |
| PLAYWRIGHT_MCP_TIMEOUT_NAVIGATION | No | Specify navigation timeout in milliseconds, defaults to 60000ms. Corresponds to --timeout-navigation. | |
| PLAYWRIGHT_MCP_IGNORE_HTTPS_ERRORS | No | Ignore https errors. Corresponds to --ignore-https-errors. | |
| PLAYWRIGHT_MCP_BLOCK_SERVICE_WORKERS | No | Block service workers. Corresponds to --block-service-workers. | |
| PLAYWRIGHT_MCP_SHARED_BROWSER_CONTEXT | No | Reuse the same browser context between all connected HTTP clients. Corresponds to --shared-browser-context. | |
| PLAYWRIGHT_MCP_ALLOW_UNRESTRICTED_FILE_ACCESS | No | 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. Corresponds to --allow-unrestricted-file-access. |
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