LH

lars-hagen/mcp-playwright-cdp

Browser automation

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

52 stars 10 forks 품질 69 트렌드 8NOASSERTION

lars-hagen/mcp-playwright-cdp는 MCP 서버 후보로 https://github.com/lars-hagen/mcp-playwright-cdp.에서 수입됩니다

개요

lars-hagen/mcp-playwright-cdp는 MCP 서버 후보로 https://github.com/lars-hagen/mcp-playwright-cdp.에서 수입됩니다

개요(AI 번역)

Chrome DevTools Protocol (CDP) 지원과 Playwright를 사용하여 브라우저 자동화 기능을 제공하는 모델 Context Protocol 서버. 이 서버는 웹 페이지와 상호 작용하기 위해 LLM을 활성화하고 스크린 샷을 찍고 실제 브라우저 환경에서 JavaScript를 실행하며 CDP를 통해 기존 크롬 인스턴스에 연결할 수 있습니다.

정비 상태

이 프로젝트는 유지 보수 모드입니다. 보안, 호환성 및 문서에 대한 집중된 수정은 환영합니다. 현재 npm 레지스트리에 게시되지 않습니다. 최신 소스 릴리스는 v0.2.10 2 월 2025에서 Git 태그.

이것은 Chrome 인스턴스를 실행하기 위해 CDP 지원으로 향상된, executeautomation/mcp-playwright v0.2.7의 포크입니다.

키 기능

  • 12.0 CDP를 통해 기존 크롬 인스턴스에 연결
  • 전체 브라우저 자동화 기능
  • 전체 페이지 또는 특정 요소의 스크린 샷 캡처
  • Comprehensive️ 종합 웹 상호 작용 (navigation, click, form Filling)
  • 콘솔 로그 모니터링
  • 브라우저의 JavaScript 실행
  • HTTP API 테스트 지원

설치

npm 또는 Smithery를 사용하여 패키지를 설치할 수 있습니다.

Smithery를 통해 설치

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

MCP Playwright CDP

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 Node.js 20 or 22:

npm ci
npm run build

Use npm install only when updating dependencies.

Configuration

Add this to your Claude Desktop configuration file:

{
  "mcpServers": {
    "playwright": {
      "command": "node",
      "args": ["/path/to/mcp-playwright/dist/index.js"]
    }
  }
}

Replace /path/to/mcp-playwright with your actual path to the repository.

CDP Connection

This fork adds the ability to connect to an existing Chrome instance via CDP. To use this feature:

  1. Launch Chrome with remote debugging enabled:
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222
  1. The server will automatically attempt to connect to the running Chrome instance first, before launching a new browser.

Security

GitHub에서 전체 README 보기

설치

npx -y @smithery/cli install @lars-hagen/mcp-playwright-cdp --client claude
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "playwright": { "command": "node", "args": ["/path/to/mcp-playwright/dist/index.js"] } } }