Playwright MCP
by rbaray6969
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: vision, pdf, devtools. | |
| PLAYWRIGHT_MCP_HOST | No | Host to bind server to. Default is localhost. Use 0.0.0.0 to bind to all interfaces. | |
| PLAYWRIGHT_MCP_PORT | No | Port to listen on for SSE transport. | |
| PLAYWRIGHT_MCP_CONFIG | No | Path to the configuration file. | |
| PLAYWRIGHT_MCP_DEVICE | No | Device to emulate, for example "iPhone 15". | |
| PLAYWRIGHT_MCP_MOBILE | No | Emulate a generic mobile device. Cannot be combined with --device. | |
| PLAYWRIGHT_MCP_WEBMCP | No | Do not collect or expose the tools that a page registers through the WebMCP API. | |
| PLAYWRIGHT_MCP_BROWSER | No | Browser or chrome channel to use: chrome, firefox, webkit, msedge. | |
| PLAYWRIGHT_MCP_CODEGEN | No | Language to use for code generation: typescript, python, java, csharp, none. Default is typescript. | |
| PLAYWRIGHT_MCP_SANDBOX | No | Enable the sandbox for all process types that are normally not sandboxed. | |
| PLAYWRIGHT_MCP_ENDPOINT | No | Bound browser endpoint to connect to. | |
| PLAYWRIGHT_MCP_HEADLESS | No | Run browser in headless mode; headed by default. | |
| PLAYWRIGHT_MCP_ISOLATED | No | Keep the browser profile in memory; do not save it to disk. | |
| PLAYWRIGHT_MCP_EXTENSION | No | Connect to a running browser instance (Edge/Chrome only). Requires the Playwright Extension. | |
| PLAYWRIGHT_MCP_INIT_PAGE | No | Path to TypeScript file to evaluate on Playwright page object. | |
| PLAYWRIGHT_MCP_BACKGROUND | No | Do not activate controlled tabs or focus the browser window when using --extension. | |
| PLAYWRIGHT_MCP_FILE_PATHS | No | How file paths are rendered in tool results: relative or absolute. Default is relative. | |
| PLAYWRIGHT_MCP_NO_SANDBOX | No | Disable the sandbox for all process types that are normally sandboxed. | |
| PLAYWRIGHT_MCP_OUTPUT_DIR | No | Path to the directory for automatically named output files. | |
| PLAYWRIGHT_MCP_USER_AGENT | No | Specify user agent string. | |
| PLAYWRIGHT_MCP_CDP_HEADERS | No | CDP headers to send with the connect request. | |
| PLAYWRIGHT_MCP_CDP_TIMEOUT | No | Timeout in milliseconds for connecting to CDP endpoint, defaults to 30000ms. | |
| PLAYWRIGHT_MCP_INIT_SCRIPT | No | Path to JavaScript file to add as an initialization script, evaluated in every page before any of the page's scripts. | |
| PLAYWRIGHT_MCP_CDP_ENDPOINT | No | CDP endpoint to connect to. | |
| PLAYWRIGHT_MCP_IDLE_TIMEOUT | No | Close the browser after this many milliseconds without a completed tool call. Defaults to one hour for headless browsers, never for headed ones; 0 disables. | |
| PLAYWRIGHT_MCP_IGNORE_ROOTS | No | Do not ask the client for its workspace roots; use the current working directory as the workspace root instead. | |
| PLAYWRIGHT_MCP_NO_TAB_GROUP | No | Do not group controlled tabs when using --extension. | |
| PLAYWRIGHT_MCP_PROXY_BYPASS | No | Comma-separated domains to bypass proxy, for example ".com,chromium.org,.domain.com". | |
| PLAYWRIGHT_MCP_PROXY_SERVER | No | Specify proxy server, for example "http://myproxy:3128" or "socks5://myproxy:8080". | |
| PLAYWRIGHT_MCP_SAVE_SESSION | No | Whether to save the Playwright MCP session into the output directory. | |
| PLAYWRIGHT_MCP_SECRETS_FILE | No | Path to a file containing secrets in the dotenv format. | |
| PLAYWRIGHT_MCP_ALLOWED_HOSTS | No | Comma-separated list of hosts this server is allowed to serve from. Defaults to localhost, loopback IPs and the host passed via --host. | |
| PLAYWRIGHT_MCP_CONSOLE_LEVEL | No | Level of console messages to return: error, warning, info, debug. | |
| PLAYWRIGHT_MCP_SNAPSHOT_MODE | No | Snapshot mode to use: full or none. Default is full. | |
| PLAYWRIGHT_MCP_STORAGE_STATE | No | Path to the storage state file for isolated sessions. | |
| PLAYWRIGHT_MCP_USER_DATA_DIR | No | Path to the user data directory. If not specified, a temporary directory will be created. | |
| PLAYWRIGHT_MCP_VIEWPORT_SIZE | No | Specify browser viewport size in pixels, for example "1280x720". | |
| PLAYWRIGHT_MCP_SNAPSHOT_BOXES | No | Include each element's bounding box as [box=x,y,width,height] in snapshots. | |
| PLAYWRIGHT_MCP_TIMEOUT_ACTION | No | Action timeout in milliseconds, defaults to 5000ms. | |
| PLAYWRIGHT_MCP_TIMEOUT_SETTLE | No | How long to wait after each action for triggered work to settle, in milliseconds, defaults to 500ms. | |
| PLAYWRIGHT_MCP_ALLOWED_ORIGINS | No | Semicolon-separated list of trusted origins to allow the browser to request. Default is to allow all. | |
| PLAYWRIGHT_MCP_BLOCKED_ORIGINS | No | Semicolon-separated list of origins to block the browser from requesting. | |
| PLAYWRIGHT_MCP_EXECUTABLE_PATH | No | Path to the browser executable. | |
| PLAYWRIGHT_MCP_IMAGE_RESPONSES | No | Whether to send image responses to the client: allow, omit, only. Defaults to allow. | |
| PLAYWRIGHT_MCP_OUTPUT_MAX_SIZE | No | Threshold for evicting old output files, in bytes. | |
| PLAYWRIGHT_MCP_PROFILE_DIR_NAME | No | Name of the profile directory in the user data dir to connect to with --extension, for example "Profile 1". | |
| PLAYWRIGHT_MCP_GRANT_PERMISSIONS | No | List of permissions to grant to the browser context, e.g. geolocation, clipboard-read, clipboard-write. | |
| PLAYWRIGHT_MCP_REDACT_URL_PARAMS | No | Comma-separated list of URL query and fragment parameter names whose values are replaced with <redacted> in tool responses. | |
| PLAYWRIGHT_MCP_TEST_ID_ATTRIBUTE | No | Attribute to use for test ids, defaults to "data-testid". | |
| PLAYWRIGHT_MCP_TIMEOUT_NAVIGATION | No | Navigation timeout in milliseconds, defaults to 60000ms. | |
| PLAYWRIGHT_MCP_IGNORE_HTTPS_ERRORS | No | Ignore HTTPS errors. | |
| PLAYWRIGHT_MCP_BLOCK_SERVICE_WORKERS | No | Block service workers. | |
| PLAYWRIGHT_MCP_SHARED_BROWSER_CONTEXT | No | Reuse the same browser context between all connected HTTP clients. | |
| PLAYWRIGHT_MCP_ALLOW_UNRESTRICTED_FILE_ACCESS | No | Allow access to files outside of the workspace roots and to file:// URLs. |
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
ActivityActive
ResponsivenessNo recent community issues