Skip to main content
Glama
mcp-server-apollo

mcp-server-apollo

mcp-server-apollo

MCP (Model Context Protocol) server for the Apollo.io B2B discovery and enrichment API: company search, people search, contact enrichment (emails/phones), organization firmographics, and API usage stats.

The server wraps Apollo's REST API with one account-level API key kept server-side. The MCP server's own tools are read-only; the embeddable gateway also covers the everyday CRM work (contacts, accounts, deals, tasks and sequence enrollment) behind a host policy. The only tool that removes records is merge_contacts.

This is an independent, unofficial project. It is not developed, endorsed or supported by Apollo.io.

Tools

Tool

Risk

Apollo endpoint

apollo_search_capabilities

read

— (local discovery)

apollo_companies_search

read + 1 credit/page

POST /mixed_companies/search

apollo_people_search

read (free, master key)

POST /mixed_people/api_search

apollo_person_enrich

read + credits

POST /people/match

apollo_people_bulk_enrich

read + credits

POST /people/bulk_match (chunked ×10)

apollo_org_enrich

read + 1 credit

GET /organizations/enrich

apollo_webhook_result

read (free)

GET /webhook_result/{request_id}

apollo_credit_usage

read (free, master key)

POST /usage_stats/api_usage_stats

Notes that save you a support ticket:

  • People search returns no contact data. Apollo's current mixed_people/api_search endpoint deliberately obfuscates last names and omits emails/phones. Feed the returned person id into apollo_person_enrich to get contact data (that is what costs credits).

  • Phone reveals are asynchronous. reveal_phone_number=true requires a public HTTPS webhookUrl; Apollo POSTs the numbers there minutes later. The synchronous response carries a request_id — poll apollo_webhook_result with it if the callback is missed (results kept 30 days). Non-https:// webhook URLs are rejected by both the MCP tools and the gateway export.

  • Master API key. apollo_people_search and apollo_credit_usage require a master Apollo API key (Apollo returns 403 API_INACCESSIBLE otherwise).

  • No credit-balance API. Apollo only exposes per-endpoint rate-limit usage; the remaining credit balance lives in the Apollo UI (Settings → Billing).

  • Field projection. Every data tool accepts fields[] dot-paths to shrink responses; company search applies a slim default projection (pass ["*"] for full records).

Related MCP server: @louis030195/apollo-io-mcp

Usage

npm install
npm run build

# stdio transport (Claude Desktop, local MCP clients)
APOLLO_API_KEY=... node dist/transports/stdio.js

# streamable HTTP transport on :3000/mcp
APOLLO_API_KEY=... MCP_HTTP_TOKEN=... node dist/transports/http.js

Configuration (see .env.example): APOLLO_API_KEY (required), APOLLO_TIMEOUT_MS (1-600000, default 30000), APOLLO_AUDIT_LOG (JSONL audit trail; hashed targets, never raw arguments or secrets).

HTTP transport:

Variable

Default

Meaning

MCP_HTTP_HOST (or HOST)

127.0.0.1

Bind address.

PORT

3000

Listen port (1-65535).

MCP_HTTP_TOKEN

unset

Bearer token required on /mcp; at least 32 printable ASCII characters. Required when binding to a non-loopback address or with MCP_ALLOW_ANY_ORIGIN=true. Generate one with node -e "console.log(require('crypto').randomBytes(32).toString('hex'))".

MCP_HTTP_ALLOW_UNAUTHENTICATED

false

Start without a token on a non-loopback bind anyway (only when access is restricted by other means).

MCP_ALLOWED_ORIGINS

localhost origins

Comma-separated exact Origin values allowed. Requests without Origin (server-to-server) are allowed.

MCP_ALLOW_ANY_ORIGIN

false

Allow any Origin (requires a token).

MCP_ALLOWED_HOSTS

see below

Comma-separated host names accepted in the Host header. By default a loopback bind only accepts localhost names and its bind address; other binds do not check Host.

MCP_MAX_BODY_BYTES

10485760

Maximum request body size.

MCP_AUTH_FAILURE_LIMIT

20

Failed authentication attempts per client address and window before further failures get HTTP 429; 0 disables. Requests with a valid token are never throttled.

MCP_AUTH_FAILURE_WINDOW_MS

