If you find this add-on useful, please star it on GitHub — stars show appreciation and help maintainers know their work matters.
A DDEV add-on that provides a Playwright MCP server for headless browser automation via the Model Context Protocol. It gives AI agents a real Chromium browser to interact with your Drupal site: navigate pages, fill forms, take screenshots, and verify UI state programmatically.
Part of DDEV AI Workspace — a modular ecosystem of DDEV add-ons for AI-powered Drupal development. Install the full stack with one command:
ddev add-on get trebormc/ddev-ai-workspaceCreated by Robert Menetray · Sponsored by DruScan
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.
The recommended way to install this add-on is through the DDEV AI Workspace, which installs all tools and dependencies with a single command:
ddev add-on get trebormc/ddev-ai-workspace
ddev restart
This add-on is also automatically installed as a dependency when you install ddev-opencode, ddev-claude-code, or ddev-ralph. You rarely need to install it directly.
If you need to install it individually (requires familiarity with the DDEV add-on ecosystem):
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 |
/var/www/html/screenshots (mapped to ./screenshots/ on host).ddev add-on remove ddev-playwright-mcp
ddev restart
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 |
| ddev-ai-ssh | SSH access to the web container for AI agents. | Sibling dependency |
| drupal-ai-agents | 10 agents, 12 rules, 24 skills for Drupal development. Includes Playwright browser testing skill. | Uses this for visual testing |
This project is an independent initiative by Robert Menetray, sponsored by DruScan. It is not affiliated with Anthropic, OpenCode, Beads, Playwright, Microsoft, or DDEV. AI-generated code may contain errors. Always review changes before deploying to production.
Apache-2.0. See LICENSE.
If you find this add-on useful, please star it on GitHub — stars show appreciation and help maintainers know their work matters.