mcpField
D
Deno 2 Playwright Model Context Protocol Server Example

Deno 2 Playwright Model Context Protocol Server Example

Local
github.com/jakedahnBrowser Automation12Updated 99w ago

About Deno 2 Playwright Model Context Protocol Server Example

A Deno 2 MCP server that uses Playwright to let LLMs automate a real browser, interact with web pages, take screenshots, and run JavaScript. It can be built as a binary intended to run without runtime dependencies.

Key features

  1. 01Automate a real browser with Playwright
  2. 02Interact with web pages
  3. 03Capture screenshots
  4. 04Execute JavaScript in the browser
  5. 05Build a standalone binary

Use cases

  1. 01Automate browser interactions with web pages
  2. 02Capture screenshots during browser tasks
  3. 03Run JavaScript in a real browser

MCP support

Exposes Playwright browser automation capabilities to MCP clients, including page interaction, screenshots, and JavaScript execution.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project 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"
    }
  }
}

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.