Skip to main content
Glama
robertn702

Playwright MCP with Electron Support

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
cwdNoPath to your Electron application's working directory.
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"
visionNoRun server that uses screenshots (Aria snapshots are used by default).
browserNoBrowser or chrome channel to use, possible values: chrome, firefox, webkit, msedge, electron.
headlessNoRun browser in headless mode, headed by default.
isolatedNoKeep the browser profile in memory, do not save it to disk.
no-sandboxNoDisable the sandbox for all process types that are normally sandboxed.
output-dirNoPath to the directory for output files.
save-traceNoWhether 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. If used without the allowlist, requests not matching the blocklist are still allowed.
executable-pathNoPath to the browser executable.
image-responsesNoWhether to send image responses to the client. Can be "allow", "omit", or "auto". Defaults to "auto", which sends images if the client can display them.
ignore-https-errorsNoIgnore https errors.
block-service-workersNoBlock service workers.

Capabilities

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

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/robertn702/playwright-mcp-electron'

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