theLeadRouter MCP

theLeadRouter MCP

Connects Claude Code to the theLeadRouter lead routing platform, enabling lead management, routing, and reporting via API.

Category
访问服务器

README

theLeadRouter MCP — Claude Code Integration

Built with AI

Connect Claude Code to your theLeadRouter lead routing platform. This repo provides:

  1. Role-specific skills — teach Claude Code how theLeadRouter works from your perspective (admin, partner, or buyer)
  2. MCP server — connects Claude Code to your instance via API so it can query leads, manage entities, pull reports, and more

Built by iSCALE — AI-powered tools for lead generation at scale.

Quick Start

Option 1: Clone this repo (recommended)

git clone https://github.com/iscale-llc/theleadrouter-mcp.git
cd theleadrouter-mcp

Then open Claude Code in this directory. It automatically loads the CLAUDE.md and all skills.

Say "I'm new, help me get started" or run /welcome — Claude Code will detect your role and walk you through setup step by step.

Option 2: Copy just your role's skill

Copy only the skill you need into your project's .claude/skills/ directory:

# For admins (full platform setup & management)
cp -r .claude/skills/admin-guide /path/to/your/project/.claude/skills/

# For partners (lead submission, campaigns, portal)
cp -r .claude/skills/partner-guide /path/to/your/project/.claude/skills/

# For buyers (contracts, filters, delivery, billing)
cp -r .claude/skills/buyer-guide /path/to/your/project/.claude/skills/

Skills by Role

Admin Guide (/admin-guide)

Full platform configuration and management:

  • Entity hierarchy and setup order (verticals → partners → buyers → campaigns → contracts → offers)
  • Routing engine internals — how the system evaluates contracts
  • Distribution patterns (exclusive, multisell, hybrid, ping-post)
  • Intake centers and delivery configuration
  • Troubleshooting routing failures
  • All admin API endpoints

Partner Guide (/partner-guide)

Lead submission and campaign management:

  • How to submit leads via API (POST /api/v1/leads/submit)
  • Posting specs — required fields, sample requests, response formats
  • Common rejection reasons and how to fix them
  • Sessions API for multi-step funnels
  • Co-registration flows
  • Partner portal overview and API endpoints
  • Campaign caps and pricing models

Buyer Guide (/buyer-guide)

Receiving and managing leads:

  • Contract configuration (filters, caps, pricing, schedule)
  • Delivery setup (HTTP POST/GET, email, CRM integration)
  • Dedup settings and how duplicate prevention works
  • Balance, billing, and credit limits
  • Returns and disposition tracking
  • CPA (cost per acquisition) and conversion postbacks
  • Ping-post auction model
  • Buyer portal and API endpoints

Setting Up the MCP Server

The MCP server lets Claude Code interact with your theLeadRouter instance directly — querying leads, managing buyers, pulling reports, etc.

1. Generate an API key

Go to Settings > API Keys in your admin dashboard and create an API key. It will start with lr_.

2. Add to your Claude Code config

Add the following to your .mcp.json file. Replace lr_your_key_here with your actual key.

{
  "mcpServers": {
    "theleadrouter": {
      "command": "npx",
      "args": ["-y", "theleadrouter-mcp@latest"],
      "env": {
        "ISCALE_API_URL": "https://leads.iscale.com",
        "ISCALE_API_KEY": "lr_your_key_here"
      }
    }
  }
}

Optional scope filters

By default all ~300 tools (reads + writes) are registered. You can narrow the set to reduce context usage:

Env var Values Effect
ISCALE_MCP_SCOPE read | write | all (default) Filter by write flag
ISCALE_MCP_DOMAINS comma list, e.g. verticals,campaigns,buyers Restrict to specific domains
ISCALE_MCP_INCLUDE_UI true (default false) Include admin-UI navigation tools (only useful inside the in-app agent)

3. Restart Claude Code

Close and reopen Claude Code so it picks up the new MCP server config.

4. Verify the connection

Try asking: "Use search_leads to show me recent leads"

MCP Server Tools

Once connected, Claude Code can use 300+ tools across these categories:

Category Examples
Leads search_leads, get_lead, get_lead_distributions, submit_lead
Buyers list_buyers, get_buyer_balance, update_buyer_status
Partners list_partners, get_partner, create_partner
Contracts list_contracts, create_contract, update_contract_status
Campaigns list_campaigns, get_posting_instructions
Offers list_offers, link_campaign_to_offer
Reports get_report, list_transactions, list_payouts
People (CRM) search_people, get_person_timeline
Calls & IVR list_calls, get_call, list_tracking_numbers
Compliance check_suppression, list_audit_logs

Example Prompts

For Admins

"Set up a new solar vertical with fields for utilityBill and homeOwner"
"Create a campaign for partner SunLeads on the solar vertical"
"Why didn't lead L-12345 route to any buyers?"
"Show me all contracts that are hitting their daily cap"
"Pull a revenue report for last week grouped by buyer"

For Partners

"Show me the posting spec for campaign C-789"
"What fields do I need to submit a solar lead?"
"Why was my last lead rejected?"
"Show me my leads from today and their statuses"
"What offers are available for me to enroll in?"

For Buyers

"What's my current balance and credit limit?"
"Show me all leads I received today"
"Which of my contracts are paused?"
"Return lead L-12345 — invalid phone number"
"How many leads am I getting per day this week?"

About

theLeadRouter is a B2B lead distribution platform that routes leads from partners to buyers through offer-based contracts. Learn more at theleadrouter.com.

Built by iSCALE — browse all our open-source AI tools at builtwithai.com/open-source.

Help & Documentation

  • User Manual: Available in your admin dashboard under Help > User Manual
  • API Reference: Help > API Docs
  • Claude Code tab: Help > Claude Code (in-app setup instructions)

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选