Skip to main content
Glama

LeadDirect-MCP

A local Model Context Protocol (MCP) tool, for Agentic Workflow that generates verified, direct B2B contacts while minimizing LLM token spend. Built specifically for Small Companies and Startups to run completely locally and privately.

LeadDirect connects your AI assistant directly to the web. It autonomously discovers company contacts, scrapes homepages, and decodes hidden data to extract direct employee email addresses (going beyond generic info@ or sales@ inboxes). Additionally, it captures key social media and communication linksβ€”including LinkedIn, WhatsApp, Facebook, and Instagramβ€”and verifies that the emails are active, all without expensive API subscriptions.


πŸ› οΈ Prerequisites

Before installing, you need a few basic tools installed on your computer:

  1. Python (3.10+) β€” The programming language this runs on.

  2. Git for Windows/Mac β€” Used to download this repository.

  3. An MCP-Compatible AI Client β€” You need an AI to command the scraper. Choose one:


Related MCP server: Prospector MCP

πŸš€ Quick Start Guide

Open your terminal (Command Prompt or PowerShell on Windows, or Terminal on Mac/Linux) and run these commands:

git clone https://github.com/netizen4-bit/leaddirect-mcp
cd leaddirect-mcp
pip install -r requirements.txt

πŸ”— Connecting to your AI (MCP Client Configuration)

To let your AI use this scraper, you must tell it where this folder is located on your computer.

Add LeadDirect to your MCP client configuration file (e.g., claude_desktop_config.json):

⚠️ IMPORTANT: You MUST replace the args path below with the exact location where you downloaded this folder on your computer.

{
  "mcpServers": {
    "leaddirect": {
      "command": "python",
      "args": ["C:\\YOUR\\EXACT\\PATH\\HERE\\leaddirect-mcp\\server.py"]
    }
  }
}
  • (Example for Windows: "C:\\Users\\YOUR_NAME\\Documents\\leaddirect-mcp\\server.py")

  • (Example for Mac/Linux: "/Users/YOUR_NAME/Documents/leaddirect-mcp/server.py")


πŸ“ Project Structure

leaddirect-mcp/
β”œβ”€β”€ server.py          # The core Bridge. Connects the tools to your AI client.
β”œβ”€β”€ agent.py           # The Agent. Designed for Local LLM. Connects directly to local Ollama setups.
β”œβ”€β”€ lead_hunter.py     # The scraping engine (the tool) that executes web searches.
β”œβ”€β”€ run_search.py      # A manual terminal runner for testing outside of an AI environment.
β”œβ”€β”€ requirements.txt   # Python dependencies
└── README.md          # Project documentation

🧰 Tools Reference & Prompting

🧠 How to Structure High-Converting Prompts

Because LeadDirect operates autonomously, the quality of your leads depends on strict filtering instructions:

  1. Target & Geography: The niche and specific country/region.

  2. Local Language Keywords: Use local native terms for foreign markets (e.g., semi-remorque surbaissΓ©e for France).

  3. Negative Constraints (Crucial): Explicitly list large global brands and aggregator portals to skip.

  4. Qualification Rules: Specify that the site must sell physical products directly.


⚠️ Pro-Tip: How to Get DIRECT Emails (Not just info@)

Because of spam, modern companies rarely put employee emails directly on their public websites.

Tool #1 (find_distributors) gathers public domain data. To get direct contacts, instruct your AI client to chain both tools in a two-step process:

The Chained Prompt Formula:

"I need 5 B2B contacts for [Niche Product] dealers in [Target Country].

Step 1: Use your search tool to find the companies. Skip big brands like [Giant Brand 1].

Step 2: Once you have the domains, use your enrich_and_verify_contact tool on each domain to generate and test direct employee email permutations (e.g., first.last@domain.com, director@domain.com) so I get direct contacts, not just the generic info@ emails.

Put the final results in a table, including their social media links."


πŸ“„ License

Distributed under the MIT License. See LICENSE for more information.

Maintenance

ActivityMaintained
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    D
    maintenance
    Finds and verifies business email addresses using DNS/SMTP verification and web scraping, with no external API costs.
    5
    11
    11
    MIT
  • A
    license
    B
    quality
    D
    maintenance
    Enables AI-assisted B2B lead generation by discovering, extracting, scoring, and exporting company leads from any MCP-compatible agent.
    3
    15
    MIT
  • F
    license
    Not graded
    quality
    B
    maintenance
    Enables autonomous B2B lead enrichment through a waterfall cascade and technographic stack verification, producing structured output dossiers for AI agents and enterprise pipelines.
    8
    -