Playwright MCP Server - NixOS Flake

by benjaminkitt

424 downloads
Not rated
GitHub

About

A comprehensive NixOS Flake development environment for the Playwright MCP (Model Context Protocol) server with full Chrome and Firefox support, including persistent browser profiles.

Details

Author
benjaminkitt
Downloads
424
Categories
Automation

- Complete Playwright MCP server setup based on Microsoft’s implementation
- Multi-browser support: Chrome/Chromium and Firefox
- Browser profile persistence between sessions
- Desktop profile integration (import existing profiles)
- Properly configured for NixOS with all dependencies
- Ready-to-use development shell with all tools
- AI agent compatible (can be added as a URL to dev environments)

Clone or copy flake.nix, then activate with direnv allow or manually with nix develop. Run the server using playwright-mcp-wrapped (headed mode by default) or nix run. Use flags such as --headless, --browser firefox, --config /path/to/config.json, or --port 8931 for server mode. Import desktop profiles by running nix run .#setup-profiles.

Playwright MCP Server - NixOS Flake

A comprehensive NixOS Flake development environment for the Playwright MCP (Model Context Protocol) server with full Chrome and Firefox support, including persistent browser profiles.

Features

- ✅ Complete Playwright MCP Server Setup: Based on Microsoft's official implementation
- ✅ Multi-Browser Support: Both Chrome/Chromium and Firefox browsers included
- ✅ Profile Persistence: Maintains browser profiles between sessions
- ✅ Desktop Profile Integration: Can import existing Chrome/Firefox profiles from your desktop
- ✅ NixOS Integration: Properly configured for NixOS with all dependencies
- ✅ Development Environment: Ready-to-use development shell with all tools
- ✅ AI Agent Compatible: Can be added as a URL to development environments for AI agents

Quick Start

Using with direnv (Recommended)

1. Clone this repository or copy the flake.nix to your project
2. Enable direnv: direnv allow
3. The environment will automatically activate when you enter the directory

Manual activation

```bash

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.