A DDEV add-on that provides a Playwright MCP server for headless browser automation via the Model Context Protocol.
Note: This add-on is typically installed automatically as a dependency of ddev-opencode, ddev-claude-code, or ddev-ralph. You rarely need to install it directly.
ddev add-on get trebormc/ddev-playwright-mcp
ddev restart
This add-on runs a Playwright MCP server as a DDEV service with headless Chromium. It exposes an MCP endpoint at http://playwright-mcp:8931/mcp accessible from other containers in the DDEV network.
Use cases:
Connect to the MCP server at:
http://playwright-mcp:8931/mcp
Screenshots are saved to the screenshots/ directory in your project root, accessible from both the container and the host.
To use a specific Playwright MCP image version:
ddev dotenv set .ddev/.env.playwright-mcp --playwright-mcp-image=mcr.microsoft.com/playwright/mcp:v1.2.0
ddev restart
| Variable | Default | Description |
|---|---|---|
PLAYWRIGHT_MCP_IMAGE |
mcr.microsoft.com/playwright/mcp:latest |
Docker image to use |
TZ |
UTC |
Timezone |
/tmp/playwright-output (mapped to ./screenshots/ on host).This add-on is part of DDEV AI Workspace, a modular ecosystem of DDEV add-ons for AI-powered Drupal development.
| Repository | Description | Relationship |
|---|---|---|
| ddev-ai-workspace | Meta add-on that installs the full AI development stack with one command. | Workspace |
| ddev-opencode | OpenCode AI CLI container for interactive development. | Auto-installs this add-on |
| ddev-claude-code | Claude Code CLI container for interactive development. | Auto-installs this add-on |
| ddev-ralph | Autonomous AI task orchestrator. Delegates work to OpenCode or Claude Code. | Auto-installs this add-on |
| ddev-beads | Beads git-backed task tracker shared by all AI containers. | Sibling dependency |
| ddev-agents-sync | Auto-syncs AI agent repositories into a shared Docker volume. | Sibling dependency |
| drupal-ai-agents | 13 agents, 4 rules, 14 skills for Drupal development. Includes Playwright browser testing skill. | Uses this for visual testing |
This project is not affiliated with Anthropic, OpenCode, Beads, Playwright, Microsoft, or DDEV. AI-generated code may contain errors – always review changes before deploying to production. See menetray.com for more information and DruScan for Drupal auditing tools.
Apache-2.0. See LICENSE.