agentduck
SkillsMCP serversArtifactsCategoriesGuides
SubmitSign in
SkillsMCP serversArtifactsCategoriesGuidesSearchSubmit a listing
agentduck

A directory of agent skills, MCP servers and Claude artifacts. Listings are made by their publishers.

Browse

  • Skills
  • MCP servers
  • Artifacts
  • Guides
  • Newest

Categories

  • Coding
  • Documents
  • Data
  • Design
  • Research

Agents

  • Claude Code
  • Claude app
  • Codex
  • Gemini CLI
  • OpenClaw

Publish

  • Submit a listing
  • How we check
  • Your shelf
  • Privacy
Directory/MCP servers/Playwright

Playwright

Drive a real browser: click, type, read pages and take screenshots.

Microsoft 40.2KUpdated 16 days agoApache-2.0No reviews yet
MCP serverBrowserOfficial
InstallView source

How to install Playwright

Pick your agent.

How to install Playwright in Claude Code

  1. 1

    Run in your terminal:

    terminal
    claude mcp add playwright -- npx @playwright/mcp@latest

How to install Playwright in Claude app

  1. 1

    Open Settings, then Developer, then Edit Config, and add:

    claude_desktop_config.json
    {
      "mcpServers": {
        "playwright": {
          "command": "npx",
          "args": [
            "@playwright/mcp@latest"
          ]
        }
      }
    }

How to install Playwright in Codex

  1. 1

    Add to your Codex config:

    ~/.codex/config.toml
    [mcp_servers.playwright]
    command = "npx"
    args = ["@playwright/mcp@latest"]

How to install Playwright in Gemini CLI

  1. 1

    Add to your settings:

    ~/.gemini/settings.json
    {
      "mcpServers": {
        "playwright": {
          "command": "npx",
          "args": [
            "@playwright/mcp@latest"
          ]
        }
      }
    }

How to install Playwright in Cursor

  1. 1

    Add to your project:

    .cursor/mcp.json
    {
      "mcpServers": {
        "playwright": {
          "command": "npx",
          "args": [
            "@playwright/mcp@latest"
          ]
        }
      }
    }

How to install Playwright in VS Code

  1. 1

    Add to your project:

    .vscode/mcp.json
    {
      "servers": {
        "playwright": {
          "command": "npx",
          "args": [
            "@playwright/mcp@latest"
          ]
        }
      }
    }

What Playwright can do

From reading the source. Check it yourself before you trust it.

  • Ships scripts that run on your machineShow whereHide
    • cli.js
    • index.js
    • playwright.config.ts

Reviews

  • roll.js
  • update-readme.js
  • utils/docker/build.sh
  • Runs shell commandsShow whereHide
    • roll.js:3 const { execSync } = require('child_process');
    • roll.js:34 execSync('npm install', { cwd: __dirname, stdio: 'inherit' });
    • roll.js:62 execSync('npm run lint', { cwd: __dirname, stdio: 'inherit' });
    • roll.js:73 version = execSync('npm info playwright@next version', { encoding: 'utf-8' }).trim();
    • update-readme.js:21 const { execSync } = require('child_process');
    • update-readme.js:179 execSync('node cli.js --help > help.txt');
  • Talks to the internetShow whereHide
    • roll.js:45 const response = await fetch('https://nodejs.org/dist/index.json');
    • utils/docker/publish_docker.sh:59 curl -sLO "https://github.com/oras-project/oras/releases/download/v${version}/oras_${version}_linux_${arch}.tar.gz"
  • Reads environment variablesShow whereHide
    • playwright.config.ts:24 forbidOnly: !!process.env.CI,
    • playwright.config.ts:25 workers: process.env.CI ? 2 : undefined,
    • playwright.config.ts:29 ...process.env.MCP_IN_DOCKER ? [{
    • update-readme.js:219 if (process.env.PRINT_ENV) {
  • Writes, moves or deletes filesShow whereHide
    • roll.js:13 fs.writeFileSync(dst, content);
    • roll.js:30 fs.writeFileSync(file, JSON.stringify(json, null, 2) + '\n');
    • roll.js:53 fs.writeFileSync(file, content.replace(line, `ARG NODE_VERSION=${newVersion}`));
    • update-readme.js:181 fs.unlinkSync('help.txt');
    • update-readme.js:266 await fs.promises.writeFile(readmePath, withConfig, 'utf-8');
  • No eval or encoded code
  • No hide-from-user wording
  • Read 25 of 44 files 8 days ago. This is a plain read of the source, not a promise that it is safe. How we check

    About Playwright

    Your agent controls a browser using the page's accessibility tree, so it can test apps and fill in web forms.

    Good for

    • test my web app in a browser
    • fill in a web form
    • scrape a page that needs clicks

    Works with

    As listed by the publisher.

    Claude CodeClaude appCodexGemini CLICursorVS Code
    Type
    MCP server
    Runs
    On your machine
    License
    Apache-2.0
    Listed
    8 days ago
    Tags
    browser, testing

    In our guides

    • Codex MCP servers: how to add one
    • How to add and use MCP servers in Claude Code
    • How to add and use MCP servers in Cursor

    No reviews yet. Be the first to say how it went.

    Used it?

    Sign in to rate it and help the next person.

    Sign in to review

    More in Browser

    View all →

    Chrome DevTools

    Chrome DevTools

    MCP server

    Let your agent debug pages with Chrome's own dev tools.

    59.4KLook closer