Playwright MCP Quickstart
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Playwright MCP QuickstartGo to saucedemo.com and add the backpack to cart."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Playwright MCP Quickstart Template ๐ค๐ญ
Welcome to the Quickstart Template for running Playwright with the Model Context Protocol (MCP). This repo contains everything you need to let AI agents (like Claude Desktop or Cursor) control a local browser using Playwright's accessibility tree.
As seen on JKC Tutorials.
๐ Prerequisites
Node.js 20 or newer installed on your machine.
An MCP client installed (e.g., Claude Desktop or Cursor).
Related MCP server: Playwright MCP
โ๏ธ Installation
Clone this repository.
Install the dependencies:
npm installInstall the required Playwright browsers:
npm run setup
๐ Connecting to Claude Desktop
To give Claude Desktop control over Playwright, you must update Claude's configuration file.
Open the Claude Desktop configuration file:
Mac:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.json
Copy the contents of the
claude_desktop_config.jsonfile provided in this repository and paste it into Claude's config file.Restart Claude Desktop.
Note: You do not need to run npm run start-mcp manually if you configure Claude Desktop this way; Claude will spin up the server automatically when needed.
๐งช Running Your First AI Test
Once Claude Desktop is restarted, open a new chat in Claude and copy/paste this exact prompt:
"Use Playwright MCP to navigate to https://www.saucedemo.com/. Log in using the username 'standard_user' and password 'secret_sauce'. Add the backpack to the cart, navigate to the cart, and verify that the backpack is present."
Watch as Claude opens a headed browser, reads the accessibility tree, and executes the entire flow without a single line of traditional test code!
Want more tutorials on AI and Test Automation? Subscribe to JKC Tutorials on YouTube.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceEnables browser automation and web page interaction through Playwright's accessibility tree, allowing LLMs to navigate, fill forms, click elements, and extract content without requiring vision models or screenshots.Last updated6,116,075Apache 2.0
- Alicense-qualityCmaintenanceEnables browser automation and web page interaction using Playwright's accessibility tree for fast, deterministic actions without screenshots or vision models.Last updated6,116,075Apache 2.0
- Alicense-qualityDmaintenanceEnables browser automation and web page interaction using Playwright's accessibility tree for fast, structured automation without requiring vision models or screenshots.Last updated6,116,075Apache 2.0
- Alicense-qualityCmaintenanceEnables AI agents to control a web browser using Playwright, supporting navigation, interaction, and data extraction through natural language.Last updatedMIT
Related MCP Connectors
Provides cloud browser automation capabilities using Stagehand and Browserbase, enabling LLMs to iโฆ
AI-powered browser automation โ navigate, click, fill forms, and extract data from any website.
Live browser debugging for AI assistants โ DOM, console, network via MCP.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/jyoti-c/playwright-mcp-quickstart'
If you have feedback or need assistance with the MCP directory API, please join our Discord server