How to integrate LeadMagic MCP with Atomic Agent

Connect Atomic Agent to LeadMagic MCP. Find emails for vp of sales, enrich account profile for acme inc, and more using natural language, with authentication handled for you.

LeadMagic logoLeadMagic
Api Key

LeadMagic is a data service that provides people, company, jobs, advertising, and enrichment data for sales and recruiting. Use it to enrich leads, discover candidates, and power targeted outreach with rich contact and company profiles.

109 Tools

Introduction

Atomic Agent is an open-source AI agent that runs on your machine and supports local models through llama.cpp. Connect it to 1,700+ apps through Composio, including LeadMagic.

This guide uses Atomic Agent's built-in Composio integration. You need Atomic Agent v0.5.6 or later, your own Composio API key, and a LeadMagic account. See the Atomic Agent documentation for installation instructions.

For exact tool slugs and parameter tables, see the tool catalog in the Composio docs.

Also integrate LeadMagic with

How Atomic Agent connects to LeadMagic

Atomic Agent connects to Composio's Tool Router over Streamable HTTP MCP. It discovers the tools needed for your request, and Composio handles account authentication.

Execution and account-connection tools follow Atomic Agent's configured approval policy. Review any approval prompt before allowing an action on your connected account.

Connect LeadMagic to Atomic Agent

  1. Sign up or sign in to the Composio dashboard. Copy your API key.
  2. In Atomic Agent, open the Integrations tab and select Composio. Select API key, press e, paste the key, and press Enter. The tools become available immediately, without a restart.
  3. Ask Atomic Agent to do something in LeadMagic. It searches Composio for the right tool.
  4. On first use, open the sign-in link returned in the chat. Connect your LeadMagic account, then return to Atomic Agent to continue.

Headless setup

Add the following line to ~/.atomic-agent/.env, replacing YOUR_COMPOSIO_API_KEY with your key. Start Atomic Agent after saving the file.

bash
COMPOSIO_API_KEY=YOUR_COMPOSIO_API_KEY

What is the LeadMagic MCP server, and what's possible with it?

The LeadMagic MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your LeadMagic account. It provides structured and secure access to people, company, job, advertising, enrichment, and account usage data, so your agent can find contacts, enrich companies, research jobs, inspect ads, and monitor credits on your behalf.

  • Contact discovery and enrichment: Have your agent find people by role, locate work or personal emails and mobile numbers, retrieve professional profiles, and detect job changes.
  • Company research and targeting: Let the agent enrich company records, identify competitors and lookalike companies, find employees, review funding history, and inspect technology stacks.
  • Job market research: Direct your agent to find matching job openings, export search results, and download completed bulk job results for sales or recruiting research.
  • Advertising intelligence: Instruct your agent to retrieve detailed information about specific B2B ads for campaign and competitor research.
  • Usage and data controls: Have your agent check credit balances and account usage, manage credit budgets, track bulk work, and maintain email suppression lists.

Use LeadMagic from Atomic Agent

With your account connected, ask Atomic Agent to work with LeadMagic in natural language. You can connect more apps through the same Composio integration as you need them.

Visit the Atomic Agent website or inspect the Atomic Agent source code.

Troubleshooting

Why is my API key rejected?

Copy the key directly from the Composio dashboard. Atomic Agent requires ASCII characters because it sends the key in an HTTP header. Remove any extra characters introduced when copying.

Why are Composio tools unavailable after saving a key?

Check that you use Atomic Agent v0.5.6 or later and that Composio is enabled in your configuration. A "composio": { "enabled": false } setting disables the integration while keeping the saved key on disk.

Does Composio have a free plan?

The Hobby plan includes 100,000 tool calls per month. Composio-managed OAuth apps have a lower included allowance. See Composio pricing for the current limits that apply to your connection.

TOOLS

Supported Tools

Every LeadMagic action and event your agent gets out of the box.

Add Emails To Suppression List

Add a non-empty plaintext email list to a suppression list created by the workflow, using its lifecycle-owned list ID and addresses.

Create Credit Budget

Create a persistent credit budget for one LeadMagic scope and record its returned ID for later updates or deletion.

Create Email Suppression List

Create an owned suppression list from a unique list ID and non-empty plaintext email list; capture the returned ID for later operations and delete the list at the end of its lifecycle.

