MCP server

Playwright MCP

Set up Playwright MCP in Claude Code to inspect rendered pages, verify browser flows and capture evidence from a known browser context.

browsertestingmcp
View original source ↗

When to choose it

Use Playwright MCP when the answer depends on what a local preview or staging page actually renders, not just what its source code says.

Choose it if: You need to navigate a known page, look at its accessible controls, or capture a screenshot from a clean browser context.

Look elsewhere if: You need repeatable CI coverage or are only reading source files. Keep assertions in Playwright Test; a one-off MCP browser session does not replace them.

What the source describes

  • The Claude Code marketplace wrapper starts Microsoft’s @playwright/mcp package locally with npx. It is not a hosted browser or the Playwright Skill.
  • Navigation and accessibility snapshots let you compare the page URL, heading and visible controls. Screenshots capture visual evidence separately.
  • Microsoft documents persistent, isolated and extension browser modes. The marketplace wrapper sets none of those options explicitly.

Requirements

  • Claude Code with the official marketplace package available; Node.js and npm/npx reachable from the same launch environment. The reviewed Microsoft package source (0.0.86) declares Node.js 20 or newer.
  • A usable browser executable and an intended browser context; the default wrapper does not choose headless mode, isolation or an existing Chrome tab.

Install for this repository only

  1. Check the Claude launch environment. Check Node.js and npm in the same shell or app environment that starts Claude Code. Microsoft’s reviewed package source declares Node.js 20+; a GUI launcher may not inherit your interactive shell’s PATH.
    Shell • runtime check
    node --version
    npm --version
  2. Check what the marketplace package launches. The local-scope install below enables the wrapper for you in this repository. It starts an npm package locally and passes no browser flags. The source configuration is shown for inspection, not to paste over project settings.
    Configuration example
    {
      "playwright": {
        "command": "npx",
        "args": [
          "@playwright/mcp@latest"
        ]
      }
    }
  3. Use a browser context you own. For a first pass, use a local preview you control and a clean browser context. An isolated context, extension-backed tab or headless session requires explicit configuration; do not assume the marketplace install selected it.
  4. Verify connection before navigation. Open /mcp in Claude Code, confirm that the plugin-provided server is connected, then inspect a known local URL. Check the resulting page URL and refreshed accessibility snapshot before asking for interactions.

Run the installation command in your shell after reviewing the source. Local scope enables the package for you in this repository. It does not enable it for every collaborator.

Shell • local install scope
claude plugin install playwright@claude-plugins-official --scope local
Installation and loading troubleshooting

How to use it

Inspect the installed plugin server, connection and available tools; this is not an instruction to register a duplicate manual Playwright server.

Claude Code command
/mcp

An original natural-language task for the connected server. The author tool inventory includes navigation, accessibility snapshots and screenshots, not a /playwright slash command.

Browser inspection request
Use the installed Playwright MCP browser tools to inspect the page I specify and report its visible controls without submitting forms or changing account data.

An original inspection request that does not pretend the default wrapper already enables isolation or a particular browser mode. This request example is written by ClaudeStack; it is not a transcript of a tested session.

Request example
Use the installed Playwright MCP tools in an isolated browser context I explicitly approve to inspect this project’s local preview. Capture the current accessibility snapshot and a screenshot at desktop and 390px width, then report navigation, visible focus and layout issues. Do not reuse another task’s tabs, submit forms, upload files, change accounts or install a browser. If the existing wrapper is not configured for that context, report the gap before acting.

Read-only inspection is a good first task. A screen capture is evidence of what rendered; keep repeatable assertions in your regular test suite.

Source checked November 30, 2026. ClaudeStack did not launch the MCP server, resolve the npm package at runtime or use a signed-in browser.

What to expect

The reviewed source describes these observations. ClaudeStack has not loaded or run this extension.

  • A connected MCP server exposes tools; a successful first page check also returns the intended URL, a known heading and the expected controls in the current snapshot.
  • For a responsive check, screenshots should show the same page at each requested width. Attach a concrete observation, such as whether the main action remains visible, rather than calling the test passed just because an image was returned.