60000

Window for the limit above.

Invalid numeric or boolean values stop the server at startup with a message naming the variable. GET /healthz answers {"status":"ok"} without authentication, for container health checks.

Embedding (mcp-server-apollo/gateway)

The gateway export is built for hosts that serve several teams from one process and do their own per-user authorization:

import { createApolloGateway, apolloToolCatalog } from 'mcp-server-apollo/gateway';

const gateway = createApolloGateway({
  apiKey: teamApiKey,            // required; never read from the environment
  policy: { enableWrites: true }, // writes are off by default
});
const result = await gateway.callTool('search_contacts', { qKeywords: 'Jane' }, { caller: 'user-1' });
  • It talks to https://api.apollo.io only and reads no APOLLO_* variable.

  • apolloToolCatalog lists every tool with its risk level (read or write; none is destructive), the broad mark (no tool is broad) and every Apollo request it may make. The client refuses any other request.

  • Errors are the server's own texts chosen by HTTP status. An error result carries failure (HTTP status, Apollo's request id when a response header gives one in the form of an id, the method and the path template), never Apollo's body.

  • A key must be printable ASCII of at least 16 characters and may share no 6-character piece with the server's own texts; every output is checked in its final form and withheld when it holds a piece of the key.

Gateway tool

Risk

Apollo endpoint

search_capabilities

read

—

check_connection

read

GET /users/api_profile

companies_search

read + 1 credit/page

POST /mixed_companies/search

people_search

read (master key)

POST /mixed_people/api_search

person_enrich

read + credits

POST /people/match

people_bulk_enrich

read + credits

POST /people/bulk_match

org_enrich

read + 1 credit

GET /organizations/enrich

credit_usage

read (usage needs a master key)

GET /users/api_profile, POST /usage_stats/api_usage_stats

search_contacts, get_contact

read

POST /contacts/search, GET /contacts/{id}

search_accounts, get_account

read

POST /accounts/search, GET /accounts/{id}

search_deals, get_deal

read

GET /opportunities/search, GET /opportunities/{id}

search_tasks

read

POST /tasks/search

search_sequences

read

POST /emailer_campaigns/search

list_users

read (master key)

GET /users/search

list_email_accounts

read

GET /email_accounts

list_stages

read

GET /contact_stages, /account_stages, /opportunity_stages

create_contact, update_contact

write

POST /contacts, PATCH /contacts/{id}

set_contact_stage, set_contact_owner

write

POST /contacts/update_stages, /contacts/update_owners

create_account, update_account, set_account_owner

write

POST /accounts, PATCH /accounts/{id}, POST /accounts/update_owners

create_deal, update_deal

write

POST /opportunities, PATCH /opportunities/{id}

create_task, complete_task

write

POST /tasks, POST /tasks/{id}/complete

add_contacts_to_sequence

write (the sequence then sends email)

POST /emailer_campaigns/{id}/add_contact_ids

finish_contacts_in_sequence

write

POST /emailer_campaigns/remove_or_stop_contact_ids with mode mark_as_finished or stop, one sequence, up to 100 contacts; never remove, which takes the contacts' progress in the sequence with it

merge_contacts

destructive (cannot be undone)

GET /contacts/{id} for every contact, then POST /duplicate_contacts/merge with one group (the kept contact and up to 10 duplicates, so Apollo merges before it answers), then GET /contacts/{id} for each duplicate. merged: true only when the answer says Successfully Merged and every duplicate is gone (404, or marked deleted); otherwise "unknown". The duplicates as they were come back in before. Apollo deletes the duplicates for good; needs an admin key. Refused when any contact is synced to a CRM (salesforce_id, salesforce_contact_id, salesforce_lead_id or hubspot_vid set, or left out), since a merge can delete its record and activity in Salesforce or HubSpot; such contacts are merged in Apollo or the CRM. Merges run one at a time in the process

The owner of a contact or an account changes only through set_contact_owner and set_account_owner; the create and update tools take no owner, so a host can allow everyday edits without allowing a move to another user.

