Connector guide9-minute read29 MCP tools7 languages

PhantomBuster to MCP: Launch Phantoms, Follow Runs, Read Results and Leads Lists in any AI Agent

Drive a PhantomBuster workspace from any AI agent: list and read your agents (Phantoms), launch, schedule and stop them, follow their runs and read the results, edit their input and schedule, work with leads lists and stored leads, and check plan usage. API v2 with an API key; deletes and the emergency unschedule install switched off.

HCBy HelpCode teamUpdated 9 min read Open-source on GitHub

No credit card · 7-day trial · Self-host alternative available

PhantomBuster

PhantomBuster

PhantomBuster lead extraction and outreach automation: list, launch, schedule and stop agents (Phantoms), follow their runs and read the results, leads lists and stored leads, and plan usage. API v2 with an API key.

tools

29

Region

INTL

Category

Data Enrichment

Authentication

API Key

Required env vars

PHANTOMBUSTER_API_KEY
Install in one click on Cloud

7-day free trial · No credit card

  • 7-day free trial
    No credit card required
  • GDPR & SOC 2 ready
    EU data residency, audit logs
  • Open-source on GitHub
    Open source · AGPL-3.0
  • Works with ChatGPT, Claude, Gemini
    Any MCP-compatible client

Skip the install. Get this working in under 2 minutes.

Start a free trial on cloud.anythingmcp.com, add the PhantomBuster in one click, then point your AI client (Claude, ChatGPT, Copilot or Cursor) at the generated MCP endpoint. No Docker, no git clone, zero engineering experience required.

Start free trial

Summary

Drive a PhantomBuster workspace from any AI agent: list and read your agents (Phantoms), launch, schedule and stop them, follow their runs and read the results, edit their input and schedule, work with leads lists and stored leads, and check plan usage. API v2 with an API key; deletes and the emergency unschedule install switched off.

Try asking

Example prompts for PhantomBuster

Click any prompt to copy it. Paste into Claude, ChatGPT, Cursor, Gemini, Copilot or OpenClaw to run it against this connector.

PhantomBuster · live via MCP
Share
Opus 4.7

Claude is AI and can make mistakes. Please double-check responses.

💡 No install? Use cloud.anythingmcp.com directly. Sign in, click Connectors → PhantomBuster, paste your credentials, mint an MCP API key and you're done. No Docker, no git clone, no local server.

PhantomBuster

Drive a PhantomBuster workspace from any AI agent: list and read your agents (Phantoms), launch, schedule and stop them, follow their runs and read the results, edit their input and schedule, work with leads lists and stored leads, and check plan usage. API v2 with an API key; deletes and the emergency unschedule install switched off.

Setup

