Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PLAYWRIGHT_MCP_CAPSNoComma-separated list of additional capabilities to enable: vision, pdf, devtools.
PLAYWRIGHT_MCP_HOSTNoHost to bind server to. Default is localhost. Use 0.0.0.0 to bind to all interfaces.
PLAYWRIGHT_MCP_PORTNoPort to listen on for SSE transport.
PLAYWRIGHT_MCP_CONFIGNoPath to the configuration file.
PLAYWRIGHT_MCP_DEVICENoDevice to emulate, for example "iPhone 15".
PLAYWRIGHT_MCP_MOBILENoEmulate a generic mobile device. Cannot be combined with --device.
PLAYWRIGHT_MCP_WEBMCPNoDo not collect or expose the tools that a page registers through the WebMCP API.
PLAYWRIGHT_MCP_BROWSERNoBrowser or chrome channel to use: chrome, firefox, webkit, msedge.
PLAYWRIGHT_MCP_CODEGENNoLanguage to use for code generation: typescript, python, java, csharp, none. Default is typescript.
PLAYWRIGHT_MCP_SANDBOXNoEnable the sandbox for all process types that are normally not sandboxed.
PLAYWRIGHT_MCP_ENDPOINTNoBound browser endpoint to connect to.
PLAYWRIGHT_MCP_HEADLESSNoRun browser in headless mode; headed by default.
PLAYWRIGHT_MCP_ISOLATEDNoKeep the browser profile in memory; do not save it to disk.
PLAYWRIGHT_MCP_EXTENSIONNoConnect to a running browser instance (Edge/Chrome only). Requires the Playwright Extension.
PLAYWRIGHT_MCP_INIT_PAGENoPath to TypeScript file to evaluate on Playwright page object.
PLAYWRIGHT_MCP_BACKGROUNDNoDo not activate controlled tabs or focus the browser window when using --extension.
PLAYWRIGHT_MCP_FILE_PATHSNoHow file paths are rendered in tool results: relative or absolute. Default is relative.
PLAYWRIGHT_MCP_NO_SANDBOXNoDisable the sandbox for all process types that are normally sandboxed.
PLAYWRIGHT_MCP_OUTPUT_DIRNoPath to the directory for automatically named output files.
PLAYWRIGHT_MCP_USER_AGENTNoSpecify user agent string.
PLAYWRIGHT_MCP_CDP_HEADERSNoCDP headers to send with the connect request.
PLAYWRIGHT_MCP_CDP_TIMEOUTNoTimeout in milliseconds for connecting to CDP endpoint, defaults to 30000ms.
PLAYWRIGHT_MCP_INIT_SCRIPTNoPath to JavaScript file to add as an initialization script, evaluated in every page before any of the page's scripts.
PLAYWRIGHT_MCP_CDP_ENDPOINTNoCDP endpoint to connect to.
PLAYWRIGHT_MCP_IDLE_TIMEOUTNoClose 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_ROOTSNoDo not ask the client for its workspace roots; use the current working directory as the workspace root instead.
PLAYWRIGHT_MCP_NO_TAB_GROUPNoDo not group controlled tabs when using --extension.
PLAYWRIGHT_MCP_PROXY_BYPASSNoComma-separated domains to bypass proxy, for example ".com,chromium.org,.domain.com".
PLAYWRIGHT_MCP_PROXY_SERVERNoSpecify proxy server, for example "http://myproxy:3128" or "socks5://myproxy:8080".
PLAYWRIGHT_MCP_SAVE_SESSIONNoWhether to save the Playwright MCP session into the output directory.
PLAYWRIGHT_MCP_SECRETS_FILENoPath to a file containing secrets in the dotenv format.
PLAYWRIGHT_MCP_ALLOWED_HOSTSNoComma-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_LEVELNoLevel of console messages to return: error, warning, info, debug.
PLAYWRIGHT_MCP_SNAPSHOT_MODENoSnapshot mode to use: full or none. Default is full.
PLAYWRIGHT_MCP_STORAGE_STATENoPath to the storage state file for isolated sessions.
PLAYWRIGHT_MCP_USER_DATA_DIRNoPath to the user data directory. If not specified, a temporary directory will be created.
PLAYWRIGHT_MCP_VIEWPORT_SIZENoSpecify browser viewport size in pixels, for example "1280x720".
PLAYWRIGHT_MCP_SNAPSHOT_BOXESNoInclude each element's bounding box as [box=x,y,width,height] in snapshots.
PLAYWRIGHT_MCP_TIMEOUT_ACTIONNoAction timeout in milliseconds, defaults to 5000ms.
PLAYWRIGHT_MCP_TIMEOUT_SETTLENoHow long to wait after each action for triggered work to settle, in milliseconds, defaults to 500ms.
PLAYWRIGHT_MCP_ALLOWED_ORIGINSNoSemicolon-separated list of trusted origins to allow the browser to request. Default is to allow all.
PLAYWRIGHT_MCP_BLOCKED_ORIGINSNoSemicolon-separated list of origins to block the browser from requesting.
PLAYWRIGHT_MCP_EXECUTABLE_PATHNoPath to the browser executable.
PLAYWRIGHT_MCP_IMAGE_RESPONSESNoWhether to send image responses to the client: allow, omit, only. Defaults to allow.
PLAYWRIGHT_MCP_OUTPUT_MAX_SIZENoThreshold for evicting old output files, in bytes.
PLAYWRIGHT_MCP_PROFILE_DIR_NAMENoName of the profile directory in the user data dir to connect to with --extension, for example "Profile 1".
PLAYWRIGHT_MCP_GRANT_PERMISSIONSNoList of permissions to grant to the browser context, e.g. geolocation, clipboard-read, clipboard-write.
PLAYWRIGHT_MCP_REDACT_URL_PARAMSNoComma-separated list of URL query and fragment parameter names whose values are replaced with <redacted> in tool responses.
PLAYWRIGHT_MCP_TEST_ID_ATTRIBUTENoAttribute to use for test ids, defaults to "data-testid".
PLAYWRIGHT_MCP_TIMEOUT_NAVIGATIONNoNavigation timeout in milliseconds, defaults to 60000ms.
PLAYWRIGHT_MCP_IGNORE_HTTPS_ERRORSNoIgnore HTTPS errors.
PLAYWRIGHT_MCP_BLOCK_SERVICE_WORKERSNoBlock service workers.
PLAYWRIGHT_MCP_SHARED_BROWSER_CONTEXTNoReuse the same browser context between all connected HTTP clients.
PLAYWRIGHT_MCP_ALLOW_UNRESTRICTED_FILE_ACCESSNoAllow 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

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
browser_closeB

