TF

tontoko/fast-playwright-mcp

Browser automation

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

40 stars 9 forks 품질 78 트렌드 4Apache-2.0

tontoko/fast-playwright-mcp는 MCP 서버 후보는 https://github.com/tontoko/fast-playwright-mcp.에서 수입됩니다

개요

tontoko/fast-playwright-mcp는 MCP 서버 후보는 https://github.com/tontoko/fast-playwright-mcp.에서 수입됩니다

개요(AI 번역)

##빠른 Playwright의 MCP

이 MCP 서버는 Microsoft의 포크입니다.

Playwright를 사용하여 브라우저 자동화 기능을 제공하는 Model Context Protocol (MCP) 서버. 이 서버는 LLM을 사용하여 웹 페이지와 상호 작용할 수 있습니다. 구조화 된 접근성 스냅 샷, 스크린 샷 또는 시각적으로 조정 된 모델의 필요성을 우회합니다.

키 기능

  • ** 빠른 및 경량 **. Playwright의 접근성 트리를 사용하여 픽셀 기반 입력이 아닙니다.
  • **LLM 친절한 **. 필요로 하는 시각 모형 없음, Structured 자료에 순전히 작동합니다.
  • Deterministic 도구 응용 프로그램. 스크린 샷 기반 접근법과 공통의 주변을 피하십시오.

빠른 서버 기능 (이 포크)

  • ** 토큰 최적화 **. 모든 도구는 expectation] 응답 내용을 제어하는 매개 변수를 지원합니다:
  • includeCode: false - 토큰을 줄이는 Suppress Playwright 코드 생성
  • includeSnapshot: false - 최소 응답에 대한 페이지 스냅 샷을 건너 (70-80% 토큰 감소)
  • includeConsole: false - 콘솔 메시지 제외
  • includeTabs: false - 숨기기 탭 정보 -Image Compression. 스크린 샷 도구 지원 imageOptions:
  • format: 'jpeg' - PNG 대신 JPEG 사용
  • quality: 1-100 - 이미지 압축 (e.g.

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

README

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

Fast Playwright MCP

This MCP server is a fork of the Microsoft one.

A Model Context Protocol (MCP) server that provides browser automation capabilities using Playwright. This server enables LLMs to interact with web pages through structured accessibility snapshots, bypassing the need for screenshots or visually-tuned models.

Key Features

  • Fast and lightweight. Uses Playwright’s accessibility tree, not pixel-based input.
  • LLM-friendly. No vision models needed, operates purely on structured data.
  • Deterministic tool application. Avoids ambiguity common with screenshot-based approaches.

Fast Server Features (This Fork)

  • Token Optimization. All tools support an expectation parameter to control response content:
    • includeCode: false - Suppress Playwright code generation to reduce tokens
    • includeSnapshot: false - Skip page snapshot for minimal responses (70-80% token reduction)
    • includeConsole: false - Exclude console messages
    • includeTabs: false - Hide tab information
  • Image Compression. Screenshot tool supports imageOptions:
    • format: 'jpeg' - Use JPEG instead of PNG
    • quality: 1-100 - Compress images (e.g., 50 for 50% quality)
    • maxWidth: number - Resize images to max width
  • Batch Execution. Use browser_batch_execute for multiple operations:
    • Significant token reduction by eliminating redundant responses
    • Per-step and global expectation configuration
    • Error handling with continueOnError and stopOnFirstError options
  • Snapshot Control. Limit snapshot size with snapshotOptions:
    • selector: string - Capture only specific page sections (recommended over maxLength)
    • format: "aria" - Accessibility tree format for LLM processing
  • Diff Detection. Track only changes with diffOptions:
    • enabled: true - Show only what changed from previous state (massive token saver)
    • format: "minimal" - Ultra-compact diff output
    • Perfect for monitoring state changes during navigation or interactions
  • Diagnostic System. Advanced debugging and element discovery tools:
    • browser_find_elements - Find elements using multiple search criteria (text, role, attributes)
    • browser_diagnose - Comprehensive page analysis with performance metrics and troubleshooting
    • Enhanced error handling with alternative element suggestions
    • Page structure analysis (iframes, modals, accessibility metrics)
    • Performance monitoring with execution time under 300ms
  • Enhanced Selector System. Unified element selection with multiple strategies:
    • Selector Arrays: All element-based tools now support multiple selectors with automatic fallback
    • 4 Selector Types:
      • ref: System-generated element IDs from previous tool results (highest priority)
      • role: ARIA roles with optional text matching (e.g., {role: "button", text: "Submit"})
GitHub에서 전체 README 보기

설치

npx @tontoko/fast-playwright-mcp@latest
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "playwright": { "command": "npx", "args": [ "@tontoko/fast-playwright-mcp@latest" ] } } }