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

mcp-server-playwright-headless

v1.3.2

Published

MCP server for browser automation using Playwright with headless mode enabled

Downloads

9

Readme

MCP Server Playwright Headless

A Model Context Protocol server that provides browser automation capabilities using Playwright in headless mode with Firefox.

Features

  • 🌐 Full browser automation capabilities using Firefox in headless mode
  • 📸 Screenshot capture of entire pages or specific elements
  • 🖱️ Comprehensive web interaction (navigation, clicking, form filling)
  • 📊 Console log monitoring
  • 🔧 JavaScript execution in browser context
  • 🖼️ Integrated image server for screenshot management

Installation

Using Docker

# Build the image
docker build -t mcp-playwright-headless .

# Run the container
docker run --rm --name mcp-playwright -e IMAGE_SERVER=http://host.docker.internal:3001 mcp-playwright-headless:1.3.0

Configuration

Environment Variables

The server supports the following environment variables:

  • IMAGE_SERVER: URL of an external image server to upload screenshots to
  • IMAGE_SERVER_TOKEN: Authentication token for the image server

Components

Tools

browser_navigate

Navigate to any URL in the browser

{
  "url": "https://example.com"
}

browser_screenshot

Capture screenshots of the entire page or specific elements

{
  "name": "screenshot-name",     // required: name for the screenshot
  "selector": "#element-id",     // optional: CSS selector for element screenshot
  "fullPage": false             // optional: capture full page, default: false
}

browser_click

Click elements on the page using CSS selector

{
  "selector": "#button-id"
}

browser_click_text

Click elements on the page by their text content

{
  "text": "Click me"
}

browser_fill

Fill out an input field

{
  "selector": "#input-field",
  "value": "text to input"
}

browser_select

Select an option from a dropdown using CSS selector

{
  "selector": "#dropdown",
  "value": "option-value"
}

browser_select_text

Select an option from a dropdown by its text content

{
  "text": "Option Text",
  "value": "option-value"
}

browser_hover

Hover over elements on the page using CSS selector

{
  "selector": "#menu-item"
}

browser_hover_text

Hover over elements on the page by their text content

{
  "text": "Hover me"
}

browser_evaluate

Execute JavaScript in the browser context

{
  "script": "document.querySelector('#element').innerText"
}

delete_screenshot

Delete a specific screenshot from the image server

{
  "filename": "screenshot-name.png"
}

clear_screenshots

Clear all screenshots from the image server

{
}

Resources

console://logs

Access browser console logs captured during automation

Image Server

The project includes a standalone image server for managing screenshots. To use it:

  1. Build and start the image server:
# Build the image
docker build -t mcp-image-server -f image-server/Dockerfile .

# Run the container
docker run -d -p 3001:3001 --name image-server mcp-image-server:1.0.0

The image server provides automatic screenshot management with:

  • Automatic upload of screenshots
  • Screenshot deletion capabilities
  • Bulk screenshot clearing
  • Local fallback if image server is unavailable

Error Handling

The server includes comprehensive error handling:

  • Automatic retries for strict mode violations
  • Fallback mechanisms for screenshot storage
  • Detailed error messages for debugging

License

MIT