Skip to main content
Glama
Brilhante29

lightpanda-mcp-server

by Brilhante29
README.md
# ๐Ÿผ Lightpanda MCP Server

[![MCP Standard](https://img.shields.io/badge/MCP-2024--11--05-blue.svg)](https://modelcontextprotocol.io)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![NPM](https://img.shields.io/badge/NPM-npx_lightpanda--mcp--server-red?logo=npm)](https://npmjs.com)
[![Bun](https://img.shields.io/badge/Bun-bunx_lightpanda--mcp--server-fbf0df?logo=bun)](https://bun.sh)
[![Go](https://img.shields.io/badge/Go-go_install-00ADD8?logo=go)](https://golang.org)
[![Python](https://img.shields.io/badge/Python-uvx_lightpanda--mcp--server-3776ab?logo=python)](https://pypi.org)

A **100% project-agnostic, multi-runtime Model Context Protocol (MCP) server** for [Lightpanda](https://lightpanda.io) โ€” the ultra-fast AI-native headless browser (16x lower memory footprint than Chrome).

Supports **NPM, Bun, PNPM, Yarn, Go, Python/UVX**, and connects **OpenCode, Claude Code, Codex, Antigravity, Cursor, Windsurf, or LangChain** seamlessly!

---

## ๐Ÿš€ Installation & Execution Methods

### โšก 1. NPM / NPX (Node.js)

```bash
# Zero-install execution via NPX
npx lightpanda-mcp-server

# Or global install
npm install -g lightpanda-mcp-server
```

**MCP Config:**
```json
{
  "mcpServers": {
    "lightpanda": {
      "command": "npx",
      "args": ["-y", "lightpanda-mcp-server"]
    }
  }
}
```

---

### ๐ŸฅŸ 2. BUN / BUNX

```bash
# Zero-install execution via Bunx
bunx lightpanda-mcp-server

# Or global install via Bun
bun add -g lightpanda-mcp-server
```

**MCP Config:**
```json
{
  "mcpServers": {
    "lightpanda": {
      "command": "bunx",
      "args": ["lightpanda-mcp-server"]
    }
  }
}
```

---

### ๐Ÿ“ฆ 3. PNPM / DLX

```bash
pnpm dlx lightpanda-mcp-server
```

**MCP Config:**
```json
{
  "mcpServers": {
    "lightpanda": {
      "command": "pnpm",
      "args": ["dlx", "lightpanda-mcp-server"]
    }
  }
}
```

---

### ๐Ÿงถ 4. YARN / DLX

```bash
yarn dlx lightpanda-mcp-server
```

---

### ๐Ÿน 5. GO (`go install` / `go run`)

```bash
# Global Go install
go install github.com/Brilhante29/lightpanda-mcp-server@latest
```

**MCP Config:**
```json
{
  "mcpServers": {
    "lightpanda": {
      "command": "lightpanda-mcp-server"
    }
  }
}
```

---

### ๐Ÿ 6. PYTHON / UVX (`pip` / `uvx`)

```bash
uvx lightpanda-mcp-server
```

**MCP Config:**
```json
{
  "mcpServers": {
    "lightpanda": {
      "command": "uvx",
      "args": ["lightpanda-mcp-server"]
    }
  }
}
```

---

## ๐Ÿ› ๏ธ Provided MCP Tools

| Tool Name | Description | Parameters |
| :--- | :--- | :--- |
| `lightpanda_fetch_html` | Ultra-fast HTML extraction from any URL. | `url` (string) |
| `lightpanda_get_markdown` | Extracts clean Markdown & Accessibility Tree (AX Tree). | `url` (string) |
| `lightpanda_execute_js` | Evaluates JavaScript inside Lightpanda headless browser over CDP. | `url` (string), `script` (string) |
| `lightpanda_status` | Checks local Lightpanda daemon health and CDP WebSocket connectivity. | None |

---

## โš™๏ธ Environment Variables

- `LIGHTPANDA_HOST` (default: `127.0.0.1`): Host IP of local Lightpanda daemon.
- `LIGHTPANDA_PORT` (default: `9222`): Port of local Lightpanda CDP server.

---

## ๐Ÿ“„ License

MIT License © Guilherme Brilhante & Lightpanda Community.