cd /news/ai-agents/how-to-query-live-b2b-signals-from-c… · home › topics › ai-agents › article
[ARTICLE · art-175082] src=dev.to ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

How to Query Live B2B Signals from Claude, Cursor, and VS Code (ATS Jobs, Google Ads, Telegram, EU VAT) via MCP

A developer released clearstack-data-mcp v0.2.2, an MIT-licensed MCP server that gives Claude Code, Claude Desktop, Cursor, and VS Code read-only access to live B2B data sources including 25,787 company career sites across Greenhouse, Lever, Ashby, and SmartRecruiters, the Google Ads Transparency Center, public Telegram channels, and six European company/VAT registries. The server validates input with Zod 4, enforces per-call spending caps via maxTotalChargeUsd, waits up to 45 seconds per call, and strips null and empty fields to trim token usage, running on HTTP-only Apify Actors without headless browsers or residential proxies. It can be installed via npx with an Apify token or connected to Apify's hosted OAuth endpoint with no API key.

key takeaway

clearstack-data-mcp wraps four Apify Actors behind MCP tools that validate input with Zod 4, cap spend per call via maxTotalChargeUsd, wait up to 45 seconds, and strip null/empty fields to cut token usage.

by read9 min views14 publishedNov 24, 2026

Short answer: You can give Claude Code, Claude Desktop, Cursor, or VS Code live read-only access to 25,787 company career sites (Greenhouse, Lever, Ashby, SmartRecruiters), Google Ads Transparency Center, public Telegram channels, and 6 European company/VAT registries using clearstack-data-mcp ( v0.2.2, MIT) or Apify's zero-token OAuth endpoint. Every call is HTTP-only, spending-capped, and returns trimmed structuredContent for a few tenths of a cent on Apify's free tier.

I built this because I kept repeating the same four B2B lookups in browser tabs whenever I researched a company: checking who is actually hiring on their career page, seeing what Google Ads they run, skimming public Telegram announcements, and verifying an EU VAT number against VIES. Copying those results into Claude or Cursor by hand gets old fast, and naive browser scrapers either time out at 60 seconds or dump 40 KB of noisy JSON into your context window.

Below is how to plug it in (two minutes, zero code required), followed by the real measured numbers, and then the TypeScript engineering details if you are building your own MCP server.

You have two setup paths depending on whether you want zero API keys to copy or lower token usage with hard spending caps.

If you do not want to copy or store an APIFY_TOKEN, point your client to Apify's hosted MCP endpoint scoped to the four Actors. On first call, your client opens a browser window to sign into a free Apify account via OAuth.

Claude Code:

claude mcp add --transport http clearstack-apify "https://mcp.apify.com/?tools=clearstack-data/career-site-jobs-search,clearstack-data/google-ads-transparency-scraper,clearstack-data/telegram-public-channel-monitor,clearstack-data/eu-company-kyb-enricher"

Cursor or Claude Desktop (mcp.json):

{
  "mcpServers": {
    "clearstack-apify": {
      "url": "https://mcp.apify.com/?tools=clearstack-data/career-site-jobs-search,clearstack-data/google-ads-transparency-scraper,clearstack-data/telegram-public-channel-monitor,clearstack-data/eu-company-kyb-enricher"
    }
  }
}

npx -y clearstack-data-mcp) If you want trimmed JSON responses (fewer LLM tokens), automatic per-call spending caps (maxTotalChargeUsd), and automatic handling of runs longer than 45 seconds, use the npm package with Node.js 20+ and a token from console.apify.com/settings/integrations.

claude mcp add clearstack-data -e APIFY_TOKEN=your_token -- npx -y clearstack-data-mcp

Cursor / Claude Desktop / Windsurf:

{
  "mcpServers": {
    "clearstack-data": {
      "command": "npx",
      "args": ["-y", "clearstack-data-mcp"],
      "env": { "APIFY_TOKEN": "your_token" }
    }
  }
}

You can also install it from Cursor Directory or find it in the Official MCP Registry (io.github.Wordhalm/clearstack-data-mcp) and Glama.

Every tool stays strictly read-only (readOnlyHint: true, destructiveHint: false) and talks only to public JSON/web endpoints through lightweight HTTP-only Apify Actors (256–512 MB RAM, no headless browsers, no residential proxies).

+-------------------------------+
| Claude / Cursor / VS Code     |
|  "Check Stripe jobs & EU VAT" |
+---------------+---------------+
                | stdio (JSON-RPC)
                v
