ActiveCampaign connector for Claude Code

Use Porter’s ActiveCampaign connector for Claude Code to pull campaigns and automations into your terminal, then turn them into files, scripts and scheduled email reports in your own project.

  • Save campaign results as CSV in your repo
  • See which automations people leave early
  • Run a weekly email report from a script
  • Join email results with your other channels
G2★★★★★Rated 4.6/5 from 288 G2 reviews (October 2026) · Used by 1,600+ marketing teams and agencies

By · Last updated November 26, 2026

Claude Codeporter connected
List my ActiveCampaign automations with Automation Entered and Automation Exited and save them to reports/ac-automations.csv
porter / ActiveCampaign / Trailgear Demo✓ 4 rows
Saved reports/ac-automations.csv. Abandoned cart loses the most people before the end.
AutomationEnteredExited
Welcome series4,2103,880
Abandoned cart2,6401,120
Win-back1,3801,190
Post-purchase980910
Demo data, Trailgear Demo account
236 ActiveCampaign fields
01Setup

How to connect ActiveCampaign to Claude Code

Connecting ActiveCampaign to Claude Code takes 3 steps and no API keys: connect your ActiveCampaign accounts in Porter with an ActiveCampaign API key, add Porter’s MCP server to Claude Code with one command, then sign in from /mcp and ask. The same server also works in Cursor, VS Code and Codex, as Porter’s ActiveCampaign MCP server page shows. Using the Claude app instead? See the ActiveCampaign connector for Claude.

Before you start

  • You need Claude Code installed (Anthropic’s Claude Code overview), a free Porter account and an ActiveCampaign API key and account URL from Settings, then Developer.
  • Works with any Claude model in Claude Code, from Opus to Sonnet and Haiku.
  1. Step 1: Connect ActiveCampaign in Porter

    Sign up free at Porter, pick ActiveCampaign as the source and sign in with an ActiveCampaign API key. Tick every account you want Claude Code to read.

  2. Step 2: Add Porter to Claude Code

    In your terminal, run this command. It adds Porter for every project on your machine; drop --scope user to add it to the current project only.

    Terminal
    claude mcp add --transport http --scope user porter https://mcp.portermetrics.com/mcp

    Or, inside Claude Code, install Porter’s plugin, which adds the server and Porter’s skill together: /plugin marketplace add portermetrics/porter, then /plugin install porter-metrics@portermetrics.

  3. Step 3: Sign in and ask

    Start claude, type /mcp, pick porter and sign in with the Google account you use in Porter. When porter shows as connected, paste this prompt:

    Prompt
    Which ActiveCampaign accounts can you see? List campaigns with a Campaign Send Date in the last 30 days, with Campaign Name, and save them to reports/ac-campaigns.csv.

Guides and videos

app.portermetrics.com / create
ActiveCampaign Settings > Developer page with the API URL and API key you paste into Porter
First, copy the API URL and key from Settings > Developer in ActiveCampaign.
Porter's Select accounts window for ActiveCampaign with a demo account ready to save
Then, back in Porter, pick the accounts Claude can read and save.
$ claude mcp add --transport http --scope user porter https://mcp.portermetrics.com/mcp

$ claude mcp list
porter: https://mcp.portermetrics.com/mcp (HTTP)
Then, add Porter's MCP server from your terminal.
> /mcp
porter · needs authentication → Authenticate

> Which ActiveCampaign accounts can you see?
● porter - list_accounts (MCP)
Trailgear Demo
After you sign in from /mcp, Claude Code lists your ActiveCampaign accounts.
02Use cases and prompts

What you can do in Claude Code

Claude Code works inside your project, so ActiveCampaign answers can become files, scripts and dashboards instead of chat replies. Each use case has a prompt to copy and uses the ActiveCampaign fields Porter reads.

Can Claude Code export ActiveCampaign campaigns?

The problemCampaign reports in ActiveCampaign open one at a time.

What Claude Code doesClaude Code lists campaigns with Campaign Name, Campaign Send Date and their results through Porter and writes them to a CSV.

What you getA clean campaign file in your repo, ready for analysis.

Prompt
From my ActiveCampaign account, list campaigns with a Campaign Send Date in the last 90 days, with Campaign Name and their results, and save them as data/ac-campaigns.csv.

Which automations do people leave early?

The problemAn automation can look busy while most contacts drop out before the end.

What Claude Code doesClaude Code lists automations with Automation Entered and Automation Exited and flags the ones with the biggest gap.

What you getA short list of automations to fix.

Prompt
List my ActiveCampaign automations with Automation Name, Automation Entered and Automation Exited, flag the ones where fewer than 60% of contacts finish, and save them to reports/ac-automations.csv.

