Skip to main content
Glama
Local Business Phone & WhatsApp Scraper MCP Server

Local Business Phone & WhatsApp Scraper MCP Server

by deepakshe

Local Business Phone & WhatsApp Scraper MCP Server & Python API

Apify Store deepakshe/local-business-website-phone-whatsapp-scraper-mcp-api MCP server MCP Server License: MIT Hub

Extract validated phone numbers, WhatsApp links, and direct contact emails from local business websites. MCP Server & Python SDK.


⚑ Instant Normalized Output (Sample JSON)

[
  {
    "website": "https://example-dentist.com",
    "phone_numbers": [
      "+1-555-0199"
    ],
    "whatsapp_urls": [
      "https://wa.me/15550199"
    ],
    "emails": [
      "info@example-dentist.com"
    ]
  }
]

Related MCP server: FlyCrawl MCP Server

πŸ€– 1-Click MCP Config (Claude Desktop, Cursor, Windsurf)

{
  "mcpServers": {
    "local-business-website-phone-whatsapp-scraper": {
      "command": "npx",
      "args": ["-y", "@apify/actors-mcp-server", "--actors", "deepaksheoran172/local-business-website-phone-whatsapp-scraper"],
      "env": {
        "APIFY_TOKEN": "YOUR_APIFY_TOKEN"
      }
    }
  }
}
  • Remote Streamable HTTP MCP: https://mcp.apify.com/?tools=deepaksheoran172/local-business-website-phone-whatsapp-scraper

  • AI Crawler Spec (llms.txt): llms.txt


⚑ The Problem vs. The Solution

Scraping local directories often misses direct communication channels. This tool crawls headers, footers, and contact pages using regex and DOM parsing to harvest WhatsApp click-to-chat links, direct landlines, and owner emails.

  • Zero-Proxy Architecture: Pure asynchronous execution designed for extreme speed (<50MB RAM).

  • Multi-Interface Support: Run via pure Python SDK, cURL, Node.js fetch, n8n / Make.com workflow, or Claude / Cursor MCP Agent.

  • Production Reliable: Backed by Apify's serverless infrastructure with 99.9% uptime SLA.


πŸš€ Quickstart: 1-Line cURL (Test in 2 Seconds)

curl -X POST "https://api.apify.com/v2/acts/deepaksheoran172~local-business-website-phone-whatsapp-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{\"websites\": [\"https://example-dentist.com\", \"https://example-plumbing.com\"]}'

πŸš€ Quickstart: Pure Python (Zero-Dependency)

No third-party SDKs required. Run directly with Python standard library:

import json
import os
import urllib.request

APIFY_TOKEN = os.getenv("APIFY_TOKEN", "YOUR_APIFY_TOKEN")
ACTOR_URL = "https://api.apify.com/v2/acts/deepaksheoran172~local-business-website-phone-whatsapp-scraper/run-sync-get-dataset-items?token=" + APIFY_TOKEN

payload = {
  "websites": [
    "https://example-dentist.com",
    "https://example-plumbing.com"
  ]
}

req = urllib.request.Request(
    ACTOR_URL,
    data=json.dumps(payload).encode("utf-8"),
    headers={"Content-Type": "application/json"},
    method="POST"
)

with urllib.request.urlopen(req, timeout=120) as resp:
    results = json.loads(resp.read().decode("utf-8"))
    print(f"Retrieved {len(results)} items:")
    print(json.dumps(results[:2], indent=2))

🌐 Quickstart: Node.js / TypeScript

const APIFY_TOKEN = process.env.APIFY_TOKEN || 'YOUR_APIFY_TOKEN';
const ACTOR_URL = `https://api.apify.com/v2/acts/deepaksheoran172~local-business-website-phone-whatsapp-scraper/run-sync-get-dataset-items?token=${APIFY_TOKEN}`;

const payload = {
  "websites": [
    "https://example-dentist.com",
    "https://example-plumbing.com"
  ]
};

async function run() {
  const res = await fetch(ACTOR_URL, {
    method: 'POST',
    headers: { 'Content-Type': 'application/json' },
    body: JSON.stringify(payload)
  });
  const items = await res.json();
  console.log(`Received ${items.length} records:`, items.slice(0, 2));
}

run().catch(console.error);

πŸ€– Claude Desktop & Cursor MCP Server Setup

Add this actor to your claude_desktop_config.json to allow Claude / Cursor AI agents to execute it autonomously:

{
  "mcpServers": {
    "local-business-website-phone-whatsapp-scraper": {
      "command": "npx",
      "args": ["-y", "@apify/actors-mcp-server"],
      "env": {
        "APIFY_TOKEN": "YOUR_APIFY_TOKEN",
        "ACTOR_NAME": "deepaksheoran172/local-business-website-phone-whatsapp-scraper"
      }
    }
  }
}

πŸ”„ n8n & Make.com Automation

A fully configured production n8n workflow template is bundled in this repository as workflow.json.

  1. In n8n, click Workflow -> Import from File... and select workflow.json.

  2. Provide your APIFY_TOKEN in the environment variables or HTTP Request node.

  3. Schedule it to run daily or trigger on demand from webhooks.


πŸ“Š Output Schema Highlights

Each returned item includes normalized, RFC-compliant fields:

  • website

  • phone_numbers

  • whatsapp_urls

  • emails

  • social_profiles


🏷️ Pricing & 60% Launch Discount

  • Apify Store: Available under pay-per-result pricing with a 60% Launch Discount.

  • Run Online: Test it instantly on the Apify Store Console.

  • Fleet Hub: Explore all 62 enterprise scrapers and MCP servers at b2b-mcp-apify-scrapers-hub.


πŸ›‘οΈ 100% Automated Self-Service & Zero-DM Guarantee

  • Pure Self-Service: Runs autonomously via Apify Cloud API. No sales calls, manual configuration, or onboarding tickets needed.

  • Pay-Per-Result: Only successful output items are billed. Zero-charge on failed executions.

  • API Documentation: For key creation, webhooks, and concurrency settings, see Apify Docs.


πŸ“„ License

MIT License. Free for personal, commercial, and enterprise integration.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      Enables Claude Desktop, Cursor AI, Windsurf, and autonomous LLM agents to scrape, crawl, map, search, and extract validated JSON from live web pages with dynamic rendering, anti-bot bypass, and Markdown conversion.
      5
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to submit a business website URL and retrieve source-cited JSON details such as contact information, address, opening hours, social links, and open/closed status, with per-field provenance and confidence.
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI agents to retrieve competitor Google ads, app reviews, job postings, PDF tables, bank statement and invoice data, clean email lists, capture website screenshots, and find broken links through Apify-backed tools.
      14
      841 PyPI
      MIT