Skip to main content
Glama

Playwright MCP Server

by b3nw

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
urlNoYour browserless WebSocket URL
widthNoBrowser viewport width1920
heightNoBrowser viewport height1080
timeoutNoRequest timeout in milliseconds30000
PLAYWRIGHT_URLNoYour browserless WebSocket URL

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_navigate

Navigate to a specified URL and wait for page load

browser_take_screenshot

Take a screenshot of the current page or a specific element

browser_get_html

Extract HTML content from the page or a specific element

browser_click

Click on an element specified by selector

browser_type

Type text into an input field specified by selector

browser_wait_for

Wait for an element to appear on the page

browser_evaluate

Execute JavaScript code in the browser context

browser_snapshot

Get accessibility tree snapshot for LLM-friendly element identification

browser_file_upload

Upload files to file input elements on the page

browser_refresh

Refresh the current page, similar to pressing F5 or clicking browser refresh

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/b3nw/playwright-mcp-server'

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