Create Job Search Export V3

Synchronously export up to 5,000 matching jobs.

Delete Credit Budget

Permanently delete one credit budget using only the ID captured from its creation in the same owned lifecycle.

Delete Email Suppression List

Permanently delete an entire suppression list and its stored hashes using only the list ID captured from its creation in the same owned lifecycle.

Detect Job Change

Check whether a person has changed jobs relative to an expected company; a resolved check costs 3 credits and PROFILE_NOT_FOUND is free.

Download Bulk Job Results CSV

Download result rows for an owned bulk job as an offloaded CSV using a job ID from the same submission chain; downloads exceeding 50 MiB fail.

Enrich Company V1

Call POST /v1/companies/company-search to enrich one company from its domain, name, or business profile identifier.

Enrich Company V3 Docs Alias

Search or look up companies through the /v3/companies/enrich compatibility route and return one cursor-controlled page.

Find Company Competitors V1

Find competitors from a company domain, profile, or name.

Find Company Employees V1

Find up to 10 employees at one company, including names, titles, locations and professional profile URLs; each returned employee costs up to 1 credit.

Find Jobs V1

Find jobs with LeadMagic V1 filters using your own LeadMagic connection, with a page size capped at 50.

Find Lookalike Companies V3

Find similar companies from a seed domain, name, or description; managed requests require a bare domain and return at most 25 companies.

Find Mobile Phone

Find one person's mobile phone number from a professional profile URL or known email.

Find Personal Email

Find one person's personal email addresses from a professional profile URL or identifier.

Find Person By Role V1

Find one person by job title at a specified company using a connected API key; a found match costs 2 credits.

Find Work Email

Find one person's work email from their name and company domain or name.

Find Work Email From B2B Profile

Find one person's work email from a professional profile URL or slug.

Get Account Overview

Get the connected workspace's available credits, API-key permission summary, current rate limits, and today's usage using your own LeadMagic API key.

Get Analytics All Time Summary

Get lifetime account request, credit, product, success, and latency statistics, optionally restricted to a date range, using your own LeadMagic API key.

Get Analytics Credit History

Get LeadMagic credit consumption history with a daily breakdown using your own LeadMagic API key.

Get Analytics Daily Metrics

Get daily request, credit, latency, and error metrics for the last 1 to 90 days using your own LeadMagic API key.

Get Analytics Day Breakdown

Get the per-product request and credit breakdown for one date using your own LeadMagic API key.

Get Analytics Products

Get per-product LeadMagic usage with request, credit, and success metrics using your own LeadMagic API key.

Get Analytics Usage

Get daily LeadMagic usage with request, credit, and chargeable-rate totals using your own LeadMagic API key.

Get B2B Ad Details V1

Get full details for a specific B2B ad from its library URL, detail path, or numeric ID.

Get B2B Profile From Email

Find one person's professional profile from a supplied work or personal email using your own LeadMagic API key; a found complete profile costs 10 credits.

Get B2B Profile From Profile URL

Retrieve one person's professional profile, including employment, education, certifications, and honors, from a profile URL or slug.

Get Batch

Read status, progress, cost, and metadata for a mixed-product batch by its exact batch identifier using your own LeadMagic API key.

Get Batch Campaign Metrics

Read aggregate usage and success metrics for a batch campaign using your own LeadMagic API key.

Get Batch Client Metrics

Read aggregate batch usage and success metrics for one client UUID using your own LeadMagic API key.

Get Bulk Capabilities

Retrieve LeadMagic bulk submission limits and operational features to help plan bulk jobs.

Get Bulk Job

Read status, progress, timestamps, and reported finalized credit usage for one owned bulk job.

Get Bulk Job Progress

Return a compact progress snapshot for frequent polling of one bulk job owned by the connected workspace.

Get Company Funding V1

Call POST /v1/companies/company-funding to get complete funding history and related company intelligence by domain or name.

Get Company Funding V3 Company Docs Alias

Search company funding through POST /v3/companies/company-funding and return one cursor-controlled page.

Get Company Funding V3 Docs Alias

Search company funding through POST /v3/companies/funding and return one cursor-controlled page.

Get Company Technographics V1

Get a company's technology stack from its domain.

Get Credit Balance V1

Check the connected LeadMagic workspace's current credit balance.

