Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PORTNoPort the server listens on8000
HEADLESSNoSet to false to show the browser window (local dev only)true
MCP_API_KEYYesSecret key for x-api-key header authentication. The server will return 500 on all requests if this is not set.
SSL_KEYFILENoPath to TLS private key file. Only used when ENABLE_HTTPS=true./app/certs/server.key
ENABLE_HTTPSNoSet to true to serve over HTTPS using a self-signed certificate (baked into the Docker image).false
MAX_SESSIONSNoMaximum number of concurrent browser sessions. When the limit is reached, the oldest idle session is evicted to make room.10
SSL_CERTFILENoPath to TLS certificate file. Only used when ENABLE_HTTPS=true./app/certs/server.crt
UVICORN_WORKERSNoNumber of uvicorn workers. Keep at 1 (Playwright state is in-process). Scale horizontally with container replicas.1
DOCKER_HOST_PORTNoHost port used by scripts/start-docker.ps1 for the Docker port mapping.3010
ACTION_TIMEOUT_MSNoMaximum time (ms) to wait for element actions (click, fill, etc.).10000
OTEL_SERVICE_NAMENoService name shown in trace backends (Splunk APM, Jaeger, etc.).playwright-mcp
NAVIGATION_TIMEOUT_MSNoMaximum time (ms) to wait for page navigation (e.g. page.goto). Increase for slow sites.30000
SESSION_IDLE_TIMEOUT_SNoSeconds a session can sit idle before automatic eviction (default 10 minutes).600
OTEL_RESOURCE_ATTRIBUTESNoExtra resource attributes as key=value,key=value (e.g. deployment.environment=dev).
OTEL_EXPORTER_OTLP_ENDPOINTNoOTLP/HTTP endpoint for the OTel Collector (e.g. http://localhost:4318). When set, traces are exported via OTLP.

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

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/tomscoppock/playwright_mcp'

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