Apollo's API has no delete for contacts, accounts, deals or tasks; the only records the gateway removes are the duplicates of merge_contacts. Nothing manages users or settings, or reveals phone numbers (a reveal needs a public webhook that would receive personal data outside the host). An Apollo key can be scoped to selected endpoints or set as a master key, which reaches every endpoint; tools whose endpoint the key cannot reach fail with HTTP 403.

Security

  • The API key is read only from the server environment, sent only in the x-api-key header over HTTPS, and redacted from error messages and logs.

  • Tool calls pass a policy allowlist; anything unlisted is denied.

  • All tools are annotated read-only/non-destructive; credit-consuming tools state their cost in the description so agents confirm spend with the user.

  • HTTP transport binds to loopback by default, validates Origin and (on loopback binds) Host, caps body size, and refuses to start on a non-loopback address without MCP_HTTP_TOKEN.

  • Requests to Apollo never follow redirects, so the API key is not re-sent to another location; error bodies are read up to 64 KB and shortened.

  • Rate limits: HTTP 429 is retried with jittered backoff honouring retry-after; bulk enrichment runs at low bounded concurrency because Apollo limits bulk_match hard (documented 20/min).

Security model

  • The server uses one shared Apollo API key for every caller. Anyone who can call its tools acts with that key's access and credits.

  • MCP_HTTP_TOKEN is a single shared secret that authenticates callers of the HTTP endpoint; it does not identify individual users. Per-user authentication and authorization belong in an identity-aware gateway or proxy in front of this server.

  • Access to a tool is access to the data that tool can reach with the shared key; the policy allowlist limits which tools exist, not which records a caller may see.

  • The HTTP server does not terminate TLS. Run it on loopback or a private network, behind a TLS-terminating proxy when traffic leaves the host.

Development

npm run typecheck
npm test
npm run smoke:live   # needs a real APOLLO_API_KEY; uses ~1 credit

License

The code is source-available under the Functional Source License, Version 1.1, ALv2 Future License (FSL-1.1-ALv2).

In plain words:

  • Allowed: reading the code, running it, changing it, using it inside your own organisation (also commercially), using it for non-commercial education and research, and contributing changes back.

  • Not allowed: making it, or something built from it, available to others as a commercial product or service that competes with it, for example a hosted service with the same functionality.

  • Becomes Apache-2.0: each version is also licensed under the Apache License 2.0 from two years after it is released.

  • Earlier versions: versions released before 0.3.0 were licensed under Apache-2.0 and remain so.

The terms in LICENSE are what apply; this summary does not replace them. See also NOTICE.

Available Tools

8 tools
apollo_credit_usageGet API Usage / Rate Limits (Apollo)A
Read-onlyIdempotent

Report per-endpoint Apollo API usage against the minute/hour/day rate limits, plus the most recent rate-limit headers observed. Use before large batches to check headroom, and to answer "how much have we used?". Requires a master API key; consumes no credits. Note: Apollo exposes no API for the remaining credit balance — that is only visible in the Apollo UI (Settings > Billing and credits).

Inputs: no named parameters.

apollo_org_enrichEnrich Organization (Apollo)A
Read-onlyIdempotent

Fetch full firmographics for one company via Apollo: industry, keywords, employee count, revenue, funding events, technology stack (current_technologies / technology_names), department headcounts, and headcount growth rates. Provide at least one of domain, name, website, or linkedinUrl. Consumes 1 credit when a record is enriched. For Danish companies prefer the Lassox MCP (authoritative CVR registry data); use this for non-DK companies or Apollo-specific fields like technology stack.

Inputs: name, domain, fields, website, +1 more.

apollo_people_bulk_enrichBulk Enrich People (Apollo)A
Read-onlyIdempotent

Enrich up to 100 people via Apollo in one call. Chunks into bulk_match calls of 10, fans out with bounded concurrency, retries HTTP 429, and isolates per-item failures. Returns { total, succeeded, failed, creditsConsumed, requestIds, results[] } with results in input order. CONSUMES CREDITS per enriched record and reveal flags apply to EVERY person — confirm total credit cost with the user first. Apollo rate-limits bulk_match hard (documented 20/min). revealPhoneNumber requires webhookUrl. Emits MCP progress notifications when the client sends a progressToken.

Inputs: details (required), fields, webhookUrl, concurrency, +2 more.

apollo_person_enrichEnrich Person (Apollo)A
Read-onlyIdempotent

