How to add a B2B prospect list API to an AI SDR agent with MCP

What does the agent get, and where does the data come from?

Prosp (prosp.cc) gives an AI SDR agent a list of companies that match a buyer you describe, each with contacts, so the agent can use it as the step that finds prospect companies.

This page does not claim a company-registry check, so build the agent without assuming one. What Prosp shows instead is where the data comes from: contacts are found on the company's own website and elsewhere on the public web. A contact carries what Prosp found for that person: name, position, e-mail, phone and social profiles where they are published. The web page is not shown. An e-mail Prosp inferred rather than found is marked as inferred, so the agent can treat it differently.

The fields of one contact are listed below.

The fields each contact carries (names only)
[
  "name",
  "email",
  "position",
  "phone",
  "department",
  "organization",
  "linkedin_url",
  "instagram_url",
  "facebook_url",
  "twitter_url",
  "youtube_url",
  "telegram_url",
  "viber_url",
  "whatsapp_url",
  "contact_address",
  "contact_city",
  "contact_country",
  "contact_country_code",
  "contact_region",
  "registry_source",
  "email_source",
  "is_officer"
]
Your agentYour agentProsp MCP serverProsp MCP serverfind_prospects with thebuyer descriptionjobId, returned at onceget_discovery_status withthe jobIdstate and domains found sofarget_discovery_results oncethe job is terminalcompanies with the contactsProsp foundacknowledge_prospects withdelivered domains
The agent starts a job, polls its status until it is terminal, reads the companies, then marks the domains as delivered.

How does the agent sign in and call Prosp?

There are two routes: the MCP server and the Prosp Discovery API (REST). Both need a bearer token.

For MCP, use the server URL https://api.prosp.cc/mcp-rpc with no trailing slash, because a trailing slash answers with a redirect. The transport is Streamable HTTP. Sign-in is OAuth 2.1 authorization code with PKCE: the agent registers itself and opens a sign-in window, where you choose Continue with Telegram or sign in with an e-mailed one-time code. There are no API keys to paste.

The REST examples below use the token as a variable named accessToken, sent as the bearer credential in the request header.

How does the agent start a search for prospect companies?

Call the MCP tool find_prospects, or in REST send POST /api/v1/discoveries. Send the buyer description as a natural-language query. You can add industries, locations, company sizes, keywords, exclusions, sub-country regions and business models.

The recorded request below describes: Independent coffee roasters in the Netherlands that supply cafes and restaurants. Prosp answers at once with a jobId, and the job runs in the background. One discovery job costs 100 credits.

Store the jobId. Before you re-send a start after a timeout, list the jobs (REST GET /mcp/jobs) or read the credit ledger (get_credit_ledger), so the agent does not pay twice for the same search.

Start a discovery (REST, JavaScript)
// accessToken: exchange your Client ID and Secret (/credentials in the bot) for a token with the OAuth client-credentials grant; the token URL is in /docs/
// idempotencyKey: make ONE per run and reuse it when a step is retried, so a retry never starts a second paid job
const res = await fetch("https://api.prosp.cc/api/v1/discoveries", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${accessToken}`,
    "Content-Type": "application/json",
    "X-Idempotency-Key": idempotencyKey,
  },
  body: JSON.stringify({
    "query": "Independent coffee roasters in the Netherlands that supply cafes and restaurants",
    "locations": [
      "Netherlands"
    ],
    "company_sizes": [
      "small",
      "medium"
    ],
    "maxResults": 5
  }),
});
if (!res.ok) throw new Error(`start failed: HTTP ${res.status}`);   // 402 no credits; 409 a warning or the same job already running (nothing charged); 429 too many requests or jobs
const { jobId } = await res.json();
What Prosp answered (HTTP 200)
{
  "jobId": "5fd86ce778c25261e522b4f516ae6c1c",
  "status": "running",
  "createdAt": "2026-11-09T01:26:49.070978327Z",
  "poll_after_seconds": 20,
  "estimated_duration_seconds": 3605,
  "estimated_duration_p50_seconds": 116,
  "estimated_duration_p90_seconds": 2589,
  "estimated_duration_p95_seconds": 3605,
  "estimated_yield": 3
}

How does the agent wait for the job and handle a slow or failed one?

Poll with get_discovery_status (REST: GET /mcp/jobs/{jobId}/status). It is free. It returns the lifecycle state, the total found so far, the target and the domains found, which accumulate while the job runs. Pass the previous next_cursor as cursor to receive only new domains.

A job usually finishes in under half an hour. A hard search can take longer, so keep polling until the state is terminal rather than setting a short timeout. To stop a running job, call cancel_discovery. Credits are refunded only when nothing had been delivered at cancel time.

Wait for the job (REST, JavaScript)
// accessToken and jobId: from the calls above
const terminal = ["completed", "failed", "exhausted", "cancelled"];
const deadline = Date.now() + 45 * 60 * 1000;
let job, cursor = null, wait = 20;   // seconds; then the poll_after_seconds of the last answer
do {
  await new Promise((r) => setTimeout(r, wait * 1000));
  if (Date.now() > deadline) {
    await fetch(`https://api.prosp.cc/mcp/jobs/${jobId}/cancel`, {
      method: "POST",
      headers: { Authorization: `Bearer ${accessToken}` },
    });   // frees the concurrency slot; prospects already delivered are kept
    throw new Error("the job did not finish in 45 minutes and was cancelled");
  }
  const url = `https://api.prosp.cc/mcp/jobs/${jobId}/status` + (cursor ? `?cursor=${encodeURIComponent(cursor)}` : "");
  const r = await fetch(url, {
    headers: { Authorization: `Bearer ${accessToken}` },
  });
  if (!r.ok) throw new Error(`status check failed: HTTP ${r.status}`);
  job = await r.json();
  cursor = job.next_cursor ?? cursor;   // only the prospects added since the last poll
  wait = job.poll_after_seconds ?? 20;
} while (!terminal.includes(job.status));
A job still running
{
  "next_cursor": "MA",
  "poll_after_seconds": 20,
  "has_more": true,
  "prospectsFound": 0,
  "stage": "searching",
  "candidates_screened": 0,
  "estimated_duration_p50_seconds": 116,
  "total_prospects": 0,
  "estimated_duration_p90_seconds": 2589,
  "estimated_duration_p95_seconds": 3605,
  "estimated_duration_seconds": 3605,
  "estimated_yield": 3,
  "evaluated_count": 0,
  "jobId": "5fd86ce778c25261e522b4f516ae6c1c",
  "status": "processing",
  "target": 5
}

