To audit a website with Claude, connect the Playwright MCP server, point Claude at a URL, and ask it to open the page and report what it finds. Playwright is a browser that Claude can drive. MCP is the standard that lets Claude use it. Together they turn "read this page" from a copy and paste chore into something Claude does on its own, in a real browser, in about three minutes.
If you downloaded my original version of this guide in 2025, this page replaces it. The method still works. The setup does not. The old guide walked you through hand-editing a hidden JSON config file, which was the step most people quit on. That is no longer the shortest path, and the server everyone used back then has been superseded by the official one from Microsoft. Everything below is current.
What changed since the original guide
Three things, and they all make this easier:
- There is now an official Playwright MCP server. Early guides, mine included, pointed at community-maintained servers. Microsoft now publishes
@playwright/mcp, and it is the one to use. - Claude Code installs it with one command. No config file, no JSON, no restarting anything.
- One-click extensions exist. Claude Desktop added an Extensions directory, so many MCP servers now install like a browser extension instead of a text file you have to find in a hidden folder.
The practical consequence: the part of the original guide that took twenty minutes and caused most of the failures now takes about thirty seconds. If you tried the old version and hit a wall, that was not you. It was the setup.
What you need before you start
- Node.js 20 or newer. This is the one genuine prerequisite. If you do not have it, install it from nodejs.org first. You never have to write any JavaScript, Claude just needs it to run the browser.
- Claude Code or Claude Desktop. Either works. Pick the path below that matches what you have.
You do not need to install a browser. Playwright downloads one the first time it runs.
Setup, path one: Claude Code (fastest)
One command. Paste it into your terminal:
claude mcp add playwright npx @playwright/mcp@latest
That is the whole setup. Start Claude Code and Playwright is available.
Setup, path two: Claude Desktop
Open Claude Desktop, go to Settings, then Developer, then Edit Config. Paste this in, exactly as written:
{
"mcpServers": {
"playwright": {
"command": "npx",
"args": ["@playwright/mcp@latest"]
}
}
}
Save the file and restart Claude Desktop. If Claude Desktop already lists other MCP servers in that file, add the "playwright" block alongside them rather than replacing what is there.
Before you go further, check that it worked. Ask Claude:
Open https://demo.playwright.dev/todomvc and tell me what you see.
If Claude describes the page, you are connected. If nothing happens, the usual culprit is Node: confirm you are on version 20 or newer and restart the app.