lightpanda-mcp
v1.0.3
Published
MCP server wrapper for Lightpanda browser automation
Downloads
313
Maintainers
Readme
Lightpanda MCP Server
MCP (Model Context Protocol) server wrapper for Lightpanda browser automation.
Features
- Auto-installation: Downloads the Lightpanda binary automatically on first use
- Platform support: macOS (arm64/x86_64), Linux (arm64/x86_64)
- Zero configuration: Works out of the box with MCP clients
- 11 browser automation tools: Navigation, content extraction, interaction, and more
Installation
Manual Installation
npx lightpanda-mcpThe first run will download the Lightpanda binary (~60-110MB depending on platform).
Available Tools
Lightpanda provides 11 MCP tools for browser automation:
Navigation & Content
goto- Navigate to URLsmarkdown- Extract page content in markdown formatlinks- Extract all links from pageevaluate- Execute JavaScript on page
Page Understanding
semantic_tree- Get simplified DOM tree optimized for AI reasoninginteractiveElements- List all clickable elements with backend IDsstructuredData- Extract JSON-LD, OpenGraph, and meta tags
Interaction
click- Click elements by backend IDfill- Fill form inputsscroll- Scroll page or specific elementswaitForSelector- Wait for elements to appear
Usage
With MCP Client
Configure your MCP client to use:
{
"mcpServers": {
"lightpanda": {
"command": "npx",
"args": ["-y", "lightpanda-mcp"]
}
}
}Direct Usage (Testing)
# Start the MCP server
npx lightpanda-mcp
# In another terminal, send MCP commands via stdin
echo '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' | npx lightpanda-mcpPlatform Support
| Platform | Architecture | Binary Size | Status | |----------|-------------|-------------|---------| | macOS | ARM64 (Apple Silicon) | ~59MB | ✅ Supported | | macOS | x86_64 (Intel) | ~62MB | ✅ Supported | | Linux | ARM64 | ~113MB | ✅ Supported | | Linux | x86_64 | ~108MB | ✅ Supported | | Windows | - | - | ⚠️ Use WSL2 |
Requirements
- Node.js >= 18.0.0
- Internet connection for initial binary download
How It Works
- On first run, detects your platform (OS + architecture)
- Downloads the appropriate Lightpanda binary from GitHub releases
- Saves binary to
./bin/lightpandain the package directory - Starts
lightpanda mcpand proxies stdin/stdout to your MCP client - Subsequent runs use the cached binary
Troubleshooting
Download fails
If the download fails, you can manually install Lightpanda:
# macOS (arm64)
curl -L -o lightpanda https://github.com/lightpanda-io/browser/releases/download/nightly/lightpanda-aarch64-macos
chmod +x lightpanda
mv lightpanda /usr/local/bin/
# Then use native lightpanda instead
lightpanda mcpBinary not found after installation
The binary is stored in node_modules/lightpanda-mcp/bin/lightpanda. If npx can't find it, try:
npm install -g lightpanda-mcp
lightpanda-mcpAbout Lightpanda
Lightpanda is a lightweight headless browser built in Zig, designed for:
- 11x faster than Chrome
- 9x less memory usage
- Native MCP support
- Built-in browser automation tools
Learn more:
- Website: lightpanda.io
- Installation docs: lightpanda.io/docs/open-source/installation
- GitHub: github.com/lightpanda-io/browser
License
MIT
Contributing
Issues and PRs welcome at github.com/YashJain14/lightpanda-mcp
