apollo-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@apollo-mcpFind managers and directors in Virginia"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
apollo-mcp
Apollo.io tools for agents, MCP clients, and the command line.
apollo-mcp exposes Apollo's B2B data APIs through a Model Context Protocol
server built with FastMCP 3. It also ships apollo-cli, a small
command-line wrapper for the most common search and enrichment workflows.
Highlights
45 MCP tools spanning prospect search, enrichment, CRM records, deals, tasks, sequences, email engagement, phone calls, and API usage stats.
Two transports — stdio for Claude Desktop, Claude Code, and local MCP clients; Streamable HTTP for hosted or remote deployments.
Per-request auth in HTTP mode so one environment key is never shared across remote clients or organizations.
Defensive request construction for Apollo's endpoint-specific wire-format quirks (see Apollo Wire-Format Notes).
A CLI for quick search and enrichment without writing any code.
288 tests — 255 unit plus 33 live integration tests, with the unit suite alone covering most of the package.
Related MCP server: apollo-io-mcp-server
Contents
Quickstart
git clone https://github.com/dyngai/apollo-mcp.git
cd apollo-mcp
uv sync --extra dev
cp env.example .env # then set APOLLO_API_KEY in .envRun the MCP server over stdio:
uv run apollo-mcpOr run a CLI command:
uv run apollo-cli search-people \
--person_titles "Manager,Director" \
--person_locations "Virginia"Installation
With uv
uv is the recommended workflow for local development:
uv sync # runtime dependencies
uv sync --extra dev # plus pytest, respx, coverageWith pip
pip install -e .
pip install -e ".[dev]"Both install the apollo-mcp and apollo-cli console scripts.
Configuration
python-dotenv is loaded automatically, so a local .env file works for stdio
and CLI usage.
Variable | Required | Default | Notes |
| stdio / CLI | — | Apollo API key used by local clients. |
| No |
| Override for testing or proxies. |
Several Apollo endpoints require amaster API key — user and stage
listings, deal mutations, sequence search, and API usage stats. Non-master
keys generally receive 403 API_INACCESSIBLE on those endpoints. Tools that
need one say so in their description.
MCP Server
apollo-mcp # stdio (default)
apollo-mcp --transport http # HTTP on 127.0.0.1:8000/mcp/
apollo-mcp --transport http --host 0.0.0.0 --port 9000 --path /api/mcp/
apollo-mcp --transport sse --port 8001 # legacy SSE transport
apollo-mcp --version
apollo-mcp --helpFlag | Default | Description |
|
| One of |
|
| HTTP/SSE bind address. |
|
| HTTP/SSE port. |
|
| HTTP path prefix. FastMCP preserves the trailing slash. |
Claude Desktop / Claude Code
For stdio-based clients, point the MCP client at apollo-mcp and pass the
Apollo key in the server environment:
{
"mcpServers": {
"apollo": {
"command": "apollo-mcp",
"env": {
"APOLLO_API_KEY": "your-apollo-api-key",
"APOLLO_BASE_URL": "https://api.apollo.io/api/v1"
}
}
}
}You can also use a virtualenv-relative command such as .venv/bin/apollo-mcp,
or run through uvx.
HTTP / Remote Clients
apollo-mcp --transport http --host 0.0.0.0 --port 8000The endpoint is then available at http://<host>:8000/mcp/, and every request
must carry its own Apollo key:
Authorization: Bearer <apollo-api-key>In HTTP mode the bearer token isrequired and APOLLO_API_KEY is never
used as a fallback, even when it is set in the server environment. That keeps
a shared environment key from leaking across organizations. Requests without
a bearer token fail with a clear "Authentication required" error.
Each distinct bearer token gets one long-lived ApolloClient, so HTTP
connections and TLS sessions are pooled and reused across tool calls rather
than renegotiated every time. The cache is bounded, and the least-recently-used
client is closed on eviction.
If you deploy behind a reverse proxy or TLS terminator, forward the configured
--path prefix unchanged.
Docker
docker build -t apollo-mcp .
docker run --rm -p 8080:8080 apollo-mcpThe container starts the HTTP transport on 0.0.0.0:8080/mcp/ as a non-root
user. Clients still need to send Authorization: Bearer <apollo-api-key>.
CLI
The CLI covers the highest-leverage search and enrichment commands.
Command | Purpose |
| Search for people. Requires |
| Search for companies. |
| Enrich a person by email, LinkedIn URL, or name + company. |
| Enrich a company by domain or name. |
| Bulk person enrichment via |
| Bulk company enrichment via |
| Job postings for an organization. |
| Full organization profile by ID. |
| Search news articles. |
# Search for people. Apollo requires at least person_titles for this flow.
apollo-cli search-people \
--person_titles "Manager,Director" \
--person_locations "Virginia"
# Find a specific person by enrichment instead of broad search.
apollo-cli enrich-person \
--first_name "John" \
--last_name "Doe" \
--organization_name "Company"
# Other examples.
apollo-cli enrich-person --email "tim@apollo.io"
apollo-cli search-companies --q "technology" --organization_num_employees_ranges "51,200"
apollo-cli org-jobs --id "5e66b6381e05b4008c8331b8" --page 2 --per_page 50Argument conventions
--key valueand--key=valueare both supported.Comma-separated values become arrays:
--person_titles "CEO,CTO,VP".Employee ranges keep their comma as one range:
--organization_num_employees_ranges "11,20"becomes["11,20"].Complex request bodies can be passed with
--json '{"q":"test","page":1}'.Bare digits become integers (
--page 2), but values with a leading zero stay strings so identifiers like--postal_code 02134are preserved intact.
apollo-cli --help
apollo-cli <command> --helpTool Catalog
Tool | Purpose |
| People search with Apollo-compatible filter mapping. |
| Company search with location, size, revenue, funding, jobs, and technology filters. |
| Single-person enrichment with compact output by default. |
| Reveal full contact info from an Apollo person ID. |
| Look up a person by Apollo ID. Use |
| Single-company enrichment by domain or name. |
| Bulk people enrichment. |
| Bulk organization enrichment. Requires at least one |
| Job postings for an organization. |
| Full organization profile by ID. |
| Top contacts at an organization. |
| News article search. Requires |
| Save people to "My Prospects". |
Tool | Purpose |
| Search your Apollo CRM contacts. |
| Match a single CRM contact. |
| Bulk-match CRM contacts. Rate limit: 100/hour, 20/minute. |
| Create a single CRM contact. |
| Update a CRM contact. |
| Create contacts in bulk (up to 100 per call). |
| List configured contact-stage IDs. |
Tool | Purpose |
| Search your Apollo CRM accounts. |
| Create a single CRM account. |
| Update a CRM account. |
| Create accounts in bulk. |
| List configured account-stage IDs. |
Tool | Purpose |
| Search deals/opportunities. |
| Create a deal. Requires a master API key. |
| Update an existing deal. Requires a master API key. |
| List configured pipeline stages. Requires a master API key. |
Tool | Purpose |
| Create one task scoped to one or more contacts. |
| Search tasks. |
| Create one task per contact in a list. |
| Mark multiple tasks complete. |
Tool | Purpose |
| Find emailer sequences/campaigns. Requires a master API key. |
| Add contacts to a sequence. |
| Remove or stop contacts in sequences. |
| Approve a sequence to start sending. |
| Abort an active sequence. |
| Archive a sequence. |
Tool | Purpose |
| Search sent emailer messages. |
| Get opens, clicks, replies, and bounces for a message. |
| Log a phone call. |
| Update a phone-call record. |
| List teammates. Requires a master API key. |
| View per-endpoint usage and rate limits. Requires a master API key. |
Apollo Wire-Format Notes
Apollo's API has several endpoint-specific request shapes that this package handles explicitly.
Request construction
People-search filters are sent as URL query parameters with bracket notation:
person_titles[]=VP&person_titles[]=CTO. Sending them in the JSON body is silently ignored and returns arbitrary results.People-search aliases such as
q,company_domains, andq_organization_domainsare normalized to the current Apollo fieldsq_keywordsandq_organization_domains_list[]. An explicitly supplied canonical field always wins over its alias.Range filters serialize with bracketed sub-keys —
revenue_range[min]=100— and booleans render lowercase (true/false) as Apollo expects.Company employee ranges accept dash format at the MCP boundary (
"11-20") and are normalized to Apollo's comma format ("11,20").Apollo uses
PATCHto update contacts, accounts, deals, and phone calls.bulk_enrich_organizationsexpects{"domains": [...]}, not objects;bulk_enrich_peopleexpects{"details": [...]}, not{"people": [...]}.Caller-supplied IDs interpolated into URL paths are URL-encoded to prevent path traversal and query-string injection.
Pagination
per_page is capped at 100. Apollo rejects larger values outright with
HTTP 422 (Per page not supported on people search, Per Page Limit Crossed.
on company search) rather than clamping them, so the MCP schema enforces
1–100 before a request is ever sent.
Responses
apollo_search_peopleandapollo_search_companiesalways return compact per-result summaries so MCP clients do not receive unnecessarily large payloads.apollo_enrich_personandapollo_get_personare compact by default but acceptfull=truefor the raw Apollo record — those can exceed 100 KB and may overflow MCP token limits, so reach for it only when you need the completeemployment_history/current_technologies/ organization block.The lower-level
ApolloClientnever trims; it always returns the raw response.Endpoints that answer
204 No Content— sequence approve, abort, and archive, and bulk task completion — decode to{}rather than raising.A non-JSON body (for example an upstream HTML error page returned with a 200) raises an
ApolloErrornaming the status, content type, and a body snippet, instead of a bare JSON decoding error.
Development
apollo_mcp/
apollo.py # ApolloClient: httpx wrapper, errors, redirects, query strings
server.py # FastMCP server and all tool registrations
cli.py # apollo-cli argument parsing and command dispatch
tests/
test_apollo.py # respx-mocked client tests
test_server.py # FastMCP tool tests with a fake Apollo client
test_cli.py # subprocess and in-process CLI tests
test_integration.py # live Apollo API tests, auto-skip without a keyuv sync --extra dev # install development dependencies
uv run apollo-mcp # run the server locally
uv run apollo-cli --help # run the CLI locallyTesting
# Unit tests only — no Apollo key required.
pytest -m "not integration"
# Live integration tests only.
APOLLO_API_KEY=... pytest -m integration
# Everything.
APOLLO_API_KEY=... pytest
# With coverage.
APOLLO_API_KEY=... pytest --cov=apollo_mcp --cov-report=term-missingThe integration suite is marked integration and auto-skips when
APOLLO_API_KEY is not set. Those tests are read-only — searches, enrichments,
and stage listings — so they do not mutate CRM data, though enrichment calls do
consume Apollo credits.
Suite | Tests | Notes |
Unit | 255 | Mocked transports, no network. |
Integration | 33 | Live Apollo API, requires a key. |
Total | 288 | Both run in well under a minute. |
The unit suite covers 92% of the package on its own; the badge above tracks that figure, since it is the one reproducible without an Apollo key.
The test counts and coverage percentage in this README are generated, not hand-maintained. After changing the suite, run:
python scripts/coverage_badge.py --write # refresh them
python scripts/coverage_badge.py --check # verify (CI runs this)Security
Do not commit Apollo API keys.
.envand.mcp.jsonare gitignored because they commonly contain secrets.API keys are never intentionally logged by the package.
HTTP transport requires
Authorization: Bearer <apollo-api-key>per request and never falls back to a server-side environment key.Path traversal and query-string injection regressions are covered in
tests/test_apollo.py.
If you open an issue, remove API keys, emails, tokens, and other sensitive customer data from logs and screenshots first.
Contributing
Contributions are welcome.
Fork the repository.
Create a feature branch.
Add or update tests for behavioral changes.
Run the relevant commands from Testing.
Open a pull request with a concise description of the change.
For API-shape changes, prefer tests that assert the exact HTTP method, path, query string, and JSON body sent to Apollo.
License
MIT. See LICENSE.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/dyngai/apollo-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server