LeadDirect-MCP
Decodes Cloudflare-obfuscated email addresses found on websites, including data-cfemail and /cdn-cgi/l/email-protection patterns.
Searches DuckDuckGo to discover B2B companies matching a query and scrapes their websites for contact information such as emails and phone numbers.
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.
LeadDirect-MCP
A local, agentic Model Context Protocol (MCP) server that generates verified, direct B2B contacts with zero paid API subscriptions while slashing LLM context token consumption by over 80%.
LeadDirect connects your AI assistant (Antigravity, Claude Desktop, Cursor, or local Ollama agents) directly to the web. It autonomously discovers company contacts, uncovers hidden B2B gateways via SSL Certificate Transparency logs, extracts corporate identities through Schema.org microdata, decodes obfuscated emails, and verifies deliverability via zero-bounce SMTP checks.
Built for Immediate Business ROI: LeadDirect replaces $50–$200/month B2B data subscriptions (such as Apollo, Clay, or Hunter) by executing live OSINT discovery and zero-bounce email verification locally on your machine at zero recurring cost.
⚡ Token Effectiveness & Benchmark
AI coding agents and LLMs operating unconstrained web-scraping loops suffer from context window exhaustion (ingesting thousands of tokens of noisy HTML, broken links, directory listings, and catch-all permutations).
LeadDirect pairs MCP backend tools with structured Agent Skills to solve this:
10-Lead B2B Campaign Benchmark
Phase | Standard / Unconstrained Loop | LeadDirect + Skills & OSINT | Token Savings |
1. Search & Discovery | ~1,250 tokens(Ingests raw HTML, SEO blogs, and directory links like Yelp/Clutch) | ~350 tokens(Agent uses Dorking Skill; returns only verified corporate homepages) | -72% |
2. Error Handling & Retries | ~900 tokens(Retries on broken file paths or blocked endpoints) | 0 tokens(Portable output directory & resilient fallbacks) | -100% |
3. Contact Enrichment | ~2,200 tokens(Dumps un-sanitized HTML and false-positive catch-all guesses) | ~450 tokens(Clean JSON: extracts verified direct emails & Schema.org data) | -80% |
4. Agent Reasoning & Synthesis | ~1,400 tokens(Disambiguates 50+ redundant candidate permutations) | ~300 tokens(Agent receives pre-structured, high-confidence rows) | -78% |
Total Context Spent | ~5,750 tokens | ~1,100 tokens | ~81% Total Reduction |
Related MCP server: genpark-b2b-lead-waterfall-enrichment-cascade-skill
📁 Project Structure
leaddirect-mcp/
├── skills/
│ ├── b2b-lead-scout/
│ │ └── SKILL.md # Query dorking, Google Maps channel routing & token budgeting
│ └── osint-lead-enrichment/
│ └── SKILL.md # Subdomain mapping, social profile extraction & validation
├── output/ # Auto-created portable directory for CSV leads exports
├── server.py # FastMCP Server exposing 4 core tools (DDG, Maps, Verify, OSINT)
├── lead_hunter.py # 2-Tier hybrid engine (curl_cffi + Playwright) & Google Maps scraper
├── agent.py # Autonomous agent runner for local LLMs (Ollama / Qwen)
├── run_search.py # Standalone CLI runner with targeted query batches
├── requirements.txt # Core Python dependencies
└── README.md # Project documentation & benchmarks🛠️ MCP Tools Reference
LeadDirect exposes four native MCP tools powered by a 2-Tier Hybrid Scraping Waterfall (curl_cffi + BeautifulSoup4 fast-pass -> Playwright dynamic fallback):
1. find_distributors
Input:
query(str),target_leads(int)What it does: Searches DuckDuckGo for national/global B2B companies, applies anti-directory dorking filters, extracts emails and phone numbers, saves results directly to
output/leads_output.csv, and outputs a compact Markdown table.
2. search_google_maps_b2b (New)
Input:
query(str),target_leads(int)What it does: Scrapes Google Maps for local/regional B2B businesses, physical warehouses, and equipment dealers. Extracts company name, website domain, phone number, physical street address, and business category directly to CSV with zero Google Cloud API keys.
3. enrich_and_verify_contact
Input:
domain(str),first_name(optional),last_name(optional),website_url(optional)What it does: Deep-scrapes company pages using the 2-tier waterfall, extracts social media profiles (LinkedIn, Instagram, Facebook, TikTok, X), decodes Cloudflare XOR-protected emails (
data-cfemail), generates executive email permutations, and performs direct zero-bounce SMTP verification with catch-all bounce defense.
4. osint_recon_domain
Input:
domain(str)What it does: Performs zero-cost, API-key-free OSINT reconnaissance:
SSL Certificate Transparency (crt.sh): Enumerates hidden B2B subdomains (
wholesale.*,b2b.*,dealers.*,portal.*).Mail Infrastructure Fingerprinting: Determines whether the target uses Google Workspace, Microsoft 365, Zoho, or self-hosted SMTP via DNS MX records.
Schema.org JSON-LD Extraction: Scrapes structured corporate metadata including legal company name, direct phone, and official social media URLs.
📦 Prerequisites & Quick Setup
1. Prerequisites
Python (3.10+)
Git
An MCP-compatible client (Antigravity CLI / IDE, Claude Desktop, Cursor) or a local Ollama setup.
2. Manual Installation
Clone the repository, install Python dependencies, and install the headless browser binary for Playwright:
git clone https://github.com/netizen4-bit/leaddirect-mcp.git
cd leaddirect-mcp
pip install -r requirements.txt
playwright install chromium3. Automatic installation of local LeadDirect MCP server using Antigravity app
If you are using Google Antigravity, you can install and configure LeadDirect MCP completely automatically with zero manual steps. Simply paste the following prompt directly into your Antigravity chat:
Install and configure the LeadDirect MCP server into my Antigravity setup:
1. Clone or pull the repository from https://github.com/netizen4-bit/leaddirect-mcp into a permanent directory at `~/.gemini/antigravity/leaddirect-mcp`.
2. Automatically install all missing Python dependencies from `requirements.txt` (`pip install -r requirements.txt`) and ensure Playwright Chromium is installed (`playwright install chromium`).
3. Register the server in Antigravity's global MCP configuration (`~/.gemini/config/mcp_config.json`):
- Server name: `leaddirect`
- Command: `python`
- Args: Full absolute path to `server.py` (ensure Windows backslashes are escaped)
- Environment variables: Set `LEADDIRECT_CSV_OUTPUT` to the absolute path of `output/leads_output.csv` inside the repo.
4. Copy the bundled agent skills (`skills/b2b-lead-scout` and `skills/osint-lead-enrichment`) into `~/.gemini/config/skills/`.
5. Run a sanity check to verify that `server.py` imports cleanly, and confirm once all 4 MCP tools are registered.The agent will pull the repo, configure mcp_config.json, install all packages and Playwright browser binaries, mount the agent skills, and verify the tools end-to-end.
💻 Standalone CLI Runners (No IDE Required)
LeadDirect includes native CLI runners so you can execute lead discovery completely standalone without a desktop AI interface:
1. Autonomous Agent with Local LLM (agent.py)
Runs an autonomous lead generation agent connected to your local Ollama instance (e.g. qwen2.5:7b):
# Ensure Ollama is running, then launch:
python agent.pyType your objective directly into the terminal prompt (e.g. "Find 5 precision agriculture equipment distributors in Ontario").
2. Standalone Batch Query Runner (run_search.py)
Executes targeted, multi-query distributor discovery batches directly and exports clean data to CSV:
python run_search.py(Results are automatically saved to output/leads_output.csv).
🔌 Connecting to Your AI Client (MCP Configuration)
Add LeadDirect to your MCP configuration file (e.g. claude_desktop_config.json or your Antigravity / Cursor MCP configuration).
⚠️ Note on Windows Paths: In JSON strings, backslashes must be escaped (
\\) or written with forward slashes (/) to prevent invalid escape errors (\U,\P,\l).
{
"mcpServers": {
"leaddirect": {
"command": "python",
"args": [
"C:\\YOUR\\PATH\\TO\\leaddirect-mcp\\server.py"
],
"env": {
"LEADDIRECT_CSV_OUTPUT": "C:\\YOUR\\PATH\\TO\\leaddirect-mcp\\output\\leads_output.csv"
}
}
}
}(Alternative Windows escaped backslashes:
"C:\\YOUR\\PATH\\TO\\leaddirect-mcp\\server.py")(macOS / Linux:
"/Users/YOUR_NAME/Documents/leaddirect-mcp/server.py")
🧠 Using the Built-in Agent Skills
LeadDirect includes native Agent Skills under skills/:
b2b-lead-scout: Teaches your agent how to formulate high-precision search dorks (e.g.-site:clutch.co -site:yelp.com ("become a distributor" OR "wholesale inquiry")) to avoid directory junk.osint-lead-enrichment: Guides the agent to run subdomain discovery and mail provider checks before guessing employee email patterns.
To install the skills directly into Claude Code or compatible agents:
npx skills add netizen4-bit/leaddirect-mcp --skill b2b-lead-scout
npx skills add netizen4-bit/leaddirect-mcp --skill osint-lead-enrichment📄 License
Distributed under the MIT License. See LICENSE for more information.
☕ Support & Custom B2B Consulting
Support Open-Source Development: If LeadDirect-MCP saves your team from monthly SaaS subscriptions or cuts your LLM token spend, consider backing ongoing development. Your support keeps these local AI and AGENTIC tools free and actively maintained.
💼 Need a Custom B2B Scraping or Agentic Pipeline? Need a tailored MCP server, private OSINT enrichment module, or autonomous workflow built specifically for your company? Reach out via Linkedin for custom integration and consulting.
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
Find B2B leads, check every email, write and send campaigns and sort replies from your own AI.
B2B lead generation, email verification, company enrichment, and agentic GTM Ops.
Find B2B leads with verified work emails, find and verify emails, and run cold email outreach.
B2B lead and company intelligence: search leads, enrich contacts, and queue outreach.
Related MCP Servers
- AlicenseAqualityDmaintenanceFinds and verifies business email addresses using DNS/SMTP verification and web scraping, with no external API costs.522 npm12MIT
- FlicenseNot gradedqualityBmaintenanceEnables autonomous B2B lead enrichment through a waterfall cascade and technographic stack verification, producing structured output dossiers for AI agents and enterprise pipelines.8-
- AlicenseNot gradedqualityCmaintenanceEnables targeted B2B lead discovery, DNS MX deliverability verification, and extraction of web content into clean Markdown for AI agents.MIT
- AlicenseNot gradedqualityCmaintenanceEnables automated B2B lead generation and personalized cold email outreach with self-improving campaign monitoring.MIT