+-------------------------------+
| clearstack-data-mcp (local)   |
|  - validates input with Zod 4 |
|  - computes maxTotalChargeUsd |
|  - waits <= 45s per call      |
|  - strips null/empty fields   |
+---------------+---------------+
                | HTTPS (Authorization: Bearer APIFY_TOKEN)
                v
+-------------------------------+
| ClearStack Data Actors (HTTP) |
|  - ATS JSON APIs (25,787 orgs)|
|  - Google Ads Transparency    |
|  - Telegram t.me/s/ preview   |
|  - EU VIES + 5 gov registries |
+-------------------------------+

Your APIFY_TOKEN never leaves your local machine except in the Authorization header to api.apify.com. Nothing is written to disk, and there is no telemetry.

Each Actor runs on Apify's Pay-Per-Event model with zero extra platform compute surcharge on top of the event price. Here are the exact numbers measured on Apify Cloud (512 MB RAM):

Tool name Public data sources Measured cloud run Apify price (FREE tier) Silver / Gold tier
search_ats_jobs Greenhouse, Lever, Ashby, SmartRecruiters (25,787 employers) 30 jobs in 2.4 s (140 MB RAM) $0.002/run + $1.50 / 1,000 jobs $1.10 / $0.75 per 1k
search_google_ads Google Ads Transparency Center (Search, Display, YouTube) 49 ads in 11.7 s (58 MB RAM) $0.002/run + $1.20 / 1,000 ads $0.90 / $0.60 per 1k
get_telegram_channel_posts Public Telegram web preview ( t.me/s/<channel> ) 30 posts in 3.1 s (74 MB RAM) $0.002/run + $1.50 / 1,000 posts $1.00 / $0.75 per 1k
verify_eu_company EU-27 VIES + SIRENE (FR), Zefix (CH), Brreg (NO), PRH (FI), GLEIF LEI 10 companies in 12.4 s (57 MB RAM) $4.00 / 1,000 companies ($0 start) $3.00 / $2.00 per 1k
get_run_results Polls any in-progress run from the 4 tools above Up to 45 s wait per poll $0.00 (already paid) $0.00
Prompt you type in Claude or Cursor Tool called Items returned Real cost on Apify
"Are Stripe, Datadog, and Linear hiring Data Engineers in Europe?" search_ats_jobs 20 jobs $0.032
"What Google Ads did notion.so run in the UK in the last 30 days?" search_google_ads 20 ads $0.026
"Summarize the last 20 posts from t.me/durov mentioning AI." get_telegram_channel_posts 20 posts $0.032
"Verify VAT FR22424761419 and Swiss UID CHE-105.909.036." verify_eu_company 2 companies $0.008

Apify's free plan gives you monthly platform credit with no credit card required, so you can run dozens of real searches before spending anything.

If you just want to check which ATS a single company uses before installing anything, there is also a free static browser lookup over the same 25,787-company index at ATS Job Board Finder.

All five tools declare an outputSchema and return structuredContent with the same envelope:

{
  "actor": "clearstack-data/eu-company-kyb-enricher",
  "runId": "run_abc123",
  "status": "SUCCEEDED",
  "finished": true,
  "itemCount": 1,
  "items": [
    {
      "query": "FR22424761419",
      "found": true,
      "kybStatus": "VERIFIED_ACTIVE",
      "country": "FR",
      "legalName": "OVH (OVHCLOUD)",
      "registrationNumber": "424761419",
      "vatNumber": "FR22424761419",
      "vatValid": true,
      "leiCode": "9695007586GCAKPYJ703",
      "status": "ACTIVE",
      "incorporationDate": "1999-10-15",
      "address": { "full": "2 RUE KELLERMANN 59100 ROUBAIX" }
    }
  ]
}

And a job record from search_ats_jobs:

{
  "company": "Airbnb",
  "ats": "greenhouse",
  "title": "Account Executive (Hotels)",
  "location": "Barcelona, Spain",
  "isRemote": false,
  "publishedAt": "2026-11-10",
  "applyUrl": "https://careers.airbnb.com/positions/8365363?gh_jid=8365363"
}

If you are building your own MCP server around external APIs or long-running jobs, these four issues showed up immediately in real testing.

Most MCP clients (Claude Desktop, Cursor, VS Code) abort a tool call if it runs longer than 60 seconds. Calling a synchronous run-sync endpoint works for 10 items, then fails unpredictably on 200 items.

Fix: Start runs asynchronously (waitForFinish=0), poll with progress notifications ( notifications/progress when the client sends a progressToken), and stop waiting at 45 seconds. If the run is still RUNNING, return whatever items have already landed with finished: false and the runId. The model then calls get_run_results with that runId (free, idempotent) to collect the rest.