Self-check: Start with a page you control and already recognize. Match the returned URL, heading and one expected control. If the browser attached to another profile, or the server cannot verify the requested context, stop there.

Troubleshooting

The plugin installs but the MCP server does not start

Check /mcp and the plugin activation/error state. The configured executable is npx, so Node/npm availability, package retrieval and process-launch errors are distinct from successful plugin installation. Follow the actual error rather than running an unrelated installer.

A browser is missing or headed startup fails

Inspect the requested browser/channel and available executable, and whether the environment has a display. Microsoft documents --headless and executable/browser configuration, but the wrapper passes none. A browser download or changing sandbox options is a separate deliberate action, not proof of compatibility.

The profile is locked or another task’s session appears

The author says one persistent profile can be used by only one browser instance. Coordinate ownership; select a distinct --user-data-dir or an intended --isolated context. Do not kill another task’s browser or silently reuse its tabs.

The server version changes between sessions

The wrapper uses @playwright/mcp@latest rather than a fixed release. The observed 0.0.83 metadata is dated evidence, not an installed-version promise. Inspect the resolved version and corresponding author configuration before interpreting changed behavior.

An origin allowlist appears to permit unexpected navigation

Microsoft explicitly says allowed/blocked origins are not security boundaries and do not cover redirects. Use an intentionally bounded context and workflow, and verify actual navigation rather than treating these flags as an authorization policy.

A screenshot or stale element reference leads to the wrong action

The author says to use browser_snapshot for actions; a screenshot is observational output. Obtain a fresh accessibility snapshot after page changes and verify the target control before any intended interaction.

An isolated browser asks you to sign in again after it is closed

Closing the isolated browser ends that session and loses its in-memory state. If authenticated reuse is intended, check that the actual server configuration loads an authorized state file with --storage-state or contextOptions. The wrapper’s bare @latest launch does not do this. Confirm the account on the reopened page before continuing.

A saved state file loads, but the page still shows a sign-in screen

Check whether the saved login has expired and whether it belongs to the intended site/account. Playwright’s authentication guide treats sessionStorage separately from saved storageState; an application relying on it may need explicit setup. Do not assume a successfully read JSON file establishes a live login. Confirm the rendered signed-in state before treating the test as authenticated.

Disable or remove it

  • Toggle the installed server off in /mcp or disable/uninstall the playwright plugin at its enabled scope; follow the session’s activation instruction. Plugin servers are removed through the package, not a duplicate manual-server registration.
  • Disabling the wrapper does not undo submitted forms or other website changes, erase a persistent browser profile, or uninstall cached npm/browser packages. Manage those separately after checking ownership.

Limitations & considerations

  • The wrapper uses @latest, so a source revision or package version in this review is not a guarantee of what a future run resolves.
  • A screenshot is not an assertion, and a successful connection does not mean a page loaded. Browser actions can submit forms or change external data.
  • Isolated state is temporary unless an approved saved state is loaded. Saved browser state can contain credentials; do not commit or share it. Origin allow/block flags are not an authorization boundary.

Source & review record

Our description is based on public documentation and manifests available on 2026-11-30. Installation formats were checked against Claude Code and the relevant installer documentation. No extension code was executed: this is a source review, not a runtime compatibility test or security audit.

Usage guide sources

Upstream revision checked for this guide: 0fbfda5a91f4adc311daca25acc99132f40f0b6e. Command names and behavior in this guide are documentation and registration-source findings, not runtime verification.

More mcp servers

Browse this type
MCP server

Context7

Look up version-specific library documentation through Upstash’s hosted MCP service.

UpstashThird-party
MCP server

GitHub MCP

GitHub repository tools exposed through a marketplace integration.

GitHubThird-party

Each listing records its own source-review date. Listings are documentation reviews, not runtime tests or security audits. Our editorial method