Skip to main content
Glama
jyoti-c

Playwright MCP Quickstart

by jyoti-c

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

  1. Node.js 20 or newer installed on your machine.

  2. An MCP client installed (e.g., Claude Desktop or Cursor).

Related MCP server: Playwright MCP

โš™๏ธ Installation

  1. Clone this repository.

  2. Install the dependencies:

    npm install
  3. Install 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.

  1. Open the Claude Desktop configuration file:

    • Mac: ~/Library/Application Support/Claude/claude_desktop_config.json

    • Windows: %APPDATA%\Claude\claude_desktop_config.json

  2. Copy the contents of the claude_desktop_config.json file provided in this repository and paste it into Claude's config file.

  3. 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.

F
license - not found
-
quality - not tested
B
maintenance

Maintenance

โ€“Maintainers
โ€“Response time
โ€“Release cycle
โ€“Releases (12mo)
Commit activity

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

  • A
    license
    -
    quality
    D
    maintenance
    Enables 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 updated
    6,116,075
    Apache 2.0
  • A
    license
    -
    quality
    C
    maintenance
    Enables browser automation and web page interaction using Playwright's accessibility tree for fast, deterministic actions without screenshots or vision models.
    Last updated
    6,116,075
    Apache 2.0

View all related MCP servers

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.

View all MCP Connectors

Latest Blog Posts

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