Setting up takes about 2 minutes. You need a PhantomBuster workspace with the Phantoms you want the AI to run.

  1. In PhantomBuster open Workspace settings (https://phantombuster.com/workspace-settings, also in the navbar menu), go to API Keys and add a key. It is shown only once: copy it.
  2. Paste it into PHANTOMBUSTER_API_KEY. It is sent in the X-Phantombuster-Key header and gives full access to that one workspace.
  3. Install the connector and run phantombuster_get_org: it shows the workspace, its plan and time zone and confirms the key.

What it reads: the workspace with plan, time zone and daily limits; plan usage (execution time, email, AI, captcha and SERP credits and storage, today and this month, with the next reset); the runs executing right now; CSV exports of usage per agent and per run over the last N days (at most about 6 months); the dashboard folders. Your agents with script, schedule, last result and saved input, the deleted agents, and the scripts with their manifest (the input fields an agent of that script accepts). The runs (containers) of an agent with status, times and exit code, their console log and their result data. The leads lists of the workspace storage with their saved filter, and the leads matching a list (name, LinkedIn profile and company, job title, location, emails and the other stored fields).

What it writes: launches an agent now (phantombuster_launch_agent) or within the next N minutes (phantombuster_launch_agent_soon), stops a running agent (phantombuster_abort_agent, with soft_abort the Phantom finishes its current step and saves what it has), changes an agent's name, saved input, schedule (launch_type, repeated_launch_preset), time limit and notifications or creates a new agent from a script (phantombuster_save_agent, which never starts a run), creates or changes leads lists and stores or updates single leads.

Launching is real: a run acts on the social accounts connected in PhantomBuster (it visits profiles, sends connection requests or messages) and uses the plan's execution time. Before a launch the AI shows you the agent, its input and the volume and waits for your yes. Too many actions a day can get a LinkedIn account restricted, so keep the daily limits the Phantom suggests. Session cookies and connected accounts are set up in PhantomBuster itself; never paste a cookie into the chat.

Input for one run: argument replaces the saved input for that run (and is stored too with save_argument); bonus_argument merges a few fields over the saved input for one run only. The field names come from the script manifest (phantombuster_get_agent with with_manifest: "true"), for example spreadsheetUrl or numberOfProfiles.

Following a run: the launch returns a containerId. The AI then polls phantombuster_get_agent_output about once a minute, reading only the new log lines with from_output_pos and prev_container_id, until the status is finished. The data of a run comes from phantombuster_get_container_result; the files are also at https://phantombuster.s3.amazonaws.com/<orgS3Folder>/<s3Folder>/result.csv (and result.json), with both folders from phantombuster_get_agent. Two agents can share a name, so the AI always works with agent ids.

Leads lists: a list is a saved filter over the stored leads and updates itself as Phantoms store new leads. A filter is {"and": [ ... ]} of clauses such as {"filter": {"linkedin_job_title": {"entity": "lead", "operator": "contains", "valueToCompare": "CTO"}}}, nested and / or, or {"__global_search__": "text"}. Lead fields are snake_case (linkedin_job_title, location, professional_emails), company fields camelCase with "entity": "company" (industriesV2, employeeCount). The leads storage tools use PhantomBuster's beta API.

Switched off at install: phantombuster_delete_leads (cannot be undone), phantombuster_delete_lead_list (the leads stay in storage), phantombuster_delete_agent (its past runs and result files are no longer shown) and phantombuster_unschedule_all_agents (the emergency stop that turns every agent to manual launch). A workspace admin turns them on when the team needs them.

Data formats: ids are strings of digits. Dates are Unix timestamps in milliseconds. Run status is starting, running, finished, launch error or never launched; exitCode 0 with endType finished means success. Usage values are seconds of execution time and counts of credits.

Paging: phantombuster_list_containers returns limit runs, newest first; for older ones the AI passes the endedAt of the last run as before_ended_at. phantombuster_list_leads_in_list pages with page_size and offset (include_total_count gives the total). The other lists return everything at once. The list of PhantomBuster's store scripts is several MB, so the AI filters it with script_ids.

Common errors: 401 "API key not found" means a wrong or revoked key. 400 means a missing or wrong parameter, or a launch argument that is too big. 404 is an unknown id. A launch fails when the plan's execution time is used up or too many runs are already going in parallel (maxParallelism).

The connector does not connect social accounts or handle session cookies, does not edit Phantom code (scripts are read-only) and does not change the plan.

Prerequisites: PHANTOMBUSTER_API_KEY

Install the connector locally

curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d

Open http://localhost:3000/connectors/store, pick PhantomBuster and paste in the env vars listed under Prerequisites.

Available tools

ToolWhat it does
phantombuster_get_orgThe workspace (org) the API key belongs to: id, name, plan, time zone, s3Folder (needed to build result file URLs) and the daily limits of…
phantombuster_get_org_resourcesPlan usage of the workspace: execution time, email credits, AI credits, captcha, SERP credits and storage used today and this month, with…
phantombuster_list_running_containersRuns (containers) that are executing right now in the workspace, across all agents
phantombuster_export_agent_usageCSV export of execution time and resource use per agent over the last N days (at most about 6 months)
phantombuster_export_container_usageCSV export of every run (container) over the last N days with its duration and resource use, optionally for one agent only
phantombuster_list_agent_groupsFolders (agent groups) of the dashboard and the order of the agents inside them
phantombuster_list_agentsAll agents (Phantoms set up in the workspace) with id, name, script, launch type and schedule, last run end type and exit code, running…
phantombuster_get_agentOne agent with its full settings: script, saved argument (input), schedule (launchType, repeatedLaunchTimes), notifications, limits…
phantombuster_get_agent_outputStatus and console output of the most recent run of an agent: containerId, status (starting, running, finished, launch error, never…
phantombuster_list_deleted_agentsAgents that were deleted from the workspace, with their former ids and names
phantombuster_list_containersRuns (containers) of one agent, newest first: id, status, launch type, start and end time, exit code and end type
phantombuster_get_containerOne run (container): status, launch and end time, exit code, end type and retry number; optionally its output and result object
phantombuster_get_container_outputConsole output (log) of one run of an agent, as JSON or as plain text
phantombuster_get_container_resultThe result object of one run: the data the Phantom produced (often a JSON string of rows, or links to the result CSV and JSON files)
phantombuster_list_scriptsScripts (Phantom code) the workspace owns: id, name, default branch and dates
phantombuster_get_scriptOne script by id: name, org, branches and manifest (the argument fields an agent of this script accepts)
phantombuster_list_lead_listsLeads lists of the workspace storage (beta API): id, name, description, the saved filter that defines the list, tags and dates
phantombuster_get_lead_listOne leads list of the workspace storage by id: name, description, tags and the saved filter
phantombuster_list_leads_in_listLeads that match a leads list (beta API), page by page: name, LinkedIn profile and company, job title, location, emails and the rest of the…
phantombuster_launch_agentStarts a run of an agent now (adds it to the launch queue) and returns the containerId of the new run
phantombuster_launch_agent_soonSchedules one run of an agent within the next N minutes (a one-time delayed launch)
phantombuster_abort_agentStops the running run(s) of an agent. soft_abort lets the Phantom finish its current step and save what it has
phantombuster_save_agentUpdates an agent's settings (with agent_id) or creates a new agent from a script (without agent_id, with script_id): name, saved argument…
phantombuster_save_lead_listCreates a leads list (without list_id) or replaces the filter, name and description of one (with list_id)
phantombuster_save_leadStores one lead in the workspace storage (beta API), or updates the lead with the same LinkedIn profile URL
phantombuster_delete_leadsDeletes leads from the workspace storage by id
phantombuster_delete_lead_listDeletes a leads list (the saved filter; the leads stay in storage)
phantombuster_delete_agentDeletes an agent with its schedule; its past runs and result files are no longer shown
phantombuster_unschedule_all_agentsEmergency stop: turns off the automatic launch of every agent in the workspace (all become manual)

Example prompts

  • "Which of my Phantoms ran in the last 24 hours, and did any of them end with an error?"
  • "Launch my Sales Navigator Search Export agent with the search URL I give you, limited to 100 profiles. Show me the input first."
  • "How much execution time and how many email credits are left on our plan this month?"
  • "Create a leads list of all stored leads whose job title contains CTO and who are located in Germany."
  • "Change the schedule of my LinkedIn Profile Scraper to run once a day, and tell me when it runs next."

Next steps

Was this guide helpful?

Your PhantomBuster agent is one click away.

Install the connector, paste the key, prompt your AI client. Free for 7 days, no credit card.

Related guides

Connectors

How to Connect PhantomBuster to ChatGPT via MCP

Drive a PhantomBuster workspace from any AI agent: list and read your agents (Phantoms), launch, schedule and stop them, follow their runs and read the results, edit their input and schedule, work with leads lists and stored leads, and check plan usage. API v2 with an API key; deletes and the emergency unschedule install switched off.

Connectors

How to Connect PhantomBuster to Claude via MCP

Drive a PhantomBuster workspace from any AI agent: list and read your agents (Phantoms), launch, schedule and stop them, follow their runs and read the results, edit their input and schedule, work with leads lists and stored leads, and check plan usage. API v2 with an API key; deletes and the emergency unschedule install switched off.

Connectors

How to Connect PhantomBuster to Cursor via MCP

Drive a PhantomBuster workspace from any AI agent: list and read your agents (Phantoms), launch, schedule and stop them, follow their runs and read the results, edit their input and schedule, work with leads lists and stored leads, and check plan usage. API v2 with an API key; deletes and the emergency unschedule install switched off.

Connectors

How to Connect PhantomBuster to Gemini via MCP

Drive a PhantomBuster workspace from any AI agent: list and read your agents (Phantoms), launch, schedule and stop them, follow their runs and read the results, edit their input and schedule, work with leads lists and stored leads, and check plan usage. API v2 with an API key; deletes and the emergency unschedule install switched off.

Connectors

How to Connect PhantomBuster to Meta Muse via MCP

Drive a PhantomBuster workspace from any AI agent: list and read your agents (Phantoms), launch, schedule and stop them, follow their runs and read the results, edit their input and schedule, work with leads lists and stored leads, and check plan usage. API v2 with an API key; deletes and the emergency unschedule install switched off.

Connectors

How to Connect PhantomBuster to Microsoft Copilot via MCP

Drive a PhantomBuster workspace from any AI agent: list and read your agents (Phantoms), launch, schedule and stop them, follow their runs and read the results, edit their input and schedule, work with leads lists and stored leads, and check plan usage. API v2 with an API key; deletes and the emergency unschedule install switched off.