Atlas / MCP servers / lars-hagen / Playwright Cdp

Playwright CdpBLOCK

mcp/lars-hagen/playwright-cdp

Model Context Protocol server for Playwright with Chrome DevTools Protocol support

Verdict
BLOCK
Grade
D
Trust score
69 /100
Exposed tools
12 7r · 4w · 1d
Transport
stdio
License
NOASSERTION
Stars
52
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

[](https://github.com/lars-hagen/mcp-playwright-cdp/actions/workflows/node.js.yml) [](https://github.com/lars-hagen/mcp-playwright-cdp/blob/main/LICENSE) [](https://github.com/lars-hagen/mcp-playwright-cdp/blob/main/SECURITY.md)

A Model Context Protocol server that provides browser automation capabilities using Playwright with Chrome DevTools Protocol (CDP) support. This server enables LLMs to interact with web pages, take screenshots, and execute JavaScript in a real browser environment, with the ability to connect to existing Chrome instances via CDP.

Maintenance status

This project is in maintenance mode. Focused fixes for security, compatibility, and documentation are welcome. It is not currently published to the npm registry. The latest source release is the v0.2.10 Git tag from February 2025.

This is a fork of executeautomation/mcp-playwright v0.2.7, enhanced with CDP support for connecting to running Chrome instances.

Key Features

  • 🔗 Connect to existing Chrome instances via CDP
  • 🌐 Full browser automation capabilities
  • 📸 Screenshot capture of entire pages or specific elements
  • 🖱️ Comprehensive web interactions (navigation, clicking, form filling)
  • 📊 Console log monitoring
  • 🔧 JavaScript execution in browser context
  • 🌍 HTTP API testing support

Installation

You can install the package using either npm or Smithery:

Installing via Smithery

To install MCP Playwright CDP for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @lars-hagen/mcp-playwright-cdp --client claude

Manual Installation

Clone the repository, then build it with

Read from source at commit 79968090945eOBSERVED · 2026-10-08
Advertisement
02

Connect

Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.

claude-code
claude mcp add mcp-playwright-cdp -- npx -y @lars-hagen/[email protected]
claude-desktop
{
  "mcpServers": {
    "mcp-playwright-cdp": {
      "command": "npx",
      "args": [
        "-y",
        "@lars-hagen/[email protected]"
      ]
    }
  }
}
03

Exposed tools (12)

7 read · 4 write · 1 destructive. Blast radius: 1 tool can delete or overwrite — an agent that can be talked into calling a tool can be talked into calling this one.

ToolRiskDescription
playwright_clickreadClick an element on the page
playwright_deletedestructivePerform an HTTP DELETE request
playwright_evaluatewriteExecute JavaScript in the browser console
playwright_fillreadfill out an input field
playwright_getreadPerform an HTTP GET request
playwright_hoverreadHover an element on the page
playwright_navigatereadNavigate to a URL
playwright_patchwritePerform an HTTP PATCH request
playwright_postwritePerform an HTTP POST request
playwright_putwritePerform an HTTP PUT request
playwright_screenshotreadTake a screenshot of the current page or a specific element
playwright_selectreadSelect an element on the page with Select tag
04

Trust audit

BLOCKgrade D · trust 69/100 Do not install this without reading the findings. The audit found something that could harm you or your machine.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codeFAIL
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfaceWARN
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
declared (1 observation(s))
Network
none-observed
Shell
declared (1 observation(s))
Dependencies
not all pinned
Secrets in source
none-found

Findings (18)

HIGHCode injection · code.eval_exec · CWE-78, CWE-94, CWE-95
src/toolsHandler.ts:286
const result = eval(script);
Why it matters. evaluates text as code
Fix. remove; use a parser or a dispatch table
MEDIUMFilesystem / path · mcp.destructive_tools · CWE-22, CWE-59
playwright_delete
Why it matters. 1 tool(s) can delete or overwrite
Fix. prefer a read-only mode or scoped tokens; the page states the blast radius
LOWInventory / provenance · inv.binary · CWE-1104
docs/docs/.DS_Store
.DS_Store
Why it matters. a compiled or binary member cannot be reviewed from source
Fix. ship source, or explain the binary in the README
LOWInventory / provenance · inv.binary · CWE-1104
docs/docs/local-setup/.DS_Store
.DS_Store
Why it matters. a compiled or binary member cannot be reviewed from source
Fix. ship source, or explain the binary in the README
LOWInventory / provenance · inv.binary · CWE-1104
docs/docs/playwright-api/.DS_Store
.DS_Store
Why it matters. a compiled or binary member cannot be reviewed from source
Fix. ship source, or explain the binary in the README
LOWInventory / provenance · inv.binary · CWE-1104
docs/static/.DS_Store
.DS_Store
Why it matters. a compiled or binary member cannot be reviewed from source
Fix. ship source, or explain the binary in the README
LOWInventory / provenance · inv.binary · CWE-1104
docs/static/img/.DS_Store
.DS_Store
Why it matters. a compiled or binary member cannot be reviewed from source
Fix. ship source, or explain the binary in the README
LOWInventory / provenance · inv.hidden_file · CWE-1104
docs/docs/.DS_Store
.DS_Store
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWInventory / provenance · inv.hidden_file · CWE-1104
docs/docs/local-setup/.DS_Store
.DS_Store
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWInventory / provenance · inv.hidden_file · CWE-1104
docs/docs/playwright-api/.DS_Store
.DS_Store
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWInventory / provenance · inv.hidden_file · CWE-1104
docs/static/.DS_Store
.DS_Store
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWInventory / provenance · inv.hidden_file · CWE-1104
docs/static/.nojekyll
.nojekyll
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
docs/package.json
@docusaurus/core, @docusaurus/preset-classic, @mdx-js/react, clsx, gh-pages, prism-react-renderer, react, react-dom
Why it matters. 12 dependency range(s) float
Fix. pin exact versions or ship a lockfile
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
package.json
@types/node, typescript
Why it matters. 2 dependency range(s) float
Fix. pin exact versions or ship a lockfile
INFOInventory / provenance · inv.oversize · CWE-1104
docs/docs/playwright-api/img/api-response.png
docs/docs/playwright-api/img/api-response.png
Why it matters. 1144445 bytes not read
INFOInventory / provenance · inv.oversize · CWE-1104
docs/docs/playwright-api/img/playwright-api.png
docs/docs/playwright-api/img/playwright-api.png
Why it matters. 1516139 bytes not read
INFOInventory / provenance · inv.oversize · CWE-1104
docs/docs/playwright-web/img/mcp-result.png
docs/docs/playwright-web/img/mcp-result.png
Why it matters. 1472061 bytes not read
INFOInventory / provenance · inv.oversize · CWE-1104
image/playwright_claude.png
image/playwright_claude.png
Why it matters. 1750322 bytes not read

Gates applied: no_behavioural_pass.

Audited 2026-10-08 · audit v0.4.1 · source sha 79968090945efull audit observations/trust-audit/mcp-server/lars-hagen__playwright-cdp.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-10-0879968090945eBLOCKD69first audit
06

Questions

What is the Playwright Cdp MCP server?

Model Context Protocol server for Playwright with Chrome DevTools Protocol support

What tools does Playwright Cdp expose?

12 in total: 7 read-only, 4 that write, and 1 that can delete or overwrite (playwright_delete). Every one is listed on this page with its risk.

Is Playwright Cdp safe to connect to an agent?

No — not without reading the findings first. The audit graded it D (69/100) and found 1 critical or high issue in the source. Each one is listed on this page with the file and line it is on. Separately from the audit: 1 of its tools can destroy data, so scope the token you give it to what you actually need.

What credentials does Playwright Cdp need?

No credential environment variables were found in its source, so it appears to need none.

How does Playwright Cdp run?

It speaks stdio, so it runs as a local process your client starts. It is published on npm as @lars-hagen/mcp-playwright-cdp at 0.2.10.

How current is this page?

The grade is for one exact copy of the source (79968090945e), read on 2026-10-08. The repository is watched and re-audited when it changes.

Advertisement