B2B Lead Generation MCP - Verified Emails, Phones, Enrichment avatar

B2B Lead Generation MCP - Verified Emails, Phones, Enrichment

Pricing

from $50.00 / 1,000 company scrapeds

Go to Apify Store
B2B Lead Generation MCP - Verified Emails, Phones, Enrichment

B2B Lead Generation MCP - Verified Emails, Phones, Enrichment

B2B lead generation MCP for AI agents: find and enrich companies and decision makers with verified contact details, quality scoring, and CSV/JSON/XLSX export for outbound sales and partnerships.

Pricing

from $50.00 / 1,000 company scrapeds

Rating

0.0

(0)

Developer

AutomateLab

AutomateLab

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Features

Limited permissions

Share

B2B Lead Gen Suite MCP

Apify Actor License: MIT Node

Comprehensive B2B lead generation suite for scraping company info, contacts, and generating qualified leads from LinkedIn, company websites, and business directories.

🎯 Overview

B2B Lead Gen Suite MCP is an AI-agent-optimized actor that provides enterprise-grade lead generation capabilities with Pay-Per-Event (PPE) pricing. It implements handleRunFunction with four core operations: scrapeCompanies, scrapeContacts, generateLeads, and exportCSV.

How it compares: unlike single-source lead scrapers, b2b-lead-gen-suite-mcp combines company discovery, decision-maker contact enrichment (verified emails and phones), quality scoring, and CRM-ready CSV/JSON/XLSX export in one MCP server — see the full listing on ScraperFleet.

Key Features

  • Multi-Source Scraping: LinkedIn, company websites, business directories
  • PPE (Pay-Per-Event) Pricing: Only pay for successful extractions
  • handleRunFunction API: Simple operation dispatcher for AI agents
  • ERROR_RETRY Handling: Exponential backoff with 3 retry attempts
  • Agent Handshake: <5 second smoke test with FREE compute
  • CSV/JSON Export: Flexible export formats for CRM integration

⚡ Quick Start

1. Installation

# Navigate to project directory
cd ~/Projects/apify-actors/b2b-lead-gen-suite-mcp
# Install dependencies
npm install

2. Local Development

# Run locally with Apify SDK
apify run
# Or set input via environment
APIFY_INPUT_DEFAULT={"operation":"generateLeads","queries":["Software Engineer at Google"],"maxResults":5} npx apify run

3. Push to Apify

$apify push

📋 Input Schema

Core Parameters

ParameterTypeDescriptionDefault
operationstringOperation to perform: scrapeCompanies, scrapeContacts, generateLeads, exportCSVgenerateLeads
sourcesarraySources to scrape: linkedin, company_websites, business_directories, all["linkedin"]
queriesarraySearch terms for lead generation["Tech companies in San Francisco"]
maxResultsintegerMaximum results per operation (1-1000)10
companyDomainsarrayList of company domains (e.g., ["google.com", "microsoft.com"])[]
linkedInUrlsarrayLinkedIn profile URLs for contact scraping[]
exportFormatstringExport format: csv, json, xlsxcsv
includeHeadersbooleanInclude column headers in CSV exporttrue
proxyTypestringProxy type: DATACENTER, RESIDENTIALDATACENTER
debugModebooleanEnable minimal extraction for testing (300s max)false
checkOnlyboolean5-second handshake test (FREE compute)false

Example Input

{
"operation": "generateLeads",
"sources": ["linkedin", "company_websites"],
"queries": ["Software Engineer at Google", "Product Manager at Microsoft"],
"maxResults": 20,
"companyDomains": ["google.com", "microsoft.com"],
"exportFormat": "csv",
"includeHeaders": true,
"proxyType": "RESIDENTIAL",
"debugMode": false,
"checkOnly": false
}

🔧 handleRunFunction API

The handleRunFunction provides a simple dispatcher for all operations:

Operations

1. scrapeCompanies

Extract company information from multiple sources.

{
"operation": "scrapeCompanies",
"sources": ["linkedin", "company_websites", "business_directories"],
"companyDomains": ["google.com", "apple.com"],
"maxResults": 50
}

Returns: Array of company objects with id, name, domain, industry, size, location, linkedinUrl, source, scrapedAt.

2. scrapeContacts

Extract contact information from LinkedIn profiles.

{
"operation": "scrapeContacts",
"linkedInUrls": [
"https://www.linkedin.com/in/johndoe",
"https://www.linkedin.com/in/janesmith"
],
"maxResults": 25
}

Returns: Array of contact objects with id, fullName, jobTitle, company, email, phone, linkedinUrl, location, source, scrapedAt.

