Post

I figured out how to add the official Playwright browser automation MCP to Claude Code. Run this before you start "claude": claude mcp add playwright npx '@playwright/mcp@latest' Now Claude Code can use a Chrome browser directly! Here's my TIL: til.simonwillison.net/claude-code/...

til.simonwillison.netUsing Playwright MCP with Claude CodeInspired by Armin , I decided to figure out how to use the official microsoft/playwright-mcp Playwright MCP server with Claude Code.

Did you already have Playwright configured on your system otherwise? Last time I set this up I found that the npx command wasn’t working until I configured Playwright and missing dependencies on my system. Maybe it got better? I have a new machine I need to do this on again.

No replies yet.