MCP ExplorerExplorer

Deno2 Playwright Mcp Server

@jakedahnon 9 months ago
11 MIT
FreeCommunity
AI Systems
A Model Context Protocol server that provides browser automation capabilities using Playwright and Deno 2.

Overview

What is Deno2 Playwright Mcp Server

deno2-playwright-mcp-server is a Model Context Protocol server that facilitates browser automation using Playwright and Deno 2. It allows large language models (LLMs) to interact with web pages, capture screenshots, and execute JavaScript in a real browser environment.

Use cases

Use cases include automating the testing of web applications, capturing dynamic content from websites, and allowing LLMs to perform tasks such as filling out forms or retrieving information from web pages.

How to use

To use deno2-playwright-mcp-server, you need to build the executable binary for your operating system using Deno commands. After building, update the configuration file to point to the binary path for the server to run correctly.

Key features

Key features include browser automation capabilities, the ability to interact with web pages, take screenshots, and execute JavaScript. It is built on Deno 2, which allows for easy binary compilation and execution without runtime dependencies.

Where to use

deno2-playwright-mcp-server can be used in various fields including web testing, automated web scraping, and enhancing interactions for large language models with web content.

Content

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"
    }
  }
}

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers