🎬 Creator guideenUnverified
Let Claude drive your browser with Playwright MCP
shared by joych51
Connect Microsoft’s Playwright MCP to Claude Code, Claude Desktop, VS Code or Cursor, then let it open pages, click through them and pull out what you need.
Full guide
Playwright MCP is an MCP server from Microsoft. Instead of screenshots, the AI reads the page’s accessibility snapshot, so it opens pages, clicks and types quickly and precisely.
What you need
- Node.js 20 or newer
- An app that supports MCP: Claude Code, Claude Desktop, VS Code, Cursor and others
1. Add it to Claude Code
One line in your terminal.
Codebash
claude mcp add playwright npx @playwright/mcp@latest
2. Claude Desktop, Cursor and other apps
Add this to the app’s MCP config. For Claude Desktop, follow the MCP install guide to open the config file. In Cursor, go to Settings → MCP → Add new MCP Server and add npx @playwright/mcp@latest as a command.
Codebash
{
"mcpServers": {
"playwright": {
"command": "npx",
"args": [
"@playwright/mcp@latest"
]
}
}
}In VS Code, one line adds it.
Codebash
code --add-mcp '{"name":"playwright","command":"npx","args":["@playwright/mcp@latest"]}'Restart the app after changing its config, or the new tools won’t show up.
3. Try it
Codeprompt
Open https://news.ycombinator.com and put the titles and links of the top 5 posts right now in a table.
Codeprompt
Go to {website} and walk through the sign-up flow yourself. Tell me, step by step, anything that was confusing or got stuck.More
@Playwright MCP
Review commands before running them. Promptu never runs code on your machine.

