TIL: Using Playwright MCP with Claude Code

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

Developers can now give Claude Code a visible Chrome browser to automate navigation, form-filling and sign-ins with one command, no extra setup.

Read this as

Simon Willison explains how to connect a tool called Playwright, which controls a web browser, to Claude Code, Anthropic's command-line coding assistant. You type one command and Claude can open Chrome, click through pages, fill in forms and take screenshots. The browser stays visible, so a person can sign into websites and then let Claude act on their behalf.

A short how-to, not a product announcement: Willison shows a one-line command that gives Claude Code browser automation via Microsoft's official Playwright MCP server. The practical gain is delegating web tasks, navigating, form-filling, screenshots, to a coding agent. Cost is minimal and setup is trivial; the visible browser means staff can handle logins, which also defines the security boundary.

The integration runs 'claude mcp add playwright npx @playwright/mcp@latest', which registers Microsoft's Playwright MCP server and persists the config in ~/.claude.json scoped to the current directory. Claude Code then exposes browser actions, navigation, form submission, custom JavaScript execution, screenshots, as MCP tools feeding results back to the model. Article omits any benchmark figures; the visible browser session enabling manual sign-in is the notable operational detail.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

Playwright MCP Claude Code Chrome ~/.claude.json example.com

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading