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

openclaw-lightpanda-mcp

v1.0.1

Published

OpenClaw-ready MCP server for Lightpanda headless browser automation (stdio, hybrid URL-first).

Readme

OpenClaw Lightpanda MCP Server

Version: 1.0.0

OpenClaw-focused MCP server wrapper for Lightpanda headless browser. It provides browser automation tools for navigation, clicking, form filling, JavaScript evaluation, screenshots, and content extraction.

Transport: stdio (local MCP process)

State model: hybrid URL-first with shared page

  • If a tool call includes url, the server navigates first and runs that tool.
  • If url is omitted, the tool reuses the active page from the current persistent MCP session.
  • If there is no active page and no url, the server returns NO_ACTIVE_PAGE.

Tools

  • lightpanda_navigate: Navigate to a URL
  • lightpanda_click: Click an element by CSS selector
  • lightpanda_fill: Fill form fields by selector/value
  • lightpanda_evaluate: Execute JavaScript on the page
  • lightpanda_screenshot: Capture screenshot and return base64
  • lightpanda_get_text: Extract page or element text
  • lightpanda_wait_for: Wait for selector or text condition
  • lightpanda_wait_until: Wait for networkidle or domcontentloaded
  • lightpanda_select: Select option by value, label, or index

Requirements

  • Node.js 18+
  • Running Lightpanda CDP endpoint (default: ws://127.0.0.1:9222)

Install

npm install

Run

npm start

The process communicates over stdin/stdout for MCP hosts.

OpenClaw / mcporter usage

Register this server as a local MCP process:

  • Command: node
  • Args: [/Users/joypatel/openclaw-lightpanda/src/index.js]
  • Working directory: /Users/joypatel/openclaw-lightpanda

Or run via npm script:

  • Command: npm
  • Args: [start]
  • Working directory: /Users/joypatel/openclaw-lightpanda

Important for one-shot CLI calls:

  • If you use mcporter call style process-per-call execution, include url on each page-dependent tool call.
  • In persistent OpenClaw agent sessions, you can call lightpanda_navigate once and then omit url in follow-up tools.

Configuration

Environment variables:

  • LIGHTPANDA_CDP_URL (default: ws://127.0.0.1:9222)
  • LOG_LEVEL (default: info, one of error|warn|info|debug)
  • DEFAULT_TIMEOUT_MS (default: 30000)

Tests

npm test

Individual tests:

npm run test:basic
npm run test:navigate
npm run test:evaluate
npm run test:form

Troubleshooting

  • Verify Lightpanda container is up and exposes port 9222.
  • Confirm LIGHTPANDA_CDP_URL matches your endpoint.