Tool call (maxWait = 45s)
   |-- finishes <= 45s --> { finished: true,  items: [...] }
   '-- still RUNNING   --> { finished: false, runId: "xyz", items: [partial...] }
                                  |
                                  v
                     Model calls get_run_results(runId: "xyz")
                                  |
                                  v
                           { finished: true, items: [all...] }

We also keep an in-memory Map<runId, { spec, maxItems }> so get_run_results applies the exact same field trimmer and item limit as the original call.

Raw scraped items carry internal IDs, duplicate timestamps, empty arrays, and null fields. Feeding 50 raw records into a chat burns context quickly.

Fix: Every tool runs items through a small whitelist trimmer before returning structuredContent:

function keep(keys: readonly string[]) {
  return (item: Record<string, unknown>) => {
    const out: Record<string, unknown> = {};
    for (const k of keys) {
      const v = item[k];
      if (v === undefined || v === null || v === '' || (Array.isArray(v) && v.length === 0)) continue;
      out[k] = v;
    }
    return out;
  };
}

For Telegram posts, we also collapse raw reaction arrays into two integers: reactionsTotal and paidStars (paid Telegram Stars are kept separate so they do not inflate emoji reaction counts).

If a model passes maxJobs: 500 or scans 200 companies unexpectedly, a user without a budget cap gets a surprise bill.

Fix: Every call computes a hard spending cap (maxTotalChargeUsd) from the Actor's exact event rates plus 20% headroom, rounded up to a tenth of a cent, and passes it directly to Apify's run endpoint:

export function spendCap(startUsd: number, perItemUsd: number, items: number): number {
  const raw = (startUsd + perItemUsd * items) * 1.2;
  return Math.ceil(raw * 1000) / 1000;
}

For example, search_ats_jobs with maxJobs: 10 sends maxTotalChargeUsd=0.021. Even if something unexpected happens upstream, Apify stops billing at that ceiling.

Testing against real data surfaced three edge cases that an LLM will confidently misinterpret unless you normalize them explicitly:

Upstream source What broke in real testing How we fixed it
EU VIES VAT API Member-state endpoints frequently return MS_MAX_CONCURRENT_REQ orMS_UNAVAILABLE . Mapping that tovatValid: false makes the LLM tell a user a valid company has a fake VAT number. Return vatValid: null with the exact VIES error code, and document in the tool description thatnull means "retry later", not "invalid".
Ashby ATS API Some companies mark Hybrid roles with a truthy workplace flag, inflating remote counts (602 vs 30 actual remote roles on OpenAI). Filter strictly on true remote classification instead of broad workplace flags.
Telegram reactions Paid Telegram Stars appeared inside the same reaction container as normal emoji reactions. Split them into reactionsTotal andpaidStars .

clearstack-data-mcp vs mcp.apify.com? Use clearstack-data-mcp ( npx -y clearstack-data-mcp) when you want smaller token payloads, automatic maxTotalChargeUsd caps, and 45-second timeout handling. Use mcp.apify.com when you want zero-token OAuth login in the browser or full access to advanced Actor parameters like onlyNewSinceLastRun incremental cursors.

No. All four data sources are queried over plain HTTP from public endpoints: company ATS JSON APIs, Google Ads Transparency Center, Telegram's t.me/s/ web preview, EU VIES, France DINUM (SIRENE/RNE), Switzerland Zefix, Norway Brreg, Finland PRH, and GLEIF.

search_ats_jobs reads Greenhouse, Lever, Ashby, and SmartRecruiters only; it does not scrape LinkedIn or Indeed.search_google_ads returns public Transparency Center creatives and dates; it does not estimate ad spend or click-through rates.get_telegram_channel_posts reads public channels with web preview enabled; it cannot access private groups or DMs.verify_eu_company covers EU-27 VAT plus FR, CH, NO, FI, and global LEI records; it does not cover US state LLC registries. Yes. All four Actors support incremental monitoring (onlyNewSinceLastRun: true) so scheduled runs only return and bill for new jobs, new competitor ads, or new Telegram posts. Ready-to-import n8n JSON workflows and Clay recipes are in Wordhalm/clearstack-data-automation-templates.

v0.2.2) io.github.Wordhalm/clearstack-data-mcp

── more in #ai-agents 4 stories · sorted by recency
── more on @clearstack-data-mcp 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/how-to-query-live-b2…] indexed:0 read:9min 2026-11-24 · —