Can I schedule an ActiveCampaign report with Claude Code?

The problemActiveCampaign reports split campaigns and automations, so the weekly email review takes two passes.

What Claude Code doesA scheduled claude -p run compares campaigns sent and their results and lists the automations with the most contacts entered.

What you getreports/ac-weekly.md covering campaigns and automations in one file.

Prompt
claude -p "Compare last week with the week before in ActiveCampaign: campaigns sent, their results and the automations with the most contacts entered. Write it to reports/ac-weekly.md" --allowedTools "mcp__porter" "Write"
03Why Porter

Why Porter for ActiveCampaign in Claude Code

Porter keeps your ActiveCampaign key out of your project and puts email results next to Shopify, your ad platforms and 30+ other sources behind the same server.

✓

One server for all your sources

The same porter server answers about ActiveCampaign, Meta Ads, Google Ads, GA4 and Shopify, so one script can pull every channel.

⊞

Changes only after you approve

Claude Code can make changes through Porter where the platform allows them, and each change waits for your yes.

⚙

Your key stays in Porter

Your ActiveCampaign API key lives in Porter, not in your project or terminal history.

↻

Hosted dashboards when a file isn’t enough

Ask for a Porter AI dashboard and it is published at its own link, synced automatically and ready to share with a client.

04Dashboard

Dashboard template

Porter’s free ActiveCampaign dashboard shows account health and email performance as well as deals, tags and lists in one place. Either ask Claude Code to build the same view live from your account, or open one of the free ActiveCampaign dashboard templates.

AI dashboards

Build a live ActiveCampaign dashboard from your terminal

Describe the dashboard in one sentence and Porter builds it. A client-ready dashboard in minutes, with no chart dragging and no BI tool to learn. Ask Claude Code:

Prompt
Build a live ActiveCampaign dashboard for my account with the last 30 days, the main KPIs and a weekly trend.
Live URLEach dashboard at its own link: no login, no app, no download
Auto-syncFresh ActiveCampaign data, nobody re-exports each period
Scheduled deliveryEmail or PDF sends on a set day
White labelYour logo and branding for clients
Sharing permissionsView or edit access per person
ActiveCampaign dashboard template by Porter
Template

The ActiveCampaign AI dashboard template

Start from Porter’s official ActiveCampaign dashboard template, or run the prompt above in Claude Code and Porter publishes the dashboard at its own link.

05Pricing

Pricing

You can start free, since Porter’s ActiveCampaign connector for Claude comes with every plan. Use the calculator for your number of accounts, or see Porter pricing for every plan.

What you get

  • Free plan: never expires, with unlimited connected accounts and the last 15 days of data in Claude (30 days in Data Studio and Sheets)
  • Reporting: from $12.50 per account a month billed annually, or $15 month to month for one account
  • Billing: each ActiveCampaign account counts as one account, with volume discounts and no per-seat fee
  • Changes: 1 AI credit per completed change; failed tasks are free, and the Free plan includes 100 credits a month
  • Trial: 14 days of full access, no card

Price calculator

$33.33/mo$6.67 per account

An account is one ad account, Stripe account, store, page or GA4 property. The Free plan never expires and has unlimited accounts, with the last 15 days of data in AI chats.

06Data and actions

ActiveCampaign data and actions in Claude Code

The ActiveCampaign connector gives Claude 236 fields, including campaign sends, opens, clicks, unsubscribes and bounces, plus contacts, lists, tags, forms, automations, deals and accounts. Porter also adds 43 actions that read and change your account. The full list of ActiveCampaign fields has every label, if you need one.

The 12 ActiveCampaign fields Claude uses most

FieldWhat it's for
Campaign Name · Campaign Send DatecampaignName · campaignSdatePick campaigns by the day they went out
Campaign SendscampaignSend_amtThe base for open, click and unsubscribe rates
Campaign Unique Opens · Campaign Verified Unique OpenscampaignUniqueopens · campaignVerified_unique_opensOpens, with verified opens beside them
Campaign Subscriber Clicks · Campaign Link ClickscampaignSubscriberclicks · campaignLinkclicksClicking contacts; total link clicks
Campaign Unsubscribes · Campaign Hard BouncescampaignUnsubscribes · campaignHardbouncesList health per send
Contact Sends · Contact Created DatecontactSentcnt · contactCdateDaily sends; new contacts
List Name · Contact List Status · Contact List UnsubreasonlistsName · contactListsStatus · contactListsUnsubreasonSubscription status and why people left
Tag Name · Tag Subscriber CounttagName · tagSubscriber_countContacts per tag
Automation Name · Automation Entered · Automation ExitedautomationName · automationEntered · automationExitedLifetime entries and exits per automation
Deal Value · Deal Status · Deal StagedealValue · dealStatus · dealStageOpen, won and lost deals by stage
Form Name · Form Entries · Form ContactsformName · formEntries · formContactsSign-up form results
Total Current ContactstotalCurrentContactsAccount size today, asked on its own

