Blog
guide

How to Connect Apollo.io to Claude Code Using Sequel

Musthaq Ahamad
Musthaq Ahamad
How to Connect Apollo.io to Claude Code Using Sequel

Apollo.io is where sales teams do B2B research and keep their prospect list. Claude Code is Anthropic's AI coding CLI that runs in your terminal. Sequel's MCP server connects the two, so you can search Apollo's database and slice your own saved contacts without loading the Apollo UI.

This guide walks you through the full setup in four steps.

What You'll Accomplish

By the end of this guide, you'll be able to open a terminal, run Claude Code, and ask questions like:

  • "Find VPs of Sales at US SaaS companies with 50 to 200 employees."
  • "Which of our Apollo contacts were added in the last 30 days?"
  • "List our accounts in the Negotiation stage, sorted by last activity."

Claude Code will use Sequel's MCP server to call Apollo's search API and return the results in your terminal.

Prerequisites

  • A Sequel account: Sign up free at sequel.sh
  • An Apollo.io account with access to Settings → Integrations → API
  • An Apollo master API key. The People and Organization search endpoints require master access, so a scoped key will not work for prospecting
  • Apollo credits if you plan to search the global database. Searching your own saved contacts and accounts is free
  • Claude Code installed: run npm install -g @anthropic-ai/claude-code if you haven't already

Step 1: Connect Apollo.io to Sequel

Sign in to sequel.sh and click Data Sources in the left sidebar.

Sequel Data Sources page

Click New Connection. On the "Choose a connector" page, select Apollo.io.

Choose a connector

Now create the key in Apollo. Go to Settings → Integrations → API → Create New Key and enable master access. Copy the key.

Paste it into the API key field in Sequel and give the connection a name like Apollo. Sequel passes it in the X-Api-Key header on every request.

Click Connect. Sequel verifies the key against the Apollo API. A green check means it's live.

Tip: master access is the step people miss. Without it the connection saves fine and your saved contacts work, but every global prospect search comes back empty. If that's what you're seeing, recreate the key with master enabled.

Step 2: Get Your Sequel API Key

Click Settings in the left sidebar, then select API Keys.

Sequel API Keys page

Click New key, name it claude-code-apollo, and copy the key. It starts with sql_. Treat it like a password.

Shortcut: if you have the Sequel CLI installed, sequel install claude-code creates the key and writes the Claude Code config for you. That covers Steps 2 and 3 in one command.

Step 3: Configure Claude Code to Use Sequel MCP

In your terminal:

claude mcp add --transport http sequel https://api.sequel.sh/mcp \
  --header "Authorization: Bearer sql_your_api_key"

Replace sql_your_api_key with the key from Step 2. Add --scope user before --transport to install it globally for every project. Verify with:

claude mcp list

You should see sequel in the list of configured MCP servers.

Step 4: Query Your Apollo Data

Start a Claude Code session and try these:

Find VPs and Directors of Engineering at SaaS companies in the US with 50 to 200 employees.
Which of our saved Apollo contacts were added in the last 30 days, and at which accounts?
List our accounts headquartered in Canada, sorted by employee count.

The first query hits Apollo's global database and uses credits. The last two read your own saved records and cost nothing.

What You Can Do Now

  • Build a target list without the UI: ask "Find heads of data at fintech companies in the EU with more than 500 employees."
  • Audit your own CRM: ask "Which of our Apollo accounts have no contacts saved against them?"
  • Territory planning: ask "Break down our saved accounts by country and headcount band."
  • Watch pipeline hygiene: ask "Show me accounts with no recorded activity in the last 60 days."
  • Cross-source analysis: with Postgres or HubSpot also connected, ask "Match our Apollo accounts against the customers table in Postgres and show which prospects aren't customers yet." That comparison is the part Apollo cannot answer on its own.

Try Sequel

Meet your always-on data analyst.

An AI data analyst that connects to all your data and answers questions with reports and visualizations. Free for up to 3 seats - no credit card required.

Get started free

Frequently asked questions

Do I need an Apollo master API key, or will a scoped key work?

You need a master key. Apollo's People and Organization search endpoints reject scoped keys, so create the key in Settings, Integrations, API with master access enabled. A scoped key will connect but those two searches will fail or return nothing.

Does querying Apollo through Sequel consume my Apollo credits?

Only for two of the four tools. Search People and Search Organizations hit Apollo's global prospect database and consume credits per Apollo's pricing. Search Contacts and Search Accounts read your own saved CRM records and consume no credits at all.

Can I get email addresses and phone numbers from People search?

No. Apollo's People search endpoint does not return email addresses or phone numbers, so Sequel cannot surface them either. You get firmographic and role data - job title, seniority, location, employer, and company size.

Can Claude Code add or update records in Apollo?

No. The connector ships four search tools and nothing else. It cannot create, update, enrich, or delete any Apollo record, and it cannot enroll anyone in a sequence.

What is the difference between contacts and people in Apollo?

People and Organizations are Apollo's global database of everyone and every company it knows about, used for net-new prospecting. Contacts and Accounts are the records your team has actually saved into Apollo, which is your CRM. Ask about "our contacts" for the second kind.

Why is Apollo rejecting my API key?

If you see is_logged_in=false, the key is wrong or has been rotated. Create a fresh key under Settings, Integrations, API and paste it again. If the connection works but People search fails specifically, the key was created without master access.

Written by

Musthaq Ahamad
Musthaq Ahamad

Co-founder and CEO of Sequel. Previously built developer tools and data infrastructure. Passionate about making data accessible for everyone.