Close the page

browser_resizeB

Resize the browser window

browser_console_messagesC

Returns all console messages

browser_handle_dialogC

Handle a dialog

browser_emulate_mediaA

Emulate CSS media features for the page, for example switch between the light and dark color scheme. Omitted parameters are left unchanged; null clears an override.

browser_evaluateC

Evaluate JavaScript expression on page or element

browser_file_uploadB

Upload one or multiple files

browser_dropA

Drop files or MIME-typed data onto an element, as if dragged from outside the page. At least one of "paths" or "data" must be provided.

browser_findA

Search the accessibility snapshot of the current page for text or a regular expression. Returns matching snapshot nodes with a few lines of surrounding context (like search snippets), each shown under its path from the root of the tree, which is cheaper than capturing the whole snapshot when you only need to locate an element and its ref.

browser_fill_formB

Fill multiple form fields

browser_press_keyB

Press a key on the keyboard

browser_typeB

Type text into editable element

browser_navigateC

Navigate to a URL

browser_navigate_backA

Go back to the previous page in the history

browser_network_requestsA

Returns a numbered list of network requests since loading the page. Use browser_network_request with the number to get full details.

browser_network_requestA

Returns full details (headers and body) of a single network request, or a single part if part is set. Use the number from browser_network_requests.

browser_run_code_unsafeA

Run a Playwright code snippet. Unsafe: executes arbitrary JavaScript in the Playwright server process and is RCE-equivalent.

browser_take_screenshotA

Take a screenshot of the current page. Use browser_snapshot for actions by default. With the vision capability enabled, use screenshot coordinates with the coordinate-based mouse tools for elements not exposed in the accessibility snapshot.

browser_snapshotA

Capture accessibility snapshot of the current page, this is better than screenshot

browser_clickB

Perform click on a web page

browser_dragA

Perform drag and drop between two elements

browser_hoverA

Hover over element on page

browser_select_optionB

Select an option in a dropdown

browser_tabsC

List, create, close, or select a browser tab.

browser_wait_forA

Wait for text to appear or disappear or a specified time to pass. When both text and textGone are provided, waits for the first one to happen

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

B3.2/5.0

Scored across 25 tools

Disambiguation4/5

Most tools map cleanly to a distinct browser action, and the descriptions actively deconflict the risky pairs (browser_snapshot vs browser_take_screenshot, browser_find vs browser_snapshot, browser_evaluate vs browser_run_code_unsafe). The main residual confusion is browser_network_requests vs browser_network_request (plural/singular) and the type/fill_form/press_key family, which an agent can mix up despite the descriptions.

Naming Consistency4/5

Every tool shares the browser_ prefix and snake_case, giving a very predictable surface. A few names are bare verbs without an object (browser_close, browser_wait_for, browser_find) and browser_run_code_unsafe is the only one with a suffix qualifier, but the convention is still immediately readable.

Tool Count4/5

25 tools is at the heavy end, but a full browser-automation surface legitimately needs navigation, input, inspection, network/console, dialog, file, tab and emulation buckets. Only a few (screenshot vs snapshot, network_requests vs network_request) feel like they could be consolidated.

Completeness4/5

Coverage is broad: navigation, clicking/typing/dragging, forms, uploads, dialogs, tabs, console, network, media emulation and waiting are all present. Minor gaps remain — no forward history (only browser_navigate_back), no cookie/storage-state management, and no download handling — but these are workable via browser_evaluate or external steps.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues