Raised: $0
0% of monthly goal Help us cross the finish line!
Goal: $12,000
Raised: $0 Goal: $12,000
0% of monthly goal Help us cross the finish line!
Sponsor DDEV

tests

ddev-playwright-mcp

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.

Installation

ddev add-on get trebormc/ddev-playwright-mcp
ddev restart

What It Does

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:

Usage

From Other Containers

Connect to the MCP server at:

http://playwright-mcp:8931/mcp

Screenshots

Screenshots are saved to the screenshots/ directory in your project root, accessible from both the container and the host.

Custom Image Version

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

Configuration

Variable Default Description
PLAYWRIGHT_MCP_IMAGE mcr.microsoft.com/playwright/mcp:latest Docker image to use
TZ UTC Timezone

Tips

Part of DDEV AI Workspace

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

Disclaimer

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.

License

Apache-2.0. See LICENSE.