Can Claude send campaigns or change ActiveCampaign contacts?

Yes. Claude creates, updates, tags and deletes contacts, as well as changing list subscriptions. It either enrolls contacts in automations, which is how you trigger marketing automations, or removes them. It also edits companies, deals and pipelines, creates lists, tags and custom fields, and drafts, schedules, tests and sends one-time campaigns.

You build automations and A/B, RSS or recurring campaigns in ActiveCampaign, then Claude enrolls contacts and reports on the results.

How fresh is the data, and how far back?

Porter answers from a stored copy of your account and tells you when it last refreshed. Because of that, reports stay clear of ActiveCampaign's 5-requests-per-second limit. Campaigns and deals go back to the oldest record, while daily sends were tested two years back.

Product stats

WhatActiveCampaign connector
Fields236 across campaigns, contacts, lists, tags, forms, automations, deals and accounts
Actions43: 13 that read, 30 that change your account after you approve
FreshnessStored copy of your account; Claude tells you when it last refreshed
HistoryCampaigns and deals back to the oldest record; daily sends tested 2 years back; 30 days on the Free plan, 15 in AI chats
Rate limitsActiveCampaign allows 5 API requests per second; bulk changes run in steps
Campaign resultsLifetime totals per campaign, picked by Campaign Send Date
AccessOne user's API key, with that user's access

See all 236 ActiveCampaign fields

07Security

Is it safe?

Yes, and you review each step. Claude previews every change before Porter makes it, and nothing changes until you confirm. Campaign sends, deletes and automation removals are permanent, so Claude asks before each one. Porter's ActiveCampaign connector for Claude Code uses one user's API key, so it gets that user's access.

How approvals work

Claude shows the plan and asks before every change. Sends, automation removals and deletes of contacts, deals, lists and tags are final, so test a campaign on one inbox first. Each completed change uses one AI credit, while bulk changes use one per contact.

What the connector needs from ActiveCampaign

Each ActiveCampaign user has their own API key, and Porter gets the access of the user whose key you paste (ActiveCampaign's note that each user has their own API key). If answers come back empty while the account looks connected, enter the key again in Porter.

08FAQ

FAQ

Answers on setup, scope, scripts and credits, plus fixes for the most common Claude Code errors with ActiveCampaign. Setup questions every source shares, like where Claude Code saves the server and how to share it with your team, are in the Claude Code hub FAQ.

Can I add HubSpot or Shopify to the ActiveCampaign report?

Yes. Connect the other source in Porter and name its fields in the same prompt. Claude Code reads both through one server and writes one report.

Where do I find the API key?

In ActiveCampaign, go to Settings, then Developer. Copy the API key and account URL into Porter.

Do Claude Code questions use Porter credits?

Reading ActiveCampaign data uses no AI credits. Each completed change, such as a change, uses 1 credit, and every Porter account gets 100 free credits a month.

Troubleshooting

Why does /mcp show porter as needing authentication?

Claude Code adds the server before you sign in. Pick porter in /mcp, choose Authenticate and sign in with the Google account you use in Porter.

Why does my claude -p script stop and ask for permission?

Scripts can’t answer permission prompts. Pass the tools the script may use, for example --allowedTools "mcp__porter" "Write", so Claude Code can read Porter and save files without stopping.

Why does Claude Code see my account but return no data?

Usually the API key belongs to a user without access to campaigns or automations, or the range had no sends. Check the user’s permissions, then ask again.

09Next

More Claude connectors

Other email and CRM tools also connect to Claude through Porter the same way; see all Claude connectors. Your ActiveCampaign account can also feed BigQuery and ready-made reports. Each Claude page lists that tool's own fields and prompts as well as its limits.

Not only Claude. Send ActiveCampaign data anywhere

The same Porter account and connection also send ActiveCampaign data to these destinations, at no extra cost.

Try the connector in Claude Code

Porter’s ActiveCampaign connector for Claude Code takes one command, so your first campaign file can land in your project today.

Free plan · 14-day trial · No card needed

Email and lifecycle marketers: campaigns and automation leaks land in one file.

Marketing ops: email results join your other channels in the repo.

Agencies: one script builds the weekly email report for every client.