light-browser
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Light Browser
A lightweight web browser designed for humans (CLI/TUI) and AI agents (MCP). Prioritizes content extraction over visual fidelity, making web content accessible in bandwidth-constrained environments and to systems that process text more efficiently than pixels.
Features
Three engine tiers: cheerio (static HTML), jsdom (simple JS), Playwright (full browser)
Semantic search: AI-powered content filtering using local embeddings
Smart filtering: When searching, only relevant links and images are returned
Multiple outputs: Markdown, JSON, plain text
MCP server: Full Model Context Protocol support for AI agents
Interactive TUI: Vim-like terminal interface
Single binary: No runtime dependencies needed
Related MCP server: gander
Installation
Option 1: One-Line Install (recommended)
Requires Bun - install with curl -fsSL https://bun.sh/install | bash
# Run directly without installing (downloads on first use)
bunx github:danilop/light-browser https://example.com
# Always use latest version from GitHub (add #main)
bunx github:danilop/light-browser#main https://example.com
# Or install globally
bun add -g github:danilop/light-browser
light-browser https://example.comOption 2: Download Binary (no Bun needed)
Download the pre-built binary for your platform from Releases:
Platform | Binary |
macOS (Apple Silicon) |
|
macOS (Intel) |
|
Linux (ARM64) |
|
Linux (x64) |
|
Windows (x64) |
|
# macOS/Linux: Make executable and move to PATH
chmod +x light-browser-darwin-arm64
sudo mv light-browser-darwin-arm64 /usr/local/bin/light-browserOption 3: From Source
git clone https://github.com/danilop/light-browser.git
cd light-browser
bun install
bun run src/index.ts https://example.comQuick Start
# Interactive: Opens TUI automatically when in terminal
light-browser https://example.com
# Pipe/Script: Output markdown to stdout
light-browser https://example.com --dump
# Semantic search - find content about pricing
light-browser https://example.com --dump --query "how much does it cost"
# JSON output for scripts
light-browser https://example.com --json
# MCP: Start server for AI agents
light-browser serveFor Humans
CLI Usage
Basic Commands
# Fetch and display as markdown (default)
light-browser https://example.com
# Output as JSON
light-browser https://example.com --json
# Output as plain text
light-browser https://example.com --format text
# Quiet mode (no status messages)
light-browser https://example.com -q
# Verbose mode (timing details)
light-browser https://example.com -vContent Filtering
Light Browser offers powerful filtering to extract only what you need:
# CSS selectors - extract specific elements
light-browser https://example.com -s "main" -s "article"
# Keywords - exact text matching
light-browser https://example.com -k "price" -k "shipping"
# Semantic search - AI-powered similarity matching
light-browser https://example.com --query "contact information"Smart Link & Media Filtering: When using -k (keywords) or --query (semantic search), only links and images that appear in or relate to the matched content are returned. This dramatically reduces noise in the output.
# Example: On a news site, only get links related to "AI"
light-browser https://news.ycombinator.com --query "artificial intelligence"
# Returns: Only the matching headlines + their specific linksSemantic Search
The --query option uses local AI embeddings (all-MiniLM-L6-v2) to find semantically related content:
# Find pricing info even if page doesn't use the word "price"
light-browser https://store.com --query "how much does it cost"
# Matches: "pricing", "$99", "fees", "subscription cost", etc.
# Find contact methods
light-browser https://company.com --query "ways to reach support"
# Matches: email addresses, phone numbers, contact forms, etc.The ~23MB model downloads automatically on first use and runs entirely locally.
Options:
--semantic-threshold <0-1>: Minimum similarity score (default: 0.3)--semantic-top-k <n>: Maximum results to return (default: 10)
Engine Tiers
Tier | Engine | Speed | Use Case |
1 | cheerio | ~50ms | Static HTML pages |
2 | jsdom | ~150-300ms | Pages with simple JS |
3 | Playwright | ~500-2000ms | Complex SPAs (React, Vue) |
# Force a specific tier
light-browser https://react-app.com --tier 3
# Default is tier 1 (fastest)Token Budget
Limit output size for LLM consumption:
# Limit to ~1000 tokens
light-browser https://example.com --max-tokens 1000Batch Processing
Process multiple URLs at once:
# Create URL list
cat > urls.txt << EOF
https://example.com
https://example.org
https://news.ycombinator.com
EOF
# Process all URLs
light-browser --batch urls.txt --batch-output results.json
# With parallel processing
light-browser --batch urls.txt --batch-concurrency 3 --batch-output results.csvAll CLI Options
Usage: light-browser [options] [command] [url]
Options:
-f, --format <format> markdown, text, json (default: markdown)
-t, --tier <tier> Engine tier: 1, 2, or 3 (default: 1)
--timeout <ms> Request timeout (default: 30000)
-s, --selector <selector...> CSS selectors to extract
-k, --keyword <keyword...> Keywords for exact filtering
--query <text> Semantic search query
--semantic-threshold <0-1> Similarity threshold (default: 0.3)
--semantic-top-k <n> Max semantic results (default: 10)
--max-tokens <n> Token budget limit
-q, --quiet Suppress status messages
-v, --verbose Show timing details
--dump Force non-interactive output (for scripts/pipes)
--download-media Process images/videos
--image-size <WxH> Max image dimensions (default: 640x480)
--image-quality <n> Image quality 1-100 (default: 80)
--video-frames <n> Video frames to extract (default: 5)
--batch <file> Process URLs from file
--batch-output <file> Write results to file
--batch-concurrency <n> Parallel requests (default: 1)
--stealth Browser-like fingerprint
--json Shorthand for --format json
Commands:
serve Start MCP serverInteractive Browser (TUI)
When stdout is a terminal, Light Browser opens an interactive w3m/lynx-style browser by default:
# Opens interactive browser automatically
light-browser https://example.com
# Force non-interactive output
light-browser https://example.com --dump
echo "https://example.com" | light-browserKeyboard Shortcuts
Key | Action |
| Next focusable element (link/input/button) |
| Previous focusable element |
| Activate (follow link, edit field, submit) |
| Scroll down |
| Scroll up |
| Page down |
| Page up |
| Go to top |
| Go to bottom |
| Go back in history |
| Go forward in history |
| Follow link by number |
| Search in page |
| Next/previous search result |
| Command mode |
| Quit |
Input Mode (Form Fields)
When you press Enter on an input field:
Type your text
Enter- Save and exit input modeEscape- Cancel and exitTab- Save and move to next field
Commands
:open <url>- Navigate to URL:links- Show all links:forms- Show all forms:back- Go back:forward- Go forward:refresh- Reload page:help- Show all keyboard shortcuts:quit- Exit
For AI Agents (MCP)
Light Browser provides a Model Context Protocol (MCP) server for AI agent integration.
Setup
Requires Bun - install with curl -fsSL https://bun.sh/install | bash
Add to your MCP client configuration:
{
"mcpServers": {
"light-browser": {
"command": "bunx",
"args": ["github:danilop/light-browser#main", "serve"]
}
}
}That's it! No cloning, no manual install. Downloads automatically on first use. The #main suffix ensures you always get the latest version.
Download from Releases, then:
{
"mcpServers": {
"light-browser": {
"command": "/usr/local/bin/light-browser",
"args": ["serve"]
}
}
}MCP Tools
browse - High-Level Fetch (Recommended)
The simplest way to get web content:
{
"name": "browse",
"arguments": {
"url": "https://example.com",
"format": "markdown",
"query": "find pricing information",
"maxTokens": 5000
}
}Parameters:
url(required): URL to fetchformat:"markdown"|"text"|"json"(default: markdown)query: Semantic search to filter contentkeywords: Array of exact-match keywordsselectors: Array of CSS selectorsmaxTokens: Limit output sizemaxTier: Maximum engine tier (1-3)includeMedia: Include images in response (default: false)
When includeMedia: true:
Images are downloaded, resized (max 640×480), and converted to WebP
Returned as base64-encoded data in the response
Response format:
{ "content": [ { "type": "text", "text": "Page content with [img:1] references..." }, { "type": "image", "data": "base64...", "mimeType": "image/webp" } ] }
navigate - Create Session
For multi-step interactions:
{
"name": "navigate",
"arguments": { "url": "https://example.com" }
}
// Returns: { "sessionId": "session-abc123" }snapshot - Get Page Content
{
"name": "snapshot",
"arguments": {
"sessionId": "session-abc123",
"format": "markdown",
"query": "contact info"
}
}get_links / get_forms
{
"name": "get_links",
"arguments": {
"sessionId": "session-abc123",
"filter": "pricing"
}
}fill_form / submit_form
{
"name": "fill_form",
"arguments": {
"sessionId": "session-abc123",
"formId": "login-form",
"fields": { "username": "user", "password": "pass" }
}
}{
"name": "submit_form",
"arguments": {
"sessionId": "session-abc123",
"formId": "login-form"
}
}click_link
{
"name": "click_link",
"arguments": {
"sessionId": "session-abc123",
"linkText": "Products"
}
}session_list / session_close
{ "name": "session_list", "arguments": {} }
{ "name": "session_close", "arguments": { "sessionId": "session-abc123" } }Example Workflows
Simple Fetch
browse({ url: "https://store.com", query: "product prices" })Multi-Step Navigation
1. navigate({ url: "https://store.com" })
→ { sessionId: "session-123" }
2. get_links({ sessionId: "session-123", filter: "products" })
3. click_link({ sessionId: "session-123", linkText: "Products" })
4. session_close({ sessionId: "session-123" })Form Submission
1. navigate({ url: "https://example.com/login" })
2. get_forms({ sessionId: "session-123" })
3. fill_form({
sessionId: "session-123",
formId: "login-form",
fields: { username: "user", password: "pass" }
})
4. submit_form({ sessionId: "session-123", formId: "login-form" })
→ Returns resulting page contentTechnical Details
Media Processing
With --download-media:
Images: Resized to max 640×480, converted to WebP
Videos: Frames extracted at intervals (requires ffmpeg)
Output: Base64-encoded MCP-compatible content
PDF Support
PDFs are automatically detected and extracted:
light-browser https://example.com/document.pdfText Extraction
Light Browser extracts ALL visible text from any HTML structure, regardless of semantic markup. This means it works on:
Tables used for layout
Nested divs and spans
Non-semantic HTML
Any website, not just those using proper HTML5 semantics
Development
# Install dependencies
bun install
# Run tests (172 tests)
bun test
# Type check
bun run typecheck
# Lint & format
bun run lint
bun run format
# Build for current platform
bun run build
# Build for all platforms
bun run build:allBuilding Binaries
# Current platform
bun run build
# → dist/light-browser
# All platforms
bun run build:all
# → dist/light-browser-darwin-arm64
# → dist/light-browser-darwin-x64
# → dist/light-browser-linux-arm64
# → dist/light-browser-linux-x64
# → dist/light-browser-windows-x64.exeReleasing
Releases are automated via GitHub Actions. To create a new release:
# 1. Update version in package.json
# 2. Commit the version bump
git add package.json
git commit -m "Bump version to X.Y.Z"
# 3. Create and push a version tag
git tag vX.Y.Z
git push origin main --tagsThis triggers the release workflow which:
Builds binaries for all platforms (macOS, Linux, Windows)
Creates a GitHub Release with the binaries attached
Auto-generates release notes from commits
Version format: Use semantic versioning (e.g., v0.2.0, v1.0.0-beta.1)
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Web data for agents. Extract web pages, crawl websites, discover URLs, and search the web.
Web scraping, search, crawling, structured extraction and research for AI agents.
Web scraping for agents. Point it at a URL and it returns the page as clean markdown, JavaScript-rendered pages included. Point it at a site and it maps the URLs or crawls the section you need in the background, a few pages at a time so results fit in the conversation. Search the web and read full pages, extract fields with a JSON schema you define (validated, never invented), read a store's catalogue or a blog's posts from the platform's own feed, and check whether a page has changed. Failed requests cost nothing. The free plan includes 1,500 credits a month.
Unblocking and fresh web data for agents: URL to Markdown, YouTube, Maps, Amazon, jobs. Pay per call
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI agents to fetch any web page as clean markdown or screenshot it, turning URLs into LLM-ready context.24 npmMIT
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to fetch and extract clean, readable content from web pages, and search within pages for specific queries, without needing a full browser.1MIT
- FlicenseNot gradedqualityCmaintenanceEnables AI agents to search the web, read and extract content from webpages, fetch JSON from REST APIs, and collect links while bypassing anti-bot protections.-

JsonLink MCP Serverofficial
AlicenseAqualityCmaintenanceEnables AI agents to read any web page as clean Markdown, pull title/description/preview metadata, capture desktop, mobile, or full-page screenshots, and list every link or image on a URL. JavaScript-heavy pages are rendered in a real browser and blocked requests retried through a proxy, so agents can reach content they'd otherwise miss.542 npmMIT