npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

playwright-ui-mcp

v1.0.1

Published

Lightweight MCP server for headed browser UI capture and analysis using Playwright. Supports screenshots, video recording, and browser automation for Claude.

Readme

playwright-ui-mcp

A lightweight MCP (Model Context Protocol) server for headed browser UI capture and analysis using Playwright. Designed for use with Claude to enable visual UI inspection, screenshots, and browser automation.

Features

  • Headed browser - Always visible, not headless, for real UI analysis
  • Lightweight by default - No video recording unless explicitly enabled
  • Screenshot capture - Returns base64 images for Claude to analyze
  • Video recording - Optional, enable only when needed
  • Auto cleanup - All screenshots/videos deleted when browser closes
  • Interactive elements - Get clickable elements with selectors

Installation

Automatic Install (Recommended)

Install as a dependency in your project. The configuration (.mcp.json) is created automatically.

npm install playwright-ui-mcp

Quick Setup (Without Installing)

If you just want to configure the current directory without adding a dependency:

npx playwright-ui-mcp-install

Manual Configuration

Create .mcp.json in your project root:

{
  "mcpServers": {
    "playwright-ui": {
      "command": "npx",
      "args": ["-y", "playwright-ui-mcp"]
    }
  }
}

Then restart Claude Code or run /mcp to load the server.

Available Tools

| Tool | Description | |------|-------------| | browser_launch | Launch headed browser. Options: width, height, slowMo, recordVideo | | browser_new_page | Create a new tab | | browser_navigate | Navigate to URL | | browser_screenshot | Capture screenshot (returns base64 image for analysis) | | browser_get_visible_elements | Get interactive elements with selectors | | browser_get_content | Get page HTML and text | | browser_click | Click an element | | browser_type | Type into input field | | browser_wait_for | Wait for element to appear | | browser_evaluate | Run JavaScript in page | | browser_close_page | Close a specific tab | | browser_close | Close browser and cleanup all captures | | browser_status | Get session info |

Usage Examples

Basic UI Inspection

Ask Claude:

"Open a browser, go to https://example.com, and describe what you see"

Claude will:

  1. Launch browser
  2. Navigate to the URL
  3. Take a screenshot
  4. Analyze the UI visually
  5. Close browser (auto-cleanup)

Form Interaction

"Go to the login page, fill in username '[email protected]' and password 'secret', then click submit"

With Video Recording (Heavy Mode)

"Record a video while you navigate through the checkout flow"

Claude will use recordVideo: true when launching.

Lightweight vs Heavy Mode

| Mode | Video | slowMo | Use Case | |------|-------|--------|----------| | Default (Light) | Off | None | Quick UI checks | | Heavy | On | 100-200ms | Debugging, demos |

// Lightweight (default)
browser_launch()

// Heavy mode for debugging
browser_launch({ recordVideo: true, slowMo: 150 })

Cleanup

All temporary files (screenshots, videos) are automatically deleted when browser_close is called. No manual cleanup required.

Uninstall

Remove from project:

npx playwright-ui-mcp-install uninstall

Requirements

  • Node.js >= 18.0.0
  • Chromium browser (auto-installed via Playwright on first run)

License

MIT