---
title: "Playwright MCP vs Browser Harness"
description: "Playwright MCP vs Browser Harness on 100 public browser tasks: same score (60.4 vs 60.0), and Browser Harness uses half the median input tokens per task. Setup, browser and cost side by side."
canonical: "https://browser-use.com/playwright-mcp"
last_updated: "2026-11-05"
---

# Playwright MCP vs Browser Harness

## Playwright MCP vs Browser Harness.

Same score on 100 public browser tasks, using half the median input tokens per task. And Browser Harness works in your real Chrome, logged in as you.

[Try it in the cloud](https://cloud.browser-use.com/v4?utm_source=browser-use&utm_medium=playwright-mcp-page)

Connect your agent

Comparison | [Browser Harness](https://browser-use.com/browser-harness)

[QA my website end to end. Test signup, checkout, mobile layout, and console and network errors. Return screenshots and a prioritized fix list.](https://browser-use.com/showcase/videos/qa-site.mp4)

PromptQA my website end to end. Test signup, checkout, mobile layout, and console and network errors. Return screenshots and a prioritized fix list.

## Side by side

Browser Harness Playwright MCP

Score on 100 browser tasks (paired 95% interval -5.7 to +6.6 points): Browser Harness: Statistical tie; Playwright MCP: Statistical tie

Input tokens per task (median): Browser Harness: 2.1M; Playwright MCP: 4.4M

Agent cost per task (median): Browser Harness: $0.042; Playwright MCP: $0.066

Browser: Browser Harness: Your Chrome, with your logins; Playwright MCP: Its own browser profile. Your Chrome needs the Playwright Extension

Setup: Browser Harness: Paste one prompt into your agent; Playwright MCP: Add an MCP server to your agent's config

Missing tool: Browser Harness: The agent writes it and keeps it; Playwright MCP: Fixed tool set, more behind --caps flags

Many browsers at once: Browser Harness: Browser Use cloud, $0.06 per browser-hour; Playwright MCP: Point --cdp-endpoint at a remote browser

License: Browser Harness: MIT; Playwright MCP: Apache-2.0

Pick Playwright MCP for a clean, isolated browser in tests, or if your team already runs Playwright.

Source: [Matched eval: method and per-task scores](https://browser-use.com/benchmarks/coding-agent-browser-tools.json), [BU Bench V2.1 tasks](https://github.com/browser-use/benchmark), [Playwright MCP README](https://github.com/microsoft/playwright-mcp), checked Oct 2026.

## Playwright MCP or Chrome DevTools MCP for a coding agent?

As of Nov 2, 2026: Playwright MCP to drive and test your app in Chrome, Firefox or WebKit; Chrome DevTools MCP for performance traces and source-mapped console errors. Both read console and network, and both ship a CLI; Microsoft suggests Playwright's for coding agents: fewer tokens.

Tool Runs in Use it when Setup

Playwright MCP by Microsoft: Runs in: Its own profile; your tabs with its extension. Use it when: Driving and testing your app in Chrome, Firefox or WebKit; opt-in tools generate test locators and assertions. Setup: `claude mcp add playwright npx @playwright/mcp@latest`

Playwright CLI by Microsoft: Runs in: Its own browser; your Chrome with attach `--extension` or `--cdp`. Use it when: The same from the shell. Microsoft's pick for coding agents: tool schemas and page trees stay out of the model's context. Setup: `npm install -g @playwright/cli@latest && playwright-cli install --skills`

Chrome DevTools MCP by Google: Runs in: Its own Chrome; yours with `--autoConnect`. Use it when: Debugging: performance traces and insights, console errors with source-mapped stacks. Chrome only. Ships a CLI too. Setup: `claude mcp add chrome-devtools --scope user npx chrome-devtools-mcp@latest`

Browser Harness by Browser Use (us): Runs in: Your Chrome, with your logins. Use it when: Sites you are signed in to, from any agent, with raw CDP when a click fails. Setup: `claude mcp add browser-harness -- uvx --from "browser-harness[mcp]" browser-harness-mcp`

Source: [Playwright MCP README](https://github.com/microsoft/playwright-mcp), [Playwright CLI README](https://github.com/microsoft/playwright-cli), [Playwright docs: CLI for coding agents](https://playwright.dev/docs/getting-started-cli), [Chrome DevTools MCP README](https://github.com/ChromeDevTools/chrome-devtools-mcp), [Chrome DevTools MCP client setup](https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/main/docs/client-configurations.md), [Chrome DevTools MCP: connect to your Chrome](https://github.com/ChromeDevTools/chrome-devtools-mcp/blob/main/docs/advanced-usage.md#connecting-to-a-running-chrome-instance), [browser-harness-mcp setup](https://github.com/browser-use/browser-harness/blob/main/docs/MCP.md), checked Nov 2, 2026.

## Questions

Should a coding agent use Playwright CLI or Playwright MCP?

Microsoft suggests the CLI with its skills for coding agents: fewer tokens. MCP fits long-running loops that keep browser state, like exploratory or self-healing tests. Sources: [Playwright docs: CLI for coding agents](https://playwright.dev/docs/getting-started-cli).

Is Browser Harness better than Playwright MCP?

On success, neither wins. On 100 public BU Bench V2.1 tasks with the same agent (Codex, GPT-6 Luna), the same cloud browser and the same judge, the paired score difference has a 95% interval of -5.7 to +6.6 points, which includes zero. The difference is cost: Playwright MCP used 2.1x the input tokens per task (median 4.4M vs 2.1M), so the agent's bill was $0.066 vs $0.042 per task. One run per task; per-task scores are public.

Can I use both?

Yes, they do not conflict. Use Playwright MCP for isolated test runs and Browser Harness for work on sites you are logged in to.

Does Browser Harness have an MCP server?

Yes, browser-harness-mcp, for any MCP client. You usually do not need it: the setup prompt installs Browser Harness as a skill, with no config to edit.

What does it cost?

Nothing. Browser Harness is open source under MIT, and using your own Chrome is free. Cloud browsers are $0.06 per browser-hour if you want them.

You will never use  
the browser again.

[Try it in the cloud](https://cloud.browser-use.com/v4?utm_source=browser-use&utm_medium=playwright-mcp-page)

Connect your agent

---

BROWSER USE

- Browser Use Agents: give Browser Use a task and receive completed work. API V4 is current for new integrations.
- Browser Infrastructure: connect your agent or automation to managed browsers through SDK, REST, or CDP. Starts at $0.06/browser-hour.
- Developer tools: Open Source, Browser Harness, SDK, and MCP support the two products above.

[Developer Index](https://browser-use.com/index.md)
[Product Map](https://browser-use.com/llms.txt)
[Full Product Context](https://browser-use.com/llms-full.txt)
[Pricing](https://browser-use.com/pricing.md)
[Cloud Docs](https://docs.browser-use.com/cloud/quickstart)
[Open Source Docs](https://docs.browser-use.com/open-source/introduction)
