Headless Lead Scraping MCP Server
Enables searching DuckDuckGo search results as a source for web lead discovery.
Provides tools for searching Google Maps to find local places and businesses, retrieving details such as name, address, phone number, website, and ratings.
Enables searching Startpage search results as an additional fallback source for lead discovery.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Headless Lead Scraping MCP Server Find software development companies in Austin with email and export to CSV."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Headless Lead Scraping MCP Server v0.4.0
A UI-free MCP server for real-time public-web lead research with no search API provider, no Tavily key, and no hosted scraping service.
What it does
Searches Google Maps first (browser-rendered) for local places — returns name, address, phone, and official website.
Then searches web search engines (Yahoo, DuckDuckGo, Bing) directly at request time, with no search API key.
Then searches related search engines (Startpage, browser-rendered) as an extra fallback source.
Fetches target websites directly over HTTP.
Falls back to headless Chromium/Playwright for JavaScript-rendered pages.
Crawls relevant internal contact/about/team/social pages.
Uses the configured LLM through the Vercel AI SDK for structured extraction and verification.
Deduplicates results and filters by required fields.
Stores leads locally in
data/leads.jsonl.Filters stored leads and exports them as CSV or JSON files.
Exposes everything as MCP tools over stdio.
Related MCP server: Forage-mcp
Data-source priority
Sources are tried in order until enough results are found:
Google Maps (
googlemaps) — browser-renderedgoogle.com/maps/search/; best for local businesses/product companies (name, address, phone, website, rating).Web search engines — Yahoo, DuckDuckGo, Bing (
yahoo,duckduckgo,bing).Related search engines — Startpage (
startpage, browser-rendered) for additional coverage.
The order is configurable via SEARCH_ENGINES (comma-separated). Maps-related settings: MAPS_SEARCH_URL, MAPS_MAX_RESULTS.
No external data API
There is no Tavily, Bing Search API, Google Search API, SerpAPI, Apify, Bright Data, or hosted scraper in this version.
The server performs search by requesting normal public search-result webpages and Google Maps search pages directly. Engines that respond with a CAPTCHA or bot-challenge page are skipped automatically. This means there is no API account or API key for search, but a public search website is still necessarily involved: the open Internet has no universal built-in index that a standalone program can query without using some indexed search source or already-known URLs.
If a search website blocks automated requests, the server cannot and does not bypass CAPTCHA, login, paywalls, robots directives, rate limits, or access controls.
LLM
The only required AI dependency is your LLM endpoint. The server supports OpenAI-compatible endpoints, including:
Ollama
LM Studio
OpenAI
other OpenAI-compatible local/self-hosted endpoints
For maximum independence, use Ollama or LM Studio locally.
Playwright
Playwright is the browser engine, not a lead-data provider. It is used only when a normal HTTP fetch cannot obtain the rendered page content or when browser rendering is explicitly requested.
Install Chromium:
npm install
npx playwright install chromiumInstall
cp .env.example .env
npm install
npx playwright install chromium
npm run build
npm startFor development:
npm run devOllama
ollama pull qwen3.env:
LLM_PROVIDER=ollama
LLM_MODEL=qwen3
LLM_BASE_URL=http://127.0.0.1:11434/v1
LLM_API_KEY=ollamaLM Studio
Start a local OpenAI-compatible server in LM Studio and set:
LLM_PROVIDER=lmstudio
LLM_MODEL=YOUR_LOADED_MODEL_ID
LLM_BASE_URL=http://127.0.0.1:1234/v1
LLM_API_KEY=lm-studioMCP tools
search_web— live web search in priority order (Google Maps, then web engines, then related engines); optionalenginesparam.scrape_page— HTTP fetch + Playwright fallback.extract_leads— LLM extraction from supplied page content.find_leads— Google Maps place discovery first, then web + related engine search; crawls, extracts, verifies, deduplicates, filters byrequiredFields, stores.list_stored_leads— read locally stored records.filter_leads— filter stored leads by keyword, field presence, and minimum confidence.export_leads— write stored leads (optionally filtered) to a CSV or JSON file on disk.clear_stored_leads— clear local records.
Example
{
"query": "software development companies",
"location": "California, USA",
"limit": 25,
"requiredFields": ["name", "website", "email"],
"maxSearchQueries": 8
}requiredFields filters out any lead missing all of the listed fields. Default is ["name"].
Export example:
{
"format": "csv",
"hasEmail": true,
"minConfidence": "medium",
"filename": "california-leads"
}This writes data/california-leads.csv (or .json for format: "json") and returns the file path and row count.
Stored data
Default:
data/leads.jsonlNo hosted database is required. The file is local to the MCP server process.
Important limitation
A truly provider-free program cannot discover arbitrary Internet resources from nothing: search requires an index or known URLs. This project removes search APIs and hosted scraping providers and performs live search-page retrieval itself. It does not pretend that the Internet has a universal local index.
Only publicly accessible information is collected. The server does not bypass authentication, CAPTCHA, paywalls, robots/access controls, or other security mechanisms.
Available Tools
8 toolsclear_stored_leadsClear Stored LeadsA
Delete all locally stored lead records.
Inputs: confirm (required). Returns: cleared
export_leadsExport LeadsB
Export stored leads (optionally filtered) to a CSV or JSON file on disk.
Inputs: format, keyword, filename, hasEmail, +8 more. Returns: path, count, format
extract_leadsExtract LeadsB
Extract supported lead fields from supplied public page content using the configured LLM.
Inputs: content (required), sourceUrl (required). Returns: leads
filter_leadsFilter LeadsA
Filter stored leads by keyword, required field presence, and minimum confidence.
Inputs: limit, keyword, hasEmail, hasPhone, +7 more. Returns: leads, total
find_leadsFind LeadsA
Find leads in priority order: Google Maps places first (browser-rendered, incl. phone/website/address), then live web search engines, then related search engines. Crawls relevant pages, extracts and verifies leads with the LLM, deduplicates, filters by requiredFields, and stores them locally.
Inputs: query (required), limit, location, requiredFields, +1 more. Returns: leads, total
list_stored_leadsList Stored LeadsB
Read leads stored locally by this MCP server.
Inputs: limit. Returns: leads, total
scrape_pageScrape PageB
Fetch a public webpage in real time. Uses HTTP first and Playwright for JavaScript-rendered pages.
Inputs: url (required), waitForMs, useBrowser. Returns: url, text, links, title, +2 more
search_webSearch WebA
Search the live web across prioritized sources: googlemaps (browser-rendered local places) first, then web engines (yahoo, duckduckgo, bing) and related engines (startpage). No search API key or search provider SDK is required.
Inputs: query (required), engines, maxResults. Returns: results
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool has a clear primary purpose, but search_web and find_leads overlap somewhat since find_leads internally uses web search. However, the descriptions clarify that find_leads is a higher-level lead-finding workflow, so ambiguity is limited.
All tool names follow a consistent snake_case verb_noun pattern (search_web, scrape_page, extract_leads, find_leads, list_stored_leads, filter_leads, export_leads, clear_stored_leads). This makes the toolset predictable and easy to navigate.
With 8 tools, the scope is well-balanced: a few for data acquisition, one orchestrator, and several for managing stored leads. It's neither thin nor bloated, and each tool earns its place.
The surface covers lead discovery, extraction, storage, listing, filtering, export, and clearing. Missing individual lead deletion/update is a minor gap, but the core lead management lifecycle is well covered.
Maintenance
Related MCP Connectors
One MCP server for all web data. Scrape, search, crawl, and AI research in one install.
Unified 15-tool SEO, SERP, clean Markdown & GEO (LLM citation Share-of-Voice) MCP server.
Sales MCP server for AI agents: find, enrich, score and reach leads on LinkedIn, track replies.
Real-time Google Maps local business leads, reviews, places & emails MCP. OAuth or API key.
Related MCP Servers
AlicenseBqualityBmaintenanceB2B lead generation MCP server with 20+ lead generation tools - Apollo scraping, Google Maps, email finder, email validator, mobile finder, skip trace, ecommerce store data, and more.252,316 npm2MIT- AlicenseNot gradedqualityDmaintenanceMCP server giving AI agents real-time web search, page scraping, company intelligence, email discovery, local lead generation, and a persistent knowledge graph. Pay only for what you use, no subscriptions.MIT
- AlicenseAqualityDmaintenanceMCP server for web search with LLM-optimized results and anti-detection mechanisms.3MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for multi-engine web search and web page fetching, supporting parallel search, content extraction, and optional LLM-powered search summarization and deep search.6MIT