Match one person via Apollo and return their full profile (employment history, employer, departments, seniority). CONSUMES CREDITS when a record is enriched; setting revealPersonalEmails or revealPhoneNumber costs extra per your Apollo plan (typically ~1 credit per email, ~8 per mobile) — confirm with the user first. Phone numbers are NOT in the synchronous response: Apollo delivers them asynchronously to webhookUrl (required for phone reveals); poll apollo_webhook_result with the returned request_id if the callback is missed. Personal emails are not revealed for people in GDPR regions; you are the data controller for retrieved personal data.

Inputs: id, name, email, domain, +9 more.

apollo_search_capabilitiesSearch Apollo CapabilitiesA
Read-onlyIdempotent

Search the Apollo MCP server capabilities and examples. Use this first when deciding which Apollo tool to call.

Inputs: limit, query.

apollo_webhook_resultPoll Webhook Result (Apollo)A
Read-onlyIdempotent

Fetch the result of an asynchronous Apollo enrichment (phone-number reveal or waterfall) by request_id, in case the webhook callback was missed. Free (no credits); results are kept for 30 days. A 404 with retry_after_seconds means the result is not ready yet — wait before retrying.

Inputs: requestId (required).

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A4.4/5.0

    Scored across 8 tools

    Disambiguation5/5

    Each tool targets a distinct domain action (company search/Enrich, people search/enrich, credit usage, webhook results) with no overlapping purposes. Clear separation between sync and async operations, and between company and people workflows.

    Naming Consistency5/5

    All tool names follow the consistent pattern 'apollo_<action>_<target>', using snake_case throughout. Examples: apollo_companies_search, apollo_org_enrich, apollo_people_search.

    Tool Count5/5

    8 tools is an ideal scope for an Apollo API wrapper, covering search, enrichment, usage monitoring, and async handling without being overwhelming or sparse.

    Completeness4/5

    The set covers core CRUD-like operations (search, enrich, bulk enrich, usage check, async retrieval) but lacks direct update/delete endpoints, which are likely not exposed by Apollo's API. A minor gap but functional for typical use cases.

    Maintenance

    ActivityActive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    • Apollo.io MCP — company and people data via api.apollo.io, the caller's OWN Apollo account (fleet…

    • Official ZoomInfo MCP server. Search and enrich companies, contacts, and buyer intent signals.

      https://mcp.zoominfo.com/mcp
    • Your agent needs B2B contacts and the pipeline objects around them — find the company, find the person, get the email, then write it back where your team works. **What you can ask for** • "Find heads of engineering at Series-B SaaS companies in the Nordics, with emails." • "Enrich these companies with headcount, industry and funding." • "What roles is this company hiring for right now?" • "Create an account and a contact, then log this opportunity." • "Search our sequences for messages sent to this domain." **How to use it** Point any MCP client at https://mcp.aisa.one/apollo/mcp and sign in with OAuth — there is no key to create or paste. 54 tools: people and organisation search and enrichment, job postings, accounts, contacts, opportunities and their stages, custom fields, labels, notes, users, email accounts, sequence messages and phone-call search — reads and writes. **Why this rather than the source** The full object model, not just a search endpoint, so an agent can finish the job rather than hand you a CSV. **It is also a door to the rest** The same login reaches 26 sources and 580+ operations. Find the person here, then ask the same agent what their company's traffic looks like or what they rank for — without adding a second server. **What it costs** Finding and inspecting an operation is free. Running one is billed per call at API prices, with no seat and no monthly minimum, and every call takes max_price_usd so an agent cannot overspend by accident. **Where else it reaches** https://mcp.aisa.one/sales/mcp adds Similarweb and creator discovery around it.

    • Remote MCP server to enrich company profiles with structured B2B data and confidence scores.

    Related MCP Servers

    • A
      license
      B
      quality
      B
      maintenance
      MCP server for Apollo.io B2B database enabling people and company search, enrichment, and insights through conversational interfaces.
      9
      13,090 npm
      19
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      MCP server for Apollo.io B2B sales intelligence API. Enables searching and enriching people and organizations via natural language.
      7
      20 npm
      4
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      MCP server for the Apollo.io API that lets LLMs search and enrich people and company data.
      -