JD

jakedahn/deno2-playwright-mcp-server

Browser automation

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

12 stars 6 forks 품질 49 트렌드 19MIT

A Model Context Protocol server that provides browser automation capabilities using Playwright and Deno 2.

개요

A Model Context Protocol server that provides browser automation capabilities using Playwright. This server enables LLMs to interact with web pages, take screenshots, and execute JavaScript in a real browser environment. This repo uses Deno 2, which has nice ergonomics, because you can compile a binary and run it without any runtime dependencies. This code is heavily based on the official Puppeteer MCP server, which you can find here: https://github.com/modelcontextprotocol/servers/tree/main/src/puppeteer Only the mac binary build has been tested, but you should be able to build an executable binary for linux x86_64, linux ARM64, and windows x86_64. - deno task build-mac - deno task build-linux-x86_64 - deno task build-linux-ARM64 - deno task build-windows-x86_64 To invoke the playwright-server binary, you need to update your ~/Library/Application\ Support/Claude/claude_desktop_config.json to point to the binary.

README

Deno 2 Playwright Model Context Protocol Server Example

A Model Context Protocol server that provides browser automation capabilities using Playwright. This server enables LLMs to interact with web pages, take screenshots, and execute JavaScript in a real browser environment.

This repo uses Deno 2, which has nice ergonomics, because you can compile a binary and run it without any runtime dependencies.

This code is heavily based on the official Puppeteer MCP server, which you can find here: https://github.com/modelcontextprotocol/servers/tree/main/src/puppeteer

How to build

Only the mac binary build has been tested, but you should be able to build an executable binary for linux x86_64, linux ARM64, and windows x86_64.

  • deno task build-mac
  • deno task build-linux-x86_64
  • deno task build-linux-ARM64
  • deno task build-windows-x86_64

How to run

To invoke the playwright-server binary, you need to update your ~/Library/Application\ Support/Claude/claude_desktop_config.json to point to the binary.

{
  "mcpServers": {
    "playwright": {
      "command": "/path/to/deno2-playwright-mcp-server/playwright-server"
    }
  }
}
GitHub에서 전체 README 보기

설치

This server does not publish a one-line install command.

Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "playwright": { "command": "/path/to/deno2-playwright-mcp-server/playwright-server" } } }