如何透過 MCP 和零金鑰 API,將 n8n AI Agent 連接至 B2B 潛在客戶抓取工具(附 16 個免費工作流程)
How to Connect n8n AI Agents to B2B Lead Scrapers via MCP & Zero-Key APIs (16 Free Workflows)
n8n AI Agent 可透過 Streamable HTTP MCP、零金鑰 STDIO MCP,或支援 usableAsTool: true 的原生 n8n Community Node,連接市場數據、B2B 潛在客戶來源及 Google News RAG feed。
If you wire @n8n/n8n-nodes-langchain.agent to market data, B2B lead sources, or Google News RAG feeds, here are 3 ways to connect without local Chromium containers or brittle regexes:
-
Streamable HTTP MCP (
mcp.apify.com) using Apify's$5/mobuilt-in free tier. -
Zero-Key STDIO MCP (
b2b-market-intel-mcp) vianpxcalling official public APIs directly. -
Native n8n Community Node (
n8n-nodes-b2b-market-intel) withusableAsTool: true(3zero-key ops +15cloud batch scrapers).
Browse all 16 copy-ready .n8n.json templates here: Interactive 1-Click n8n Workflow Gallery.
1. Wire @n8n/n8n-nodes-langchain.mcpClientTool to Streamable HTTP or STDIO MCP
Attach MCP Client Tool to the ai_tool port of your AI Agent node (mcp.apify.com with Bearer Auth):
{
"sseEndpoint": "https://mcp.apify.com?actors=ttyan0111/reed-uk-jobs-hiring-signals,ttyan0111/shopify-app-store-churn-spy,ttyan0111/google-news-ai-article-extractor",
"authentication": "bearerAuth",
"include": "all"
}
Every actor returns low-token agentSummary strings + a key-value RUN_SUMMARY record. For zero-key local STDIO MCP (supergateway / local client): npx -y github:truonggiang0111/b2b-market-intel-mcp.
2. Install n8n-nodes-b2b-market-intel (usableAsTool: true)
Inside ~/.n8n/nodes:
npm install github:truonggiang0111/n8n-nodes-b2b-market-intel
Includes 3 zero-key instant operations (decodeGoogleNewsUrl, searchUkGovTenders, searchClinicalTrials) plus 15 Apify cloud batch operations (UK/AU hiring, Shopify/WooCommerce/Atlassian 1★–2★ churn + vendor emails, Chrome/VS Code extension spies, Substack creators & viral Notes outliers, podcast sponsor & direct host emails, Google Ads Transparency, iOS/Play review bugs). Repo: truonggiang0111/n8n-nodes-b2b-market-intel | Python CLI/SDK: b2b-market-intel-python.
3. Drop-in n8n Code Node for Google News CBMi / AU_yqL Links
Standalone Gist: n8n-code-node-google-news-real-url-decoder.js
const url = $input.first().json.link;
const m = url.match(/news\.google\.com\/(?:rss\/)?(?:articles|read)\/([A-Za-z0-9_-]+)/);
if (!m) return [{ json: { realUrl: url } }];
const token = m[1];
const html = await this.helpers.httpRequest({ url: `https://news.google.com/articles/${token}`, headers: { 'User-Agent': 'Mozilla/5.0' } });
const sg = html.match(/data-n-a-sg="([^"]+)"/)?.[1], ts = html.match(/data-n-a-ts="([^"]+)"/)?.[1];
if (!sg || !ts) return [{ json: { realUrl: url, unresolved: true } }];
const inner = ['garturlreq', [['X','X',['X','X'],null,null,1,1,'US:en',null,1,null,null,null,null,null,0,1],'X','X',1,[1,1,1],1,1,null,0,0,null,0], token, Number(ts), sg];
const rpc = await this.helpers.httpRequest({
method: 'POST', url: 'https://news.google.com/_/DotsSplashUi/data/batchexecute?rpcids=Fbv4je',
headers: { 'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8', Referer: 'https://news.google.com/' },
body: new URLSearchParams({ 'f.req': JSON.stringify([[['Fbv4je', JSON.stringify(inner), null, 'generic']]]) }).toString(),
});
const res = rpc.match(/\[\s*\\"garturlres\\"\s*,\s*\\"(https?:[^"\\]+)\\"/);
return [{ json: { token, realUrl: res ? JSON.parse(`"${res[1]}"`) : url } }];
Links & Free Tier
- 16-Workflow n8n Gallery: truonggiang0111.github.io/mcp/n8n-b2b-lead-automation-workflows/
- Full MCP + n8n Guide: truonggiang0111.github.io/mcp/n8n-mcp-client-ai-agent-b2b-leads/
- Agensi Free Skills: Google News Decoder · Storefront (16 Skills)
-
Hosted Apify Actors (
$5/moFree Tier): apify.com/ttyan0111
來源:DEV Community · dev.to