Skip to main content
Glama

Playwright MCP

by furugen

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
CAPSNoComma-separated list of capabilities to enable, possible values: tabs, pdf, history, wait, files, install. Default is all.
HOSTNoHost to bind server to. Default is localhost. Use 0.0.0.0 to bind to all interfaces.
PORTNoPort to listen on for SSE transport.
CONFIGNoPath to the configuration file.
DEVICENoDevice to emulate, for example: "iPhone 15".
VISIONNoSet to 'true' to run server that uses screenshots (Aria snapshots are used by default).
BROWSERNoBrowser or chrome channel to use, possible values: chrome, firefox, webkit, msedge.
HEADLESSNoSet to 'true' to run browser in headless mode. Headed by default.
ISOLATEDNoKeep the browser profile in memory, do not save it to disk.
NO_SANDBOXNoSet to 'true' to disable the sandbox for all process types that are normally sandboxed.
OUTPUT_DIRNoPath to the directory for output files.
SAVE_TRACENoSet to 'true' to save the Playwright Trace of the session into the output directory.
USER_AGENTNoSpecify user agent string.
CDP_ENDPOINTNoCDP endpoint to connect to.
PROXY_BYPASSNoComma-separated domains to bypass proxy, for example ".com,chromium.org,.domain.com".
PROXY_SERVERNoSpecify proxy server, for example "http://myproxy:3128" or "socks5://myproxy:8080".
BROWSER_AGENTNoUse browser agent (experimental).
STORAGE_STATENoPath to the storage state file for isolated sessions.
USER_DATA_DIRNoPath to the user data directory. If not specified, a temporary directory will be created.
VIEWPORT_SIZENoSpecify browser viewport size in pixels, for example "1280, 720".
ALLOWED_ORIGINSNoSemicolon-separated list of origins to allow the browser to request. Default is to allow all.
BLOCKED_ORIGINSNoSemicolon-separated list of origins to block the browser from requesting. Blocklist is evaluated before allowlist.
EXECUTABLE_PATHNoPath to the browser executable.
IMAGE_RESPONSESNoWhether to send image responses to the client. Can be "allow", "omit", or "auto". Defaults to "auto".
IGNORE_HTTPS_ERRORSNoSet to 'true' to ignore https errors.
BLOCK_SERVICE_WORKERSNoSet to 'true' to block service workers.

Schema

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Tools

Functions exposed to the LLM to take actions

NameDescription
browser_close

Close the page

browser_resize

Resize the browser window

browser_console_messages

Returns all console messages

browser_handle_dialog

Handle a dialog

browser_file_upload

Upload one or multiple files

browser_install

Install the browser specified in the config. Call this if you get an error about the browser not being installed.

browser_press_key

Press a key on the keyboard

browser_navigate

Navigate to a URL

browser_navigate_back

Go back to the previous page

browser_navigate_forward

Go forward to the next page

browser_network_requests

Returns all network requests since loading the page

browser_pdf_save

Save page as PDF

browser_take_screenshot

Take a screenshot of the current page. You can't perform actions based on the screenshot, use browser_snapshot for actions.

browser_snapshot

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

browser_click

Perform click on a web page

browser_drag

Perform drag and drop between two elements

browser_hover

Hover over element on page

browser_type

Type text into editable element

browser_select_option

Select an option in a dropdown

browser_tab_list

List browser tabs

browser_tab_new

Open a new tab

browser_tab_select

Select a tab by index

browser_tab_close

Close a tab

browser_generate_playwright_test

Generate a Playwright test for given scenario

browser_wait_for

Wait for text to appear or disappear or a specified time to pass

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/furugen/playwright-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server