Playwright Recorder▌

by ashish-bansal
Streamline browser automation with Playwright MCP. Capture interactions, screenshots, and generate test scripts for effi
Playwright MCP enables browser automation and interaction recording by capturing DOM interactions, screenshots, and page navigation events to generate reproducible test scripts through a visual, context-driven workflow.
Both formats append explainx.ai attribution and the canonical URL for this MCP server listing.
best for
- / Developers writing browser automation tests
- / QA engineers creating end-to-end test suites
- / Teams debugging web application workflows
capabilities
- / Initialize browsers with specific URLs
- / Capture full-page screenshots
- / Extract complete DOM structure and context
- / Execute custom JavaScript code in browser
- / Record user interactions into test scripts
what it does
Provides AI assistants with real-time browser access to generate accurate Playwright test scripts by capturing DOM interactions, screenshots, and page context.
about
Playwright Recorder is a community-built MCP server published by ashish-bansal that provides AI assistants with tools and capabilities via the Model Context Protocol. Streamline browser automation with Playwright MCP. Capture interactions, screenshots, and generate test scripts for effi It is categorized under browser automation, developer tools. This server exposes 5 tools that AI clients can invoke during conversations and coding sessions.
how to install
You can install Playwright Recorder in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.
license
NOASSERTION
Playwright Recorder is released under the NOASSERTION license.
readme
How to Use playwright-mcp?
Introduction
Ever tried using Cursor or Claude to write Playwright tests? Yeah, it's kind of a mess.
Why? Because your AI assistant has no clue what's on your web page. It's like trying to describe a painting to someone who's blindfolded. The result?
- Flaky tests → The AI is guessing selectors, and it gets them wrong.
- Broken scripts → You spend more time fixing tests than writing them.
- Debugging nightmares → The AI can't "see" what's happening, so you end up doing all the heavy lifting.
Wouldn't it be nice if your AI could actually understand your web page instead of just making educated guesses?
Enter playwright-mcp !
playwright-mcp gives your AI assistant superpowers by making the browser fully visible to it. Instead of working in the dark, your AI assistant now has real-time access to the page DOM, elements, and interactions.
How playwright-mcp Works (AKA How We Fix This Mess)
Once installed, playwright-mcp spins up a Playwright-controlled browser and gives your AI assistant full access to it. This unlocks:
- Recording interactions → Click, type, scroll—let playwright-mcp turn your actions into fully functional Playwright test cases.
- Taking screenshots → Capture elements or full pages so your AI gets actual visual context (no more guessing).
- Extracting the DOM → Grab the entire HTML structure so the AI can generate rock-solid selectors.
- Executing JavaScript → Run custom JS inside the browser for debugging, automation, or just for fun.
Why You'll Love playwright-mcp
🚀 AI-generated tests that actually work → No more flaky selectors, broken tests, or guesswork.
⏳ Massive time savings → Write and debug Playwright tests 5x faster.
🛠️ Fewer headaches → Your AI assistant gets live page context, so it can generate real test cases.
🔌 Works out of the box → Plug it into Cursor, Claude, WindSurf, or whatever you use—it just works.
Give Your AI the Context It Deserves
Tired of fixing AI-generated tests? Stop debugging AI's bad guesses—start writing flawless Playwright tests. Use the guide below to install playwright-mcp and let your AI assistant actually help you for once.
Installation: Get Up and Running in No Time
Prerequisites (a.k.a. What You Need Before You Start)
Before you install playwright-mcp, make sure you have:
✅ Node.js installed on your system (because, well… it's an npm package)
✅ Playwright and its Chromium browser installed
✅ An IDE that supports MCP, like Cursor
✅ A brain that's ready to automate Playwright tests like a pro
Setting Up playwright-mcp (It's Easy, I Promise)
Connect It to Your IDE (Cursor Setup)
If you're using Cursor, follow these steps to connect playwright-mcp like a boss:
-
Open Cursor IDE
-
Navigate to Settings (⚙️)
-
Select Cursor Settings → Go to the MCP tab
-
Click "Add new MCP server"
-
Fill in the following details:

- Name →
playwright-mcp - Command →
npx -y playwright-mcp
- Name →
-
Click "Add", and boom—you're connected! 🚀
Note: If clicking on "Add new MCP server", opens a file(.cursor/mcp.json), Paste the following code and save:
{
"mcpServers": {
"playwright-mcp": {
"command": "npx",
"args": [
"-y",
"playwright-mcp"
]
}
}
}
Now Cursor actually understands your web pages. No more random test suggestions based on zero context! Head to the Claude tutorial or Cursor tutorial to understand it in details.
Connect It to Claude desktop
Wait… Does It Work with Other AI Assistants? Yes! While playwright-mcp is a match made in heaven for IDEs, you can use it with Claude desktop to write tests as well.
-
Install
playwright-mcp(The Easy Part)- First things first, fire up your terminal and run:
npm install -g playwright-mcp
-
Hook It Up to Claude Desktop
- Find the Configuration File
- On windows
%APPDATA%\Claude\claude_desktop_config.json
- On macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
- Update the config file
{ "mcpServers": { "playwright": { "command": "npx", "args": ["-y", "playwright-mcp"] } } } -
Restart Claude Desktop (Because It's a New Day)
- Close and reopen Claude Desktop to apply the changes.
-
Verify That It's Working
- Once everything is set up, let's test if Claude can actually talk to Playwright now.
- Open Claude and ask: "List all available MCP tools."
- If
playwright-mcpis installed correctly, it should list tools like:get-contextget-full-domget-screenshotexecute-codeinit-browservalidate-selectors
- Ask Claude to init browser and a browser should open up after your approval!
Now that the Calude has access to the web pages. You can ask it write highly contextual tests! Head to the Claude tutorial or Cursor tutorial to understand it in details.
FAQ
- What is the Playwright Recorder MCP server?
- Playwright Recorder is a Model Context Protocol (MCP) server profile on explainx.ai. MCP lets AI hosts (e.g. Claude Desktop, Cursor) call tools and resources through a standard interface; this page summarizes categories, install hints, and community ratings.
- How do MCP servers relate to agent skills?
- Skills are reusable instruction packages (often SKILL.md); MCP servers expose live capabilities. Teams frequently combine both—skills for workflows, MCP for APIs and data. See explainx.ai/skills and explainx.ai/mcp-servers for parallel directories.
- How are reviews shown for Playwright Recorder?
- This profile displays 64 aggregated ratings (sample rows for discoverability plus signed-in user reviews). Average score is about 4.8 out of 5—verify behavior in your own environment before production use.
Discussion
Product Hunt–style comments (not star reviews)- No comments yet — start the thread.
Ratings
4.8★★★★★64 reviews- ★★★★★Dhruvi Jain· Dec 20, 2024
I recommend Playwright Recorder for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.
- ★★★★★Liam Diallo· Dec 20, 2024
Playwright Recorder has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.
- ★★★★★Yuki Dixit· Dec 16, 2024
Playwright Recorder is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.
- ★★★★★Yusuf Mehta· Dec 12, 2024
Playwright Recorder is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.
- ★★★★★Layla Srinivasan· Dec 8, 2024
We evaluated Playwright Recorder against two servers with overlapping tools; this profile had the clearer scope statement.
- ★★★★★Liam Okafor· Dec 4, 2024
Useful MCP listing: Playwright Recorder is the kind of server we cite when onboarding engineers to host + tool permissions.
- ★★★★★Layla White· Nov 27, 2024
Playwright Recorder is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.
- ★★★★★Hiroshi Haddad· Nov 23, 2024
Playwright Recorder is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.
- ★★★★★Ava Okafor· Nov 15, 2024
According to our notes, Playwright Recorder benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.
- ★★★★★Oshnikdeep· Nov 11, 2024
Strong directory entry: Playwright Recorder surfaces stars and publisher context so we could sanity-check maintenance before adopting.
showing 1-10 of 64