Skip to main content
Glama
B2BLeads MCP Server

B2BLeads MCP Server

by gtovtya

B2BLeads MCP Server

An MCP (Model Context Protocol) server that gives AI agents — Claude, Cursor, and any other MCP-compatible client — a search_leads tool for real-time B2B company discovery and enrichment.

Ask your agent things like:

"Find construction companies in Munich with a website and phone number."

"Collect 50 IT companies in Berlin rated above 4.0."

"Enrich this lead list with email contacts where available."

...and it calls this tool to return a ready-made list of companies: name, address, phone, website, and email where available.

This server is a thin MCP wrapper around the B2BLeads REST API. You need a B2BLeads account and API key — see Getting an API key below.

Requirements

  • Node.js 18 or later

  • A B2BLeads API key (sign up)

Related MCP server: DataLayer MCP

Installation

No install needed — run it directly with npx. Add it to your MCP client's config:

Claude Desktop / Claude Code

Edit your claude_desktop_config.json (or run claude mcp add):

{
  "mcpServers": {
    "b2bleads": {
      "command": "npx",
      "args": ["-y", "b2bleads-mcp"],
      "env": {
        "B2BLEADS_API_KEY": "your-api-key-here"
      }
    }
  }
}

Cursor

Add the same block to .cursor/mcp.json in your project (or your global Cursor MCP settings).

Any other MCP client

Point it at the command npx -y b2bleads-mcp with the B2BLEADS_API_KEY environment variable set.

Getting an API key

  1. Create an account at b2bleadsapi.com.

  2. Pick a plan in Billing.

  3. Generate a key under API Keys in the dashboard.

  4. Set it as B2BLEADS_API_KEY in your MCP client config (see above).

Tools

search_leads

Search for companies and business contacts in real time.

Parameter

Type

Description

q

string

Free-text query, e.g. "construction companies in Munich".

industry

string

One of the categories from list_industries.

city

string

City or region to search in.

radius_km

number

Search radius in kilometers.

min_rating

number

Minimum rating (0-5).

has_website

boolean

Only businesses with a website.

verified_only

boolean

Only businesses with a verified listing.

open_now

boolean

Only businesses currently open.

price_level

string

budget | moderate | expensive | luxury

rank_by

string

relevance | distance

limit

integer

Max results per call, 1-20.

lang

string

Result language, BCP-47 tag (e.g. en, pt-BR).

page_token

string

Pagination token from a previous call.

save_to_list

boolean

Also save results into a B2BLeads saved list.

list_id

string

Existing saved-list ID to append to.

list_name

string

Saved-list name to find-or-create and append to.

At least one of q, industry, or city is required.

search_leads_advanced

⚠️ Elevated cost: consumes 9x the quota of a single search_leads call. Only use this when you need more results than search_leads returned for a specific city, or need to exhaustively cover a city — not as a default or first attempt. Tiles the city into a 3x3 grid of sub-searches server-side to go beyond the normal ~20-60 result ceiling, returning up to ~180 deduplicated businesses in one call. Does not support pagination.

Parameter

Type

Description

q

string

Free-text query, e.g. "construction companies". Optional if industry is given.

industry

string

One of the categories from list_industries.

city

string

Required. City or region to search in — must be only the city name (e.g. "Lyon"), not the full search phrase, or the wrong place may be geocoded.

min_rating

number

Minimum rating (0-5).

has_website

boolean

Only businesses with a website.

verified_only

boolean

Only businesses with a verified listing.

open_now

boolean

Only businesses currently open.

price_level

string

budget | moderate | expensive | luxury

lang

string

Result language, BCP-47 tag (e.g. en, pt-BR).

list_industries

Lists the predefined industry categories usable in search_leads's industry filter. Takes no arguments.

list_saved_lists

Lists all of your saved lead lists — id, name, and lead count for each, not the leads themselves. Read-only. Takes no arguments. Use get_saved_list to fetch one list's full leads.

get_saved_list

Gets one saved lead list by ID, with its full set of saved leads. Read-only.

Parameter

Type

Description

list_id

string

The saved list's ID, from list_saved_lists or a search_leads save_to_list response. Required.

find_email

Looks up a best-effort contact email for a single business website (checks the homepage and common contact pages). Use this for one specific website rather than re-running search_leads. Requires any paid plan (Starter and above); may return a null email if none is found.

Parameter

Type

Description

website

string

The business website URL to look up, e.g. https://example.com. Required.

account_get_usage

Gets how much of your monthly search quota has been used and how much remains for the current billing period. Read-only. Takes no arguments.

account_get_usage_limit

Gets your account's total monthly search quota and when the current billing period renews. Read-only. Takes no arguments.

list_saved_searches

Lists your saved search alerts (recurring searches that auto-run and save results to a list). Read-only. Takes no arguments.

get_search_history

Gets your recent search history — up to the last 200 searches (query text, result count, date). Read-only. Takes no arguments.

Configuration

Environment variable

Required

Description

B2BLEADS_API_KEY

Yes

Your B2BLeads API key.

B2BLEADS_API_URL

No

Override the API base URL. Defaults to https://api.b2bleadsapi.com.

Pricing & rate limits

Each search consumes quota from your B2BLeads plan — see pricing. Rate limits and quota errors are returned by the API and surfaced back to your agent as tool errors.

License

MIT

Available Tools

5 tools
find_emailA

Look up a best-effort contact email for a single business website (checks the homepage and common contact pages). Use this for one specific website, e.g. from a saved list or CSV, rather than re-running search_leads. May return a null email if none could be found; this tool never fabricates an address.

Inputs: website (required).

get_saved_listA

Get one saved lead list by ID, including its full set of saved leads (read-only).

Inputs: list_id (required).

list_industriesA

List the predefined industry categories that can be used as the industry filter in search_leads.

Inputs: no named parameters.

list_saved_listsA

List all of the user's saved lead lists (read-only), each with its full set of saved leads. Use this when the user asks what they've already saved, or which lists exist.

Inputs: no named parameters.

search_leadsA

Search for companies and business contacts in real time by industry, city, and other filters. Returns a ready-to-use list of leads (name, address, phone, website, rating, and email where available). Use this whenever the user asks to find, list, or collect businesses/companies for sales, outreach, or research.

Inputs: q, city, lang, limit, +12 more.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 5 tools

    Disambiguation5/5

    Each tool targets a distinct action: listing saved lists, fetching one saved list, finding a single email, listing industries, and searching leads. Even the list/get pair is clearly separated by the ID parameter and tool descriptions.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern using lowercase snake_case: list_saved_lists, get_saved_list, find_email, list_industries, search_leads. The naming style is uniform and predictable.

    Tool Count5/5

    Five tools is a well-scoped surface for a B2B lead discovery and saved-list lookup server. Each tool covers a meaningful capability without unnecessary overlap or bloat.

    Completeness3/5

    The server covers lead searching, email lookup, and read-only access to saved lists, but there are no tools to create, update, or delete saved lists/leads, nor bulk email enrichment. Users can discover leads but cannot manage or persist them through this MCP server.

    Maintenance

    ActivitySlowing
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      An MCP server providing real-time access to comprehensive B2B company and contact data for lead generation and business intelligence. It enables AI tools to search firmographics, discover key contacts, and automate personalized outreach workflows.
      296
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Give your AI agent access to 60M+ companies and 300M+ verified contacts. Enrich leads, find work emails, discover tech stacks, and identify buying intent — directly from Claude, Cursor, Windsurf, or any MCP-compatible AI agent.
      11
      14 npm
      MIT
    • A
      license
      B
      quality
      D
      maintenance
      Enables AI-assisted B2B lead generation by discovering, extracting, scoring, and exporting company leads from any MCP-compatible agent.
      3
      MIT