If you are building B2B lead generation workflows or connecting external tools to AI agents via Model Context Protocol (MCP), you have probably noticed a common bottleneck: LLM-based web scraping is slow and expensive.

Feeding raw HTML from hundreds of company websites into an LLM just to extract a contact email, check if they use Stripe, or see if they have a /pricing page burns tokens fast—and introduces unnecessary hallucination risks.

To solve this, I built B2B Domain, Tech Stack & Contact Enricher—a deterministic, zero-LLM-cost enrichment tool hosted on Apify and ready out-of-the-box for MCP clients like Claude Desktop and Cursor.

Why Deterministic Parsing Beats LLM Scraping for Enrichment

When enriching a batch of 500 or 5,000 company domains, you want predictable latency, structured JSON output, and flat unit economics. Instead of relying on browser automation or LLM inference, this Actor runs purely on asynchronous httpx + BeautifulSoup parsing.

What It Extracts Per Domain

  1. 2-Stage Email Discovery:
    • Extracts mailto: links, visible email patterns, and decodes Cloudflare's hex-encoded data-cfemail protection.
    • If the homepage yields zero emails, it automatically follows at most one internal /contact or /about page to recover contact details without crawling the entire site.
  2. 12 Tech Stack Signals:
    • Detects Shopify, WordPress, Webflow, Next.js, React, Stripe, HubSpot, Intercom, GA (Google Analytics), Meta Pixel, Tailwind, and Cloudflare directly from HTTP response headers, script sources, meta tags, and markup.
  3. B2B Buying & Growth Signals:
    • Checks whether active /pricing (self-serve/SaaS readiness) and /careers (hiring/growth indicator) pages exist and returns their direct URLs.
  4. Official Social Profiles:
    • Captures official LinkedIn, X/Twitter, GitHub, YouTube, Instagram, and TikTok links while filtering out noisy share/intent widgets.

Built-In SSRF Protection for Safe Agent Execution

When an AI agent autonomously passes user-supplied or discovered URLs into a web-fetching tool, Server-Side Request Forgery (SSRF) is a real security risk.

Before every initial request and every HTTP redirect hop, the enricher resolves the target hostname via socket and validates the IP address using Python's ipaddress module—immediately blocking (status: "blocked"):

  • localhost and loopback ranges (127.0.0.0/8, ::1)
  • Private RFC1918 networks (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16)
  • Link-local / cloud metadata endpoints (169.254.0.0/16)

Connecting It to Claude Desktop or Cursor via MCP

Because the Actor is published on the Apify Store, you can invoke it directly from any MCP-compatible AI agent using Apify's hosted MCP server (https://mcp.apify.com).

Add the following configuration to your MCP client settings (replacing YOUR_APIFY_TOKEN with your Apify API token):

{ "mcpServers": { "apify-b2b-enricher": { "url": "[https://mcp.apify.com/sse?actors=minnnnn/b2b-domain-enricher](https://mcp.apify.com/sse?actors=minnnnn/b2b-domain-enricher)", "headers": { "Authorization": "Bearer YOUR_APIFY_TOKEN" } } } } 

Once connected, you can simply prompt your agent:

"Enrich these 25 company domains with contact emails, tech stack signals, and pricing page URLs using b2b-domain-enricher, then filter for companies using Stripe or HubSpot."

Example Output

Each enriched domain returns clean, structured JSON:

{ "url": "[https://example.com](https://example.com)", "final_url": "[https://www.example.com/](https://www.example.com/)", "domain": "example.com", "status": "success", "http_status": 200, "title": "Example SaaS — Workflow Automation", "emails": ["hello@example.com"], "social_links": { "linkedin": "[https://www.linkedin.com/company/example](https://www.linkedin.com/company/example)", "x": "[https://x.com/example](https://x.com/example)", "github": "[https://github.com/example](https://github.com/example)" }, "tech_stack": ["Next.js", "React", "Stripe", "HubSpot", "Cloudflare"], "has_pricing_page": true, "pricing_url": "[https://www.example.com/pricing](https://www.example.com/pricing)", "has_careers_page": true, "careers_url": "[https://www.example.com/careers](https://www.example.com/careers)" } 

Pricing & Try It Free

The Actor uses Apify's Pay-Per-Event model at $3.00 per 1,000 successfully enriched domains ($0.003 per domain). Blocked, invalid, or unreachable URLs are never charged.

Apify includes $5/month in free platform credits on the free tier, so you can enrich ~1,600 domains right away at zero cost:

👉 Try B2B Domain, Tech Stack & Contact Enricher on Apify Store

If there are additional tech stack signatures or B2B signals you would like to see supported, feel free to leave a comment below!