Skip to main content

Home › All stories

Playwright MCP vs Chrome DevTools MCP: which browser server should an agent use?

The short answerUse Playwright MCP when an agent automates tasks on websites, needs Firefox or WebKit, or should start each session from a saved login. Use Chrome DevTools MCP when the agent debugs or measures pages in Chrome, with traces, audits and memory snapshots. Both read the page as an accessibility tree.

By · Published · Updated · 4 min read

Playwright MCP and Chrome DevTools MCP are the two open-source Model Context Protocol servers most often used to give an AI agent a browser. They overlap on basic automation and differ on what they are for: Playwright MCP is built for driving web tasks, Chrome DevTools MCP for inspecting and measuring pages in Chrome. For each one on its own, see what Playwright MCP is and what Chrome DevTools MCP is.

How do Playwright MCP and Chrome DevTools MCP compare?

They compare as follows, from each project's own documentation read on 2026-11-26.

Table: Playwright MCP compared with Chrome DevTools MCP

Playwright MCPChrome DevTools MCP
npm package@playwright/mcpchrome-devtools-mcp
Version on npm, 2026-11-260.0.861.14.0
LicenceApache-2.0Apache-2.0
Built onPlaywrightPuppeteer and Chrome DevTools
Browsers--browser accepts chrome, firefox, webkit, msedgeOfficially Chrome and Chrome for Testing only
Node.js20 or newer^20.19.0, ^22.12.0 or 23 and later
Page view for the modelAccessibility snapshot with element referencesAccessibility-tree snapshot with element uids
Clicking by coordinatesOpt-in, --caps=visionOpt-in, --experimentalVision
Default profilePersistent, per workspacePersistent, one shared directory
Throwaway profile--isolated--isolated
Load a saved login into a clean session--storage-state <file>Not in its configuration guide
Cookie and storage toolsOpt-in, --caps=storageNot listed in its tool reference
Request interceptionOpt-in, --caps=network (routes)Opt-in network mocks
Network allow and block lists--allowed-origins, --blocked-origins; "*does not* serve as a security boundary"--allowedUrlPattern (Chrome 149+), --blockedUrlPattern
Performance traces and insightsTracing with --caps=devtoolsBuilt in, with performance insights and Lighthouse audits
Memory heap snapshotsNot listed14 tools, with --memoryDebugging
Usage statisticsNone described in the READMEOn by default; --no-usage-statistics
Reduced tool setPlaywright CLI suggested for coding agents--slim, three tools
Says it is a security boundaryNo: "not a security boundary"No: it "exposes content of the browser instance to the MCP clients"

Sources: Playwright MCP README, Chrome DevTools MCP README, its configuration guide and tool reference, and the npm registry entries for @playwright/mcp and chrome-devtools-mcp, all read 2026-11-26. "Not listed" means we did not find it in that project's documentation on that date.

When should an agent use Playwright MCP?

An agent should use Playwright MCP when its job is to complete tasks on websites.

  • Task automation across engines. It can run Chromium, Firefox or WebKit, which matters when a site behaves differently per engine.
  • Clean sessions with a login. --isolated --storage-state <file> starts every session empty except for one saved login, which is the pattern in resetting browser state between sessions.
  • State inspection. With --caps=storage, the agent can list and set cookies and local storage directly.
  • Generated test code. Its --codegen option chooses the language for generated code: TypeScript by default, or Python, Java or C#.

When should an agent use Chrome DevTools MCP?

An agent should use Chrome DevTools MCP when its job is to find out why a page is slow, broken or leaking memory in Chrome.

  • Performance work. performance_start_trace, performance_stop_trace and performance_analyze_insight record a trace and return findings; lighthouse_audit runs an audit.
  • Debugging. Console messages come with source-mapped stack traces, and network requests can be listed and read one by one.
  • Memory. Heap snapshots can be taken and compared once memory debugging is enabled.
  • Narrow network scope. --allowedUrlPattern restricts the browser to listed URL patterns on Chrome 149 and later, and rejects patterns it cannot enforce on redirects or subresources.

Its design principles include "Token-Optimized: Return semantic summaries" and "Small, Deterministic Blocks" (design principles, read 2026-11-26), which suits an agent that reports findings rather than clicking through long flows.

What do both need before an agent uses them?

Both need the same surroundings, because neither one isolates the agent by itself.

  1. A disposable environment. Run the server and browser in a container or virtual machine that holds nothing else of value.
  2. A throwaway profile. Start with --isolated unless the task truly needs a long-lived login; see a persistent profile for a browser agent.
  3. A pinned version. Replace @latest with a version number so tools do not change between runs.
  4. Network rules outside the browser. Send traffic through a proxy with an allow-list and block internal addresses, as in restricting a browser agent's network access.
  5. No code execution for agents that read untrusted pages. Keep Playwright MCP's browser_run_code_unsafe away from them, and consider Chrome DevTools MCP's --javascriptEvaluation=false, which its guide says "is not a JavaScript sandbox" but does remove the evaluation tools.
  6. Telemetry off where it exists. For Chrome DevTools MCP, --no-usage-statistics and --no-performance-crux.

What we read for this article

Frequently asked

Can I run Playwright MCP and Chrome DevTools MCP together?

Yes, as two servers in one MCP client. Give each its own browser profile, because both keep a persistent profile by default and a profile can only be used by one browser at a time.

Which one uses fewer tokens?

Both default to a text snapshot of the accessibility tree rather than screenshots. Chrome DevTools MCP has a --slim mode with three tools, and Playwright MCP's README suggests its CLI for coding agents that need to save context.

Which one can click by screen coordinates?

Both, and in both it is opt-in. Playwright MCP adds coordinate mouse tools with --caps=vision; Chrome DevTools MCP adds click_at with --experimentalVision.

Does either one send usage data?

Chrome DevTools MCP collects usage statistics by default and can be opted out with --no-usage-statistics. The Playwright MCP README describes no usage statistics.