How does the agent read the companies and their contacts?

When the job is terminal, call get_discovery_results (REST: GET /api/v1/discoveries/{jobId}/prospects). It returns the result summary and the companies with the contacts Prosp found. Reading is free, so a retry costs nothing.

After the agent has passed companies on to your CRM or outreach, call acknowledge_prospects with their domains. It is idempotent, so repeating it is safe, and those domains are not returned again. get_prospect returns the full record for one domain.

Read the companies (REST, JavaScript)
// accessToken and jobId: from the calls above
const r = await fetch(`https://api.prosp.cc/api/v1/discoveries/${jobId}/prospects`, {
  headers: { Authorization: `Bearer ${accessToken}` },
});
const { prospects } = await r.json();
The companies Prosp returned (two shown; contacts are left out of this public example)
{
  "already_owned_count": 1,
  "candidates_screened": 39,
  "prospects": [
    {
      "country_code": "NL",
      "city": "Winterswijk",
      "state": "Gelderland",
      "linkedin_url": "https://www.linkedin.com/company/hesselink-koffie/",
      "instagram_url": "https://www.instagram.com/hesselinkkoffiebranders/",
      "facebook_url": "https://www.facebook.com/hesselinkKoffie",
      "youtube_url": "https://youtube.com/@HesselinkKoffie",
      "business_model": "manufacturer",
      "estimated_annual_revenue_usd": 24000000,
      "domain": "hesselinkkoffie.nl",
      "industry": "Agriculture & Food Production",
      "estimated_revenue_currency": "USD",
      "founded_year": 1885,
      "hq_address": "Winterswijk, Gelderland, Netherlands",
      "social_description": "Hesselink Koffiebranders ( B Corp) \nis een familiebedrijf dat sinds 1885 staat voor topkwaliteit en duurzaamheid in koffie. Met meer dan 140 jaar ervaring beheersen we het ambacht van koffiebranden als geen ander. Onze passie voor perfectie zorgt ervoor dat elke kop koffie een moment van geluk is.",
      "social_follower_count": 2691,
      "social_legal_name": "Hesselink Koffie",
      "social_source": "linkedin",
      "social_extra_links": [
        "http://www.hesselinkkoffie.eu",
        "https://plus.google.com/113443696654761814245/posts",
        "https://www.facebook.com/hesselinkKoffie?fref=ts",
        "https://twitter.com/HesselinkKoffie",
        "http://www.linkedin.com/company/1043333?trk=tyah&trkInfo=tas%3Ahesselink%20koffie%2Cidx%3A1-1-1",
        "http://www.fingerprinted.eu",
        "http://www.hespresso.eu"
      ],
      "social_profiles": [
        {
          "platform": "linkedin",
          "url": "https://www.linkedin.com/company/hesselink-koffie/",
          "follower_count": 2691,
          "legal_name": "Hesselink Koffie"
        },
        {
          "platform": "youtube",
          "url": "https://youtube.com/@HesselinkKoffie",
          "follower_count": 78,
          "extra_links": [
            "http://www.hesselinkkoffie.eu",
            "https://plus.google.com/113443696654761814245/posts",
            "https://www.facebook.com/hesselinkKoffie?fref=ts",
            "https://twitter.com/HesselinkKoffie",
            "http://www.linkedin.com/company/1043333?trk=tyah&trkInfo=tas%3Ahesselink%20koffie%2Cidx%3A1-1-1",
            "http://www.fingerprinted.eu",
            "http://www.hespresso.eu"
          ],
          "legal_name": "Hesselink Koffie",
          "description": "Wij zijn Hesselink Koffie en wij geloven dat lekkere koffie een leven kan verrijken. Voor de meeste Nederlanders is koffie een primaire levensbehoefte. Onze missie is iedereen met die behoefte van dienst te zijn. Dit doen wij vanuit onze eigen koffiebranderij in Winterswijk, zo kunnen wij ambachtelijke en bovenal lekkere koffie garanderen.\n\nWij leveren koffie aan: horeca, bedrijven en particulieren (Hespresso). Daarnaast hebben wij ook ons eigen label duurzame koffie: Fingerprinted Koffie."
        }
      ],
      "discovered_at": "2026-11-04T11:56:49.888716Z",
      "detected_language": "nl",
      "has_wikipedia_article": true,
      "detected_industry": "Agriculture & Food Production",
      "origin_country": "NL",
      "facts": [
        {
          "source": "web",
          "source_url": "https://hesselinkkoffie.nl/over-ons/duurzaamheid/",
          "extracted_at": "2026-11-04T12:03:30.815668Z",
          "text": "Hesselink Koffiebranders maintains transparency throughout their supply chain and holds multiple certifications including Fairtrade Organic, SKAL for organic production, and the Rainforest Alliance seal.",
          "first_party": true
        },
        {
          "source": "web",
          "source_url": "https://hesselinkkoffie.nl/over-ons/duurzaamheid/",
          "extracted_at": "2026-11-04T12:03:30.531299Z",
          "text": "Hesselink Koffiebranders is an officially B Corp certified coffee supplier that provides sustainable coffee solutions to the hospitality industry and other business sectors.",
          "first_party": true
        }
      ],
      "name": "Hesselink Koffie",
      "description": "Hesselink Koffie is a coffee roastery providing artisanal, sustainably sourced coffee beans and professional coffee machines. They serve hospitality and corporate clients primarily across the Netherlands and Germany.",
      "employee_count": 40,
      "company_size": "small",
      "employee_count_source": "unverified_estimate",
      "employee_count_as_of": "2026-11-04T11:56:49.888716Z",
      "size_certainty": "estimated",
      "headquarters_location": "Winterswijk, Netherlands",
      "country": "Netherlands"
    },
    {
      "country_code": "NL",
      "city": "Noordwijkerhout",
      "state": "Zuid-Holland",
      "postal_code": "2211",
      "street": "Pletterij 7",
      "instagram_url": "https://www.instagram.com/koffie_lovers/",
      "facebook_url": "https://www.facebook.com/KoffieLoverss",
      "business_model": "manufacturer",
      "estimated_annual_revenue_usd": 4400000,
      "domain": "koffie-lovers.nl",
      "industry": "Hospitality & Restaurant",
      "estimated_revenue_currency": "USD",
      "founded_year": 1998,
      "hq_address": "Pletterij 7, Noordwijkerhout, Zuid-Holland 2211, Netherlands",
      "discovered_at": "2026-11-04T11:55:22.190906Z",
      "detected_language": "nl",
      "has_wikipedia_article": false,
      "domain_age_days": 4963,
      "detected_industry": "Hospitality & Restaurant",
      "sub_country_region": "NL-ZH",
      "origin_country": "NL",
      "facts": [
        {
          "source": "web",
          "source_url": "https://grachtenbeans.nl/en/koffiebrander/koffie-lovers/",
          "extracted_at": "2026-11-04T11:59:04.202460Z",
          "text": "Koffie Lovers has built a strong brand by combining craft roasting techniques, ethical sourcing, and educational efforts despite having fewer than ten employees.",
          "first_party": false
        },
        {
          "source": "web",
          "source_url": "https://grachtenbeans.nl/en/koffiebrander/koffie-lovers/",
          "extracted_at": "2026-11-04T11:57:39.551192Z",
          "text": "The company offers a range of seven house blends and several single-origin coffees sourced directly from twelve countries, all carrying Fairtrade or Rainforest Alliance certifications.",
          "first_party": false
        }
      ],
      "name": "Koffie Lovers",
      "description": "Koffie Lovers is a coffee roasting business that supplies freshly roasted coffee beans, espresso machines, and accessories to hospitality businesses and offices throughout the Netherlands.",
      "employee_count": 15,
      "company_size": "small",
      "employee_count_source": "unverified_estimate",
      "employee_count_as_of": "2026-11-04T11:55:22.190906Z",
      "size_certainty": "estimated",
      "headquarters_location": "Noordwijkerhout, Netherlands",
      "country": "Netherlands"
    }
  ],
  "evaluated_count": 7,
  "total": 5
}

What is the next step?

Connect your agent over MCP with the button below. It can then send its first request and get companies back.

Questions

Can the agent write the first message to a company?

Yes. Save your business description with set_seller_profile, then call generate_message with the company's domain. It returns at once and the message is composed in the background. It debits ten credits, and a failed generation returns them. Read the result with get_message_generation.

Can I get the list as a file instead of reading it in code?

Yes. get_discovery_export gives a download link for a finished job as an Excel workbook, one row per company plus a Contacts sheet. In REST, GET /mcp/jobs/{jobId}/prospects.csv returns CSV. Both are free and need the same bearer token.

Connect your agent