Get Credit Budget Status

Read current limits, remaining credits, and exceeded state for LeadMagic credit budgets.

Get Credit Service Health V1 Docs Only

Check the connected LeadMagic API key's credit-service authentication status.

Get Email Suppression List

Return one offset-controlled page of details and SHA-256 email hashes for a suppression list created by the workflow, continuing with the returned next_offset.

Get Job Board Stats V3

Return job search dataset statistics through the job-board integration route.

Get Job Search Catalogs

Return the free filter catalogs used by job search, including countries, regions, job types, industries, company types, and seniority values.

Get Job Search Dataset Stats V3

Return free public statistics for the LeadMagic Jobs Search index, including coverage and freshness.

Get Search Stats

Return free cached coverage, capabilities, and top dimensions for selected LeadMagic search products; requested sections may be absent when unavailable.

List Batch Clients

List existing organization-scoped client records used to segment batch work using your own LeadMagic API key.

List Batch Client Webhooks

List delivery webhooks configured for one batch client using your own LeadMagic API key.

List Batches

List one page of batches for the connected organization, optionally filtered by product, status, or client.

List Bulk Job Errors

Check a page of bulk-job errors for a job owned by the connected workspace, using offset pagination and an optional status filter.

List Bulk Job Events

Return the append-only event log, newest first, for one owned bulk job.

List Bulk Job Results

Return one offset page of row-level JSON results for an owned bulk job, with an optional status filter and a page size of up to 1,000 rows.

List Bulk Jobs

Return one bounded offset page of bulk jobs owned by the connected account, newest first, with next_offset for continuation.

List Credit Budgets

List credit budgets configured for the connected LeadMagic workspace, including their identifiers.

List Email Suppression Lists

Read suppression-list summaries for the connected workspace for discovery.

List External Batch Providers

List organization-level external enrichment provider configurations.

List Job Company Types V1

List company type IDs for the legacy V1 Jobs Finder API.

List Job Countries V1

List country codes for the legacy V1 Jobs Finder API.

List Job Industries V1

List industry IDs for the legacy V1 Jobs Finder API.

List Job Occupation Taxonomy V3

Autocomplete LeadMagic's broad-to-specific occupation taxonomy and return canonical IDs, labels, levels, and paths.

List Job Regions V1

List region IDs for the legacy V1 Jobs Finder API.

List Job Search Company Suggestions V3

Autocomplete companies or resolve an exact domain into canonical company IDs and card data for Job Search filters.

List Job Search Location Suggestions V3

Autocomplete countries, regions, states, and cities into canonical IDs for exact Job Search geo filters.

List Job Search Role Suggestions V3

Autocomplete role names into canonical occupation taxonomy IDs for Job Search filters.

List Job Search Tag Suggestions V3

Autocomplete normalized job tags with tag-type and occupation taxonomy metadata for Job Search filters.

List Job Search Title Suggestions V3

Autocomplete searchable job title phrases with occupation taxonomy metadata for Job Search filters.

List Job Types V1

List job type IDs for the legacy V1 Jobs Finder API using your own LeadMagic connection.

Lookup Company Domain V3 Docs Alias

Look up companies through POST /v3/companies/domain-lookup using your own LeadMagic connection, returning one cursor-controlled page.

Lookup Company V3 Docs Alias

Look up companies through POST /v3/companies/lookup using your own LeadMagic connection, returning one cursor-controlled page.

Pause Bulk Job

Pause a queued or running LeadMagic bulk job owned by the connected workspace, changing its processing state.

Preview Mixed Batch Cost

Estimate the maximum credit cost and budget impact of a mixed-product batch payload using a connected API key.

Refresh Credit Cache V1 Docs Only

Request a refresh of the connected workspace's credit cache using a connected API key.

Remove Emails From Suppression List

Remove specific email suppressions from a list created by the workflow, allowing those addresses to be processed again, using the lifecycle-owned list ID and previously added plaintext addresses.

Resolve Job Search Filters V3

Resolve job-search companies, tags, occupation taxonomy, locations, and titles into canonical filter values using a connected API key.

Restart Bulk Job

Destructively restart a LeadMagic bulk job in full, for failed rows only, or from a zero-based row or shard using a connected API key.

Resume Bulk Job