3. generateLeads

Generate qualified B2B leads from multiple sources.

{
"operation": "generateLeads",
"sources": ["linkedin", "company_websites"],
"queries": ["Software Engineer at Google", "Data Scientist at Meta"],
"maxResults": 100,
"companyDomains": ["google.com", "meta.com"]
}

Returns: Array of lead objects with id, fullName, jobTitle, company, email, linkedinUrl, source, quality, generatedAt.

4. exportCSV

Export results to CSV or JSON format.

{
"operation": "exportCSV",
"results": [], // Uses generateLeads if empty
"exportFormat": "csv",
"includeHeaders": true,
"queries": ["Tech companies"],
"maxResults": 50
}

Returns: Export file with filename, format, recordCount, exportedAt.

💰 PPE Pricing

This actor uses Pay-Per-Event (PPE) pricing model. You only pay for successful extractions:

EventFREE TierBRONZESILVERGOLD
Actor Start$0.00005$0.00005$0.00005$0.00005
Company Scraped$0.05$0.035$0.02$0.01
Contact Scraped$0.08$0.055$0.03$0.015
Lead Generated$0.10$0.075$0.04$0.02
CSV Exported$0.02$0.02$0.02$0.02

Zero-Result Guard

PPE charging only occurs when actual data is extracted. If no results are found, no charges are applied.

🔄 ERROR_RETRY Handling

The actor implements robust error handling with exponential backoff:

async function withRetry(fn, maxRetries = 3, baseDelayMs = 1000) {
for (let attempt = 1; attempt <= maxRetries; attempt++) {
try {
return await fn();
} catch (error) {
if (attempt < maxRetries) {
const delay = baseDelayMs * Math.pow(2, attempt - 1);
await sleep(delay);
}
}
}
throw lastError;
}

Retry Conditions

  • Network timeouts
  • Rate limiting (429 responses)
  • Temporary server errors (5xx)
  • CAPTCHA detection with fallback

🤖 AI Agent Integration

5-Second Handshake

For AI agent smoke tests, use checkOnly: true:

{
"checkOnly": true,
"maxResults": 10
}

Returns readiness status in <5 seconds with FREE compute.

handleRunFunction Example

const result = await handleRunFunction({
operation: 'generateLeads',
sources: ['linkedin'],
queries: ['Software Engineer at Google'],
maxResults: 50,
proxyType: 'RESIDENTIAL'
});

📊 Output Schema

All operations return:

{
"success": true,
"operation": "generateLeads",
"results": [...],
"resultsCount": 50,
"exportedFile": "",
"charges": [],
"scrapedAt": "2026-05-19T21:00:00.000Z",
"durationMs": 2500
}

Result Objects

Company:

{
"id": "lead_123456_abc123",
"name": "Google",
"domain": "google.com",
"linkedinUrl": "https://linkedin.com/company/google",
"industry": "Technology",
"size": "10000+",
"location": "Mountain View, CA",
"source": "linkedin",
"scrapedAt": "2026-05-19T21:00:00.000Z"
}

Contact:

{
"id": "lead_123456_def456",
"fullName": "John Doe",
"jobTitle": "Software Engineer",
"company": "Google",
"email": "john.doe@example.com",
"phone": "+1-555-0100",
"linkedinUrl": "https://linkedin.com/in/johndoe",
"location": "San Francisco, CA",
"source": "linkedin",
"scrapedAt": "2026-05-19T21:00:00.000Z"
}

Lead:

{
"id": "lead_123456_ghi789",
"fullName": "Jane Smith",
"jobTitle": "Product Manager",
"company": "Microsoft",
"email": "jane.smith@example.com",
"linkedinUrl": "https://linkedin.com/in/janesmith",
"source": "google_serp_linkedin",
"quality": "high",
"generatedAt": "2026-05-19T21:00:00.000Z"
}

🚀 Usage Examples

Basic Lead Generation

apify run -c '{
"operation": "generateLeads",
"queries": ["Software Engineer at Google"],
"maxResults": 10
}'

Scrape Multiple Companies

{
"operation": "scrapeCompanies",
"sources": ["linkedin", "company_websites"],
"companyDomains": ["google.com", "microsoft.com", "apple.com"],
"maxResults": 50,
"proxyType": "RESIDENTIAL"
}

Contact Discovery

{
"operation": "scrapeContacts",
"linkedInUrls": [
"https://www.linkedin.com/in/johndoe",
"https://www.linkedin.com/in/janesmith",
"https://www.linkedin.com/in/bobwilson"
],
"maxResults": 25
}

Export to CSV

