MCP ExplorerExplorer

Nix Playwright Mcp

@akirakon a year ago
5 MIT
FreeCommunity
AI Systems
A Nix flake for using Playright MCP on NixOS

Overview

What is Nix Playwright Mcp

nix-playwright-mcp is a Nix flake designed to simplify the setup and usage of the Playwright MCP server on NixOS, addressing compatibility and version mismatch issues.

Use cases

Use cases include running automated tests for web applications, ensuring compatibility with specific browser versions, and leveraging the Model Context Protocol (MCP) for AI-related projects.

How to use

To use nix-playwright-mcp, run the flake directly with the command ‘nix run github:akirak/nix-playwright-mcp’. You can view command-line options by adding ‘–help’.

Key features

Key features include intuitive usage on NixOS, integration with the official NixOS package for Playwright browser executables, minimal download size by including only a single browser (currently Chromium), and packaging of the MCP server to avoid version conflicts.

Where to use

nix-playwright-mcp is primarily used in software testing and development environments where Playwright is required for automated browser testing, particularly on NixOS systems.

Content

A Nix Flake for Playwright MCP

Deprecated: Now Playwright MCP starts a browser instance within itself, you
can simply run the MCP server without a complex workaround which was previously
implemented in this repository. This repository now only provides a Nix-wrapped
version of the Playwright MCP server, with the browser executable set to
Chromium from Nixpkgs.

For a comprehensive framework for running MCP servers on NixOS, I would
recommend the following options:

Usage

Run the server:

nix run github:akirak/nix-playwright-mcp

or in headless mode:

nix run github:akirak/nix-playwright-mcp -- --headless

Credits

To initially make Playwright run on NixOS, I followed a thread on the NixOS
Discourse
. The
posts by Patrizio Bekerle, a.k.a. pbek, and Giacomo Debidda, a.k.a. jackdbd,
were especially helpful. Thanks!

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers