API and MCP

Lead API and MCP server for B2B lead generation

With the anilead.io REST API and MCP server you start lead searches from your own code or from an AI agent and fetch scored B2B leads as JSON. Access is an add-on to any plan for €199 per month, with usage billed as you go.

What the anilead API does

The anilead API is a REST interface for B2B lead generation in the German-speaking market. It exposes the same steps as the app: create a project with an offer and a target region, start a lead search, check the progress and fetch the companies found. Every lead comes with company data, a contact person, an AI score from 0 to 100 and the reason for that score.

The MCP server offers the same functions as tools for AI agents. MCP stands for Model Context Protocol, an open standard that lets assistants such as Claude or Cursor operate external services. Given the instruction “Find 20 tax advisers in Cologne and show me the best five”, a connected agent can create a project, start the search and evaluate the result on its own.

The API and the MCP server are an add-on that can be booked with any plan, including Free. Searches and enrichments through the interfaces do not use lead credits but a prepaid balance in euros. Reading projects, searches and leads is free.

What teams use the interfaces for

Leads into your own CRM

A nightly job fetches new leads above a minimum score and creates them in the CRM or a spreadsheet.

Research by chat

Sales asks the AI assistant for suitable companies in a region. The assistant searches, reads the reasons and summarises.

Automated workflows

Tools such as n8n or Make trigger searches on a schedule and pass the results on to further steps.

Three steps to your first request

You need an anilead account with a completed company profile, the API add-on and a balance. You book both under Settings, Billing.

  1. 1

    Create a key

    In the app, go to Settings, Integrations and generate a key. Choose “Read-only” for fetching or “Read and write” if searches should be started. The key is shown only once.

  2. 2

    Start a search

    Send POST /api/v1/searches with the project id and the number of leads you want. The response contains the id of the search.

  3. 3

    Fetch leads

    Once the search has the status completed, GET /api/v1/leads returns the leads with score and reason.

curl -X POST https://anilead.io/api/v1/searches \
  -H "Authorization: Bearer anl_live_..." \
  -H "Content-Type: application/json" \
  -d '{"projectId": "PROJECT_ID", "maxResults": 20}'
curl "https://anilead.io/api/v1/leads?projectId=PROJECT_ID&minScore=70" \
  -H "Authorization: Bearer anl_ro_..."
{
  "leads": [
    {
      "id": "0b7c1f0e-...",
      "score": 86,
      "priority": "high",
      "scoreReason": "Maschinenbauer mit 40 Mitarbeitenden, sucht laut Website ...",
      "company": { "name": "Beispiel GmbH", "website": "https://beispiel.de", "city": "Augsburg" },
      "contact": { "firstName": "Max", "lastName": "Muster", "jobTitle": "Geschäftsführer", "email": "..." }
    }
  ],
  "nextCursor": null
}

REST API: endpoints

Base URL: https://anilead.io/api/v1. Authenticate with the header “Authorization: Bearer” and your key. All responses are JSON.

MethodPathPurposeAccess
GET/accountPlan, balance and limitsRead
GET/projectsList projectsRead
POST/projectsCreate a projectWrite
GET/projects/{id}One project with its target group profileRead
POST/searchesStart a lead search (charged to the balance)Write
GET/searchesList recent searchesRead
GET/searches/{id}State of a search or enrichmentRead
POST/enrichmentsEnrich leads (charged to the balance)Write
GET/leadsLeads with score, filtered by project and minimum scoreRead
GET/leads/{id}One lead with all fields and peopleRead

The full description with all fields and error codes is available as OpenAPI 3.1 and can be loaded into Postman, Insomnia or code generators. /api/v1/openapi.json

MCP server: tools for AI agents

URL: https://anilead.io/api/mcp (Streamable HTTP). The server authenticates with the same key as the REST API. With a read-only key the agent only sees the reading tools.

ToolPurposeAccess
get_accountPlan, balance and limitsRead
list_projectsList projectsRead
get_projectOne project with its target group profileRead
create_projectCreate a projectWrite
start_lead_searchStart a lead search (charged to the balance)Write
start_enrichmentEnrich leads (charged to the balance)Write
get_search_statusCheck the state of a search or enrichmentRead
list_searchesList recent searchesRead
list_leadsLeads with score and reason, with filtersRead
get_leadOne lead with all fields and peopleRead

Connect an agent

The server works with every MCP client that can send an Authorization header.

Claude Code

Run in the terminal:

claude mcp add --transport http anilead https://anilead.io/api/mcp \
  --header "Authorization: Bearer anl_ro_..."

Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "anilead": {
      "url": "https://anilead.io/api/mcp",
      "headers": { "Authorization": "Bearer anl_ro_..." }
    }
  }
}

Claude Desktop

Through the mcp-remote bridge in claude_desktop_config.json:

{
  "mcpServers": {
    "anilead": {
      "command": "npx",
      "args": ["mcp-remote", "https://anilead.io/api/mcp",
               "--header", "Authorization: Bearer anl_ro_..."]
    }
  }
}

Sign-in via OAuth, which some web assistants require for custom connectors, is not available at the moment. Use a client with header support there.

Example instruction

“How much balance do I have left? Start a search for 20 leads for my project Mechanical Engineering Bavaria, then show me all leads with a score above 75, each with the reason.”

Pricing

The API add-on has a fixed monthly price. Usage is billed at our actual cost with a fixed markup.

API add-on€199 per month, on top of the plan, also available with Free
Searchactual cost of the run (Google Places, AI) plus 40%
Enrichmentactual cost of the run (AI) plus 40%
Readingfree
Failed runsfree
Paymentfrom a prepaid balance, optionally with auto recharge

The amount charged for each run is shown in the charged field of the response and in the settings under Billing. All prices exclude VAT.

Security

Keys stored as a hash only

anilead stores only the SHA-256 hash of each key. The plain text is shown once and cannot be recovered afterwards.

Read-only keys

Keys with the prefix anl_ro_ cannot create anything or start a search or enrichment, so they cannot cause charges. This is the safe choice for AI agents.

Revocable one by one

Every key can be revoked immediately in the settings. You can see when it was last used.

Separated per account

A key belongs to exactly one account and reaches only its projects and leads.

Limited requests

Each key allows 120 read and 20 write requests per minute. Searches and enrichments are also limited by the balance and by the concurrent runs of your plan.

Third-party content is flagged

Lead texts come from third-party websites. The MCP server tells agents to treat them as data, not as instructions.

Limits at a glance

Read requests120 per minute and key
Write requests20 per minute and key
Leads per search1 to 200, default 20, at most as many as the balance covers
Leads per enrichmentup to 200 per run
Leads per pageup to 100, further pages via nextCursor
Auto rechargeat most 5 times per day
Active keysup to 20 per account

Legal note

The API returns data from public sources, including contact details of business contacts. The same rules apply as in the app: a phone number or email address found here is not permission to contact someone. The GDPR and section 7 of the German Act Against Unfair Competition (UWG) apply. Read the legal notes

Frequently asked questions about the API and MCP

What does the anilead API cost?

Access to the API and the MCP server is an add-on for €199 per month that can be booked with any plan, including Free. Searches and enrichments are paid from a prepaid balance: you are charged the actual cost of the run for Google Places and AI plus 40%. Failed runs and reading projects, searches and leads are free.

How does the balance work?

You top up the balance in the settings under Billing. Before each run an estimate is reserved (€0.12 per requested lead for searches, €0.06 per lead for enrichments); the actual amount is charged at the end. With auto recharge, the balance is topped up from the stored payment method when it falls below a threshold you choose, at most 5 times per day.

What is an MCP server?

MCP stands for Model Context Protocol. It is an open standard that lets AI assistants use external services as tools. The anilead.io MCP server gives an assistant tools to create projects, start lead searches and read scored leads.

Which AI assistants work with the MCP server?

Every MCP client that can send an Authorization header, for example Claude Code, Cursor and VS Code. Claude Desktop can be connected through the mcp-remote bridge. Sign-in via OAuth is not available at the moment.

Can an AI agent cause charges by accident?

Only with a key that has write access. A read-only key cannot start a search or an enrichment. With write access, every run is limited to the requested number of leads, to the available balance and to the concurrent runs of the plan. Without auto recharge an agent can never spend more than has been topped up; with it, there are at most 5 recharges per day.

Which data does the API return per lead?

Company name, website, industry, address, size, company email and phone, plus a contact person with name, role and contact details where publicly found. Also the AI score from 0 to 100, the priority and the reason for the score.

How long does a search take through the API?

A search runs in the background and usually takes a few minutes, depending on the number of leads. The API answers immediately with the id of the search. You check the state with GET /api/v1/searches/{id} until the status is completed.

Where is the data processed?

The data is stored in the EU (Frankfurt). The AI analysis is done by Anthropic (USA) under standard contractual clauses. The same applies to the API and the MCP server as to the app.

Book the API add-on and get started

Create an account, then book the add-on and a balance under Settings, Billing.

Create account