{
"operation": "exportCSV",
"results": [], // Uses generateLeads if empty
"exportFormat": "csv",
"includeHeaders": true,
"queries": ["Tech companies in San Francisco"],
"maxResults": 100
}

🛠️ Configuration

Proxy Configuration

TypeUse CaseCost
DATACENTERGeneral web scraping, fasterLower
RESIDENTIALHigh-security targets (LinkedIn)Higher

Debug Mode

Enable debugMode: true for:

  • Minimal extraction (max 2 results)
  • Faster proxy (DATACENTER)
  • 300-second timeout compliance
  • Health check verification

📝 Error Handling

ErrorCauseSolution
EXTRACTION_ERRORProfile blocked/privateUse RESIDENTIAL proxy
RATE_LIMIT_ERRORToo many requestsReduce concurrency, wait
NETWORK_ERRORConnectivity issueCheck connection, retry
CAPTCHA_BLOCKEDGoogle/LinkedIn CAPTCHAUse RESIDENTIAL proxies
AUTH_WALLLinkedIn login requiredUse Google SERP fallback

Data Source: LinkedIn, company websites, business directories

Terms of Service: This actor is for legitimate data collection only. Users must comply with target platform ToS and applicable laws.

Privacy: All extracted data is processed per applicable privacy laws. Do not use for unauthorized collection.

Attribution: Comply with data source attribution requirements.

Comparison

If you're comparing B2B lead generation MCP actors on the Apify Store, compare what a run charges when it finds nothing. B2B Lead Gen Suite MCP runs Pay-Per-Event with a zero-result guard: a run that extracts nothing charges nothing beyond the $0.00005 Actor Start fee. It bills only on successful extractions ($0.05 per company, $0.08 per contact, $0.10 per qualified lead on the free tier, dropping to $0.01/$0.015/$0.02 on GOLD), and ships ERROR_RETRY handling, a 5-second AI-agent handshake, and handleRunFunction operations (scrapeCompanies, scrapeContacts, generateLeads, exportCSV) in one MCP server.

Pair-it-with: Company Intelligence MCP does the due diligence on the companies you shortlist; producthunt-scraper sits at the top of the same funnel, surfacing the companies worth running through it.

❓ FAQ

How does billing work? Pay-Per-Event: you only pay for successful extractions — $0.05 per company, $0.08 per contact, $0.10 per qualified lead, $0.02 per CSV export, plus a $0.00005 Actor Start fee. The zero-result guard means a run that extracts nothing charges nothing beyond the start fee.

Is there a free way to test the actor? Yes — send { "checkOnly": true } and the actor returns a readiness status in under 5 seconds with free compute. Use it for smoke tests before wiring the actor into an agent.

What operations can I run? Four: scrapeCompanies (company profiles by domain), scrapeContacts (contacts from LinkedIn profile URLs), generateLeads (qualified leads from search queries), and exportCSV (package results for download).

Which sources does it pull from? linkedin, company_websites, and business_directories — pass one or more, or "all". Each result carries its source field so you can see where every row came from.

What fields do I get per company and per contact? Companies: name, domain, industry, size, location, and LinkedIn URL. Contacts: full name, job title, company, email, phone, LinkedIn URL, and location.

How do I export the results? Set operation: "exportCSV" with exportFormat of csv, json, or xlsx, and includeHeaders for column headers. Or export from the run's dataset directly — every result is pushed there in real time.

Which proxy should I choose? DATACENTER is the default and works for most public pages. Switch to RESIDENTIAL for sources that throttle datacenter traffic; expect slower but steadier extraction.

What happens when a source fails mid-run? Every extraction is wrapped in retry logic: up to 3 attempts with exponential backoff, covering network timeouts, 429 rate limits, 5xx server errors, and CAPTCHA detection with fallback.

How do I cap spend on a big run? Bound the run with maxResults (1-1000) — you are charged per successfully extracted item, so the cap sets your ceiling. debugMode runs a minimal extraction for cheap end-to-end tests.

Can I point it at specific companies only? Yes — pass companyDomains (e.g. ["google.com", "microsoft.com"]) with scrapeCompanies or generateLeads, and linkedInUrls with scrapeContacts for per-profile extraction.

Is this compliant to use? It is for legitimate data collection only: comply with target platform terms of service, applicable privacy laws, and data source attribution requirements.

📄 License

MIT License - see LICENSE file for details.


Pair it with NPI Registry Pro — turn any target company list into named healthcare-provider contacts from CMS’s free 8.7M-provider registry.

B2B Lead Gen Suite MCP on the Apify Store — part of the ScraperFleet actor family.