Resume a paused LeadMagic bulk job using a connected API key; this mutates processing state and may continue the job's existing charged work.

Review Bulk Job

Resume or irreversibly cancel an owned bulk job using a connected API key.

Search B2B Ads V1

Search for B2B ads by company domain or name.

Search Companies

Search or look up companies through POST /v3/companies/search, returning one page with a limit of 50; search charges depend on the plan.

Search Companies V1 Legacy Docs Alias

Search companies through the legacy POST /v1/companies/search compatibility route, returning one cursor-controlled page.

Search Companies V3 Company Hyphenated Docs Alias

Search companies through POST /v3/companies/company-search, returning one cursor-controlled page.

Search Google Ads V1

Search for Google ads run by a company.

Search Jobs

Search jobs by title, company, location, taxonomy, tags, salary, seniority, date, and work arrangement using your own LeadMagic connection, returning one cursor-controlled page of up to 5 jobs.

Search Jobs V1 Legacy Docs Alias

Search jobs through POST /v1/jobs/search using your own LeadMagic connection, returning one cursor page.

Search Jobs V2 Legacy Docs Alias

Search jobs through POST /v2/jobs/search using your own LeadMagic connection, returning one cursor page.

Search Jobs V3 Hyphenated OpenAPI Alias

Search jobs through POST /v3/jobs-search using your own LeadMagic connection and return one cursor-controlled page of up to 5 jobs.

Search Jobs V3 Singular Docs Alias

Search jobs through POST /v3/job-search using your own LeadMagic connection, returning one cursor page.

Search Meta Ads V1

Search for Meta ads by company domain or name.

Search People

Search people by company, title, role, free text and contact availability, returning one cursor-controlled page without requesting raw email or mobile details.

Search People V1 Legacy Docs Alias

Search people through the legacy POST /v1/people/search compatibility route, returning one base-only cursor page without requesting raw contact details.

Search People V2 Legacy Docs Alias

Search people through the legacy POST /v2/people/search compatibility route, returning one base-only cursor page without requesting raw contact details.

Search People V3 By Title Docs Alias

Search people through POST /v3/people/by-title, returning one base-only cursor page without requesting raw contact details.

Search People V3 Company Docs Alias

Search people through POST /v3/people/company-search, returning one cursor page without requesting raw contact details.

Search People V3 Contacts By Title Docs Alias

Search people through POST /v3/people/contacts-by-title, returning one base-only cursor page without requesting raw contact details.

Search People V3 Employees Docs Alias

Search people through POST /v3/people/employees, returning one base-only cursor page without requesting raw contact details.

Search People V3 Full Docs Alias

Search for people using the V3 full-search alias, with company and people filters and cursor pagination.

Search People V3 Icp Docs Alias

Search people through POST /v3/people/icp-search, returning one base-only cursor page without requesting raw contact details.

Search People V3 Lookalike Docs Alias

Search people through POST /v3/people/lookalike, returning one base-only cursor page without requesting raw contact details.

Search People V3 Mixed Docs Alias

Search people through POST /v3/people/mixed-search, returning one cursor page without requesting raw contact details.

Search People V3 Singular Docs Alias

Search people through POST /v3/person/search, returning one cursor page of base person data without requesting raw contacts.

Submit Bulk Job

Create one asynchronous bulk enrichment job using exactly one input mode: inline rows, CSV, a remote file, or a scrape.

Submit Bulk Local Leads Job

Create a long-running local-leads bulk job from keywords and cities; each keyword-city combination may be charged.

Submit Mixed Product Batch

Create an asynchronous mixed-product enrichment batch of up to 500 items.

Update Batch Metadata

Update metadata or the client association for an owned batch during its mutable window.

Update Bulk Job Priority

Change the priority of a queued or running LeadMagic bulk job owned by the connected workspace.

Update Credit Budget

Update one or more controls on a credit budget created and owned by the caller, using its ID from the owned budget lifecycle.

Validate Bulk Submission

Validate one bulk input mode and its options using a connected API key without persisting or processing a job.

Validate Email

Check one email address for deliverability and return mail-server and company context when available.

FAQ

Frequently asked questions

Start with LeadMagic.It takes 30 seconds.

Managed auth, hosted MCP servers, and every LeadMagic tool your agent needs.Free to start.

Start building