LookaCrawler
🕷️ LookaCrawler
免费、开源、token 高效的 Firecrawl 本地替代方案,为 LLM 提供原生 Model Context Protocol (MCP) 服务器。
📌 为什么选择 LookaCrawler?
面向大型语言模型(LLM)的网页爬取默认是有缺陷的:现代网页包含大量 HTML 冗余(脚本、跟踪像素、嵌套的 div、导航栏、样式表),每页浪费数千 token。
LookaCrawler 是一款开源的 token 优化型本地爬虫,可去除 >73% 至 90% 的网页冗余,提取干净的 Markdown,通过 stealth Playwright 驱动绕过反机器人屏障,并提供原生 Model Context Protocol (MCP) 服务器,可直接用于 Claude Desktop、Cursor 和 Antigravity。
Related MCP server: TheCrawler
🥊 对比:LookaCrawler 与替代方案
功能 | 🕷️ LookaCrawler | 🔥 Firecrawl (Cloud) | ⚡ Jina Reader |
价格 / 成本 | $0.00(100% 免费开源) | $16 至 $99+/月 | 限速 API |
Token 削减 | >73% 至 90% 的激进裁剪 | 标准 Markdown | 基础 Markdown |
数据隐私 | 100% 本地(零遥测) | 云服务商 | 云 API |
MCP 集成 | 原生一键服务器(stdio 与 SSE) | 社区封装 | 无 |
Stealth 与反机器人 | 真实 Chrome + Stealth 指纹 | 云代理 | 基础请求头 |
本地 SQLite 缓存 | 内置(24 小时 TTL 缓存) | Redis / 付费插件 | 无 |
JS SPA 支持 | Playwright + Chrome 池 | 云端无头浏览器 | 无头浏览器 |
🚀 主要特性
**Token 经济优先:**在将 Markdown 传递给您的 LLM 之前,自动裁剪脚本、样式、内联 SVG、跟踪标签、导航、页脚和冗余表单。
双混合爬取引擎:
fast:超快的原生 HTTP GET,带退避重试。遇到反机器人挑战时,自动升级为deep。deep:无头 Playwright 引擎,启动真实 Google Chrome 并应用 stealth 补丁(清除navigator.webdriver、伪造 WebGL、剥离 CDP 泄漏),从而透明地爬取受 Cloudflare/Turnstile 保护的页面。
**原生 MCP 服务器协议:**支持 JSON-RPC 2.0 stdio 与 SSE 传输,可直接用于 Claude Desktop、Cursor、Windsurf 和 Antigravity。
**本地 SQLite 缓存:**将提取的 Markdown 存储在
crawler_cache.sqlite中,以消除重复的网络请求。**结构化 JSON 与元数据提取:**提取 Open Graph 标签(
og:title、og:description)、发布日期、canonical URL 和自定义 CSS 选择器。
🔌 一键 MCP 设置(Claude Desktop 与 Cursor)
将 LookaCrawler 添加到您的 claude_desktop_config.json 或 Cursor MCP 设置中:
{
"mcpServers": {
"lookacrawler": {
"command": "bun",
"args": ["run", "/absolute/path/to/lookacrawler/index.ts"]
}
}
}现在,您可以提示 Claude 或 Cursor:
"使用 LookaCrawler 爬取 https://example.com/docs 并提取 API 文档。"
📦 快速开始与 CLI 用法
1. 安装
需要 Bun 1.1+(或 Node.js 20+):
# Clone the repository
git clone https://github.com/lucasmartins-ai/lookacrawler.git
cd lookacrawler
# Install dependencies
bun install2. CLI 命令
# Single URL fast Markdown extraction
bun run cli.ts extract https://news.ycombinator.com --mode fast
# Headless Playwright deep extraction with CSS selector target
bun run cli.ts extract https://example.com --mode deep --selector "main" --json
# Batch concurrent multi-URL crawling
bun run cli.ts batch https://site1.com https://site2.com --concurrency 4
# Structured JSON schema extraction
bun run cli.ts structured https://example.com --schema '{"title":"h1","links":"a"}'
# Start MCP Server via SSE on port 3000
bun run cli.ts serve --transport sse --port 30003. Docker 部署
# Build and run Docker container
docker build -t lookacrawler .
docker run -p 3000:3000 lookacrawler🧪 架构与测试
Incoming URL ──► [Local SQLite Cache Check] ──(Hit)──► Return Cached Markdown
│ (Miss)
▼
[Fast HTTP GET Request] ──(Blocked?)──► [Auto-Escalate to Deep Stealth]
│ │
▼ ▼
[HTML DOM Tree Parser] ◄──────────────────────────┘
│
▼
[Aggressive Token Noise Pruner]
(Strips SVG, Nav, Ads, Tracking, CSS, JS)
│
▼
[Mozilla Readability Engine]
│
▼
[Turndown Markdown Converter] ──► Return Clean LLM Markdown运行测试套件:
bun test⭐ Star 与支持
如果 LookaCrawler 为您节省了 API 费用和 token 成本:
⭐ 为这个仓库标星,帮助其他开发者发现它!
💡 提交 Issue / PR,提出新的 stealth 绕过手段或爬虫功能。
由 LookADev 构建
lookacrawler 由 LookADev 构建和维护,这是一家专注于 AI 智能体、Web 架构和 token 优化的工程工作室。
启动项目 → lookadev.com · 邮箱:lucas@lookadev.com
📄 许可证
开源软件,根据 MIT 许可证 授权。
Available Tools
9 toolsbatch_extract_web_contentA
Batch extract token-optimized Markdown from multiple website URLs concurrently, with aggregate token statistics.
What it does Runs the same fast/deep pipeline as extract_web_content across an array of up to 20 URLs in parallel, then returns per-URL results plus a summary (urls attempted, succeeded, failed, total tokens, and per-page token counts).
How to use
Use when you need many pages at once — docs, a list of product pages, a set of sources to compare.
mode applies to every URL. concurrency (1-10) caps parallel workers; keep it modest on fast machines / low bandwidth.
css_selector is applied to all URLs. headers/cookies/proxy apply globally to every request.
Each URL is independent: a single failure does not abort the batch (results carry an "error" field for that URL).
Returns Structured JSON with per-url markdown/tokens/error and aggregate totals. Incomplete or empty batches still return a valid result object.
Inputs: urls (required), mode, proxy, cookies, +4 more.
crawl_websiteB
Recursively crawl an entire website or documentation section with depth limits, URL pattern filtering, and token accounting.
Inputs: start_url (required), mode, max_depth, max_pages, +4 more.
deep_enrich_leadB
Deeply enrich a business lead by crawling its official website with LookaCrawler's token-optimized engine. Extracts verified emails, social media links (Instagram, LinkedIn), decision makers / founders, and generates a concise Markdown summary (<300 tokens) for LLMs.
Inputs: title (required), website (required), mode, phone, +4 more.
discover_local_leadsA
Discover local businesses, establishments, and B2B prospects using the Google Maps engine. Extracts title, category, formatted address, telephone, WhatsApp link, rating, review count, coordinates, and website URL.
Inputs: query (required), lang, limit, location.
extract_contactsA
Extract verified contact information (emails, phone numbers, WhatsApp links, and social media profiles) from a website and its contact subpages. Drastically saves tokens compared to feeding the entire raw DOM to the LLM.
Inputs: url (required), deep_scan.
extract_structured_dataA
Extract structured JSON — page metadata (Open Graph, canonical URL, author, dates) and/or a custom CSS-selector schema — from a website.
What it does Fetches a URL and returns a structured object. With include_metadata=true it reads Open Graph tags (og:title, og:description, og:image), the canonical URL, author, and publication/modified dates. You can also pass a schema (property name -> CSS selector) to pull specific fields (e.g. {"title": "h1", "price": ".price", "rating": "span.rating"}) into a typed object.
How to use
Use for product listings, news/metadata, schema-driven extraction, and any time you need fields instead of prose.
schema keys become the JSON keys; values are CSS selectors. Leave schema empty to get metadata only.
include_metadata (default true) adds the Open Graph / author / date block. Set false for a lean result.
mode/css_selector/headers/cookies/proxy behave exactly as in extract_web_content.
Returns JSON object with the requested fields (and/or metadata). Missing selectors are omitted rather than failing the whole call. Non-http or private URLs fail with isError: true.
Inputs: url (required), mode, proxy, schema, +5 more.
extract_web_contentA
Extract token-optimized, clean Markdown content from a target website for LLM consumption.
What it does Fetches a URL, strips HTML bloat (scripts, styles, inline SVGs, tracking tags, navigation, footers, redundant forms) and returns readable Markdown — cutting token usage by ~73% to 90% versus the raw page.
How to use
Use for any web page, article, or docs you want as LLM-ready text.
mode="fast" (default): native HTTP GET. mode="deep": headless Chrome with stealth fingerprint for JS-heavy or Cloudflare/Turnstile-protected pages.
css_selector scopes to a single element (e.g. "main", "article", "#content").
Pass headers/cookies for gated or geo-restricted content. Providing any of headers/cookies/proxy bypasses the SQLite cache.
No auth required. Respects robots/rate-limit via retry backoff.
Returns Markdown text. Cache hits are prefixed with a NOTE marker. Unsupported URLs (non-http, private IP, SSRF) fail with isError: true and a reason.
Inputs: url (required), mode, proxy, actions, +6 more.
map_websiteA
Discover the architecture and page inventory of a website domain via sitemaps, robots.txt, and link graphs. Returns a list of URLs with source and modification metadata. Useful for exploring a site before targeted crawling.
Inputs: url (required), max_links.
search_placesA
Search for local businesses, places, and establishments on Google Maps, extracting structured entity data (title, address, phone, website, coordinates, rating).
Inputs: query (required), limit.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Most tools target distinct actions, but two near-duplicate pairs stand out: discover_local_leads vs search_places (both pull the same Google Maps entity fields), and extract_contacts vs deep_enrich_lead (both crawl a business site for emails/socials). Descriptions add some differentiation, but an agent could easily misselect within these pairs.
All names are snake_case and follow a verb_noun pattern (discover_local_leads, extract_contacts, crawl_website, map_website, search_places). Minor compounds like deep_enrich_lead and batch_extract_web_content are still readable and consistent with the convention.
Nine tools is well within the sweet spot for a crawling/scraping server, and each tool covers a distinct capability tier (discovery, extraction, enrichment, batch, site mapping). No obvious padding or redundancy-driven bloat.
The surface covers the full lead-gen lifecycle: place discovery, contact extraction, lead enrichment, content/markdown extraction, recursive crawl, batch, structured extraction, and sitemap discovery. The main gap is a lack of a status/polling or pagination/continuation operation for long-running crawls or large result sets.
Maintenance
Related MCP Connectors
Web pages, PDFs and search results as LLM-ready Markdown or chunks. Firecrawl-compatible, EU-hosted.
Any web page -> clean markdown. Firecrawl-lite, 0.001 USDC/extract (x402, Base), free demo.
Firecrawl, the context API for AI agents: search, scrape, interact with the web, plus paper search.
Cloud scraping & crawling API for AI agents. Turn any URL into clean, LLM-ready markdown.
Related MCP Servers
- AlicenseAqualityCmaintenanceMCP server for web scraping — extract clean markdown, links, and metadata from any URL. Free Firecrawl alternative.5119 npm6MIT
- AlicenseNot gradedqualityDmaintenanceOpen-source web scraper and extraction MCP server with JavaScript rendering, markdown output, PDF/DOCX parsing, structured errors, and validated extraction contract diagnostics for agents.2AGPL 3.0
- AlicenseAqualityBmaintenanceA fault-tolerant, stealth-enabled Model Context Protocol (MCP) server for web searching and content fetching. Built for AI Agents (Cursor, Claude Code, OpenCode), it uses a stealth browser engine to fetch pages, dynamically handles SPAs/React, and converts bloat into token-optimized Markdown.211 npm4MIT
- FlicenseNot gradedqualityAmaintenanceEnables AI agents and LLM pipelines to fetch and crawl websites locally, extract readable content, and convert pages into clean Markdown with preserved links while minimizing token usage.-