Back to Browse

ActiveCampaign MCP Server

Developer ToolsModerate5.2MCP RegistryLocal
Free

Server data from the Official MCP Registry

ActiveCampaign API: ~325 endpoints (v3, SMS, WhatsApp, Segments) as safety-categorized MCP tools.

About

ActiveCampaign API: ~325 endpoints (v3, SMS, WhatsApp, Segments) as safety-categorized MCP tools.

Security Report

5.2
Moderate5.2Moderate Risk

A well-architected MCP server for ActiveCampaign with strong security fundamentals. The codebase demonstrates careful attention to authentication, authorization, input validation, and resource management. No critical or high-severity vulnerabilities were identified. Minor findings relate to logging practices and error handling specificity, but do not materially impact the security posture. Supply chain analysis found 4 known vulnerabilities in dependencies (0 critical, 3 high severity).

4 files analyzed ยท 8 issues found

Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.

Permissions Required

This plugin requests these system permissions. Most are normal for its category.

HTTP Network Access

Connects to external APIs or services over the internet.

env_vars

Check that this permission is expected for this type of plugin.

File System Read

Reads files on your machine. Normal for tools that analyze or process local data.

What You'll Need

Set these up before or after installing:

Server transport. Set to 'stdio' for local MCP clients; the image otherwise starts the Streamable HTTP transport.Optional

Environment variable: MCP_TRANSPORT

Your account's API URL, copied from ActiveCampaign -> Settings -> Developer, e.g. https://your-account.api-us1.com/api/3Optional

Environment variable: ACTIVECAMPAIGN_API_URL

Your ActiveCampaign API token (same Developer screen).Required

Environment variable: ACTIVECAMPAIGN_API_TOKEN

Only for MCP_TRANSPORT=http: bearer token required on /mcp. Without it a non-loopback bind refuses to start.Required

Environment variable: MCP_AUTH_TOKEN

How to Install

Add this to your MCP configuration file:

{
  "mcpServers": {
    "io-github-ohneben-activecampaign-mcp": {
      "env": {
        "MCP_TRANSPORT": "your-mcp-transport-here",
        "MCP_AUTH_TOKEN": "your-mcp-auth-token-here",
        "ACTIVECAMPAIGN_API_URL": "your-activecampaign-api-url-here",
        "ACTIVECAMPAIGN_API_TOKEN": "your-activecampaign-api-token-here"
      },
      "args": [
        "-y",
        "activecampaign-mcp"
      ],
      "command": "npx"
    }
  }
}

Documentation

View on GitHub

From the project's GitHub README.

ohneben's ActiveCampaign MCP

Buy Me A Coffee


License & checks

CI License: MIT

MCP registries

MCP Registry Listed on mcpservers.org ActiveCampaign-MCP MCP server

The most complete ActiveCampaign MCP server there is. Run your entire ActiveCampaign account in plain language from Claude, Cursor, or any other MCP client.

This Model Context Protocol server exposes the whole ActiveCampaign account API โ€” ~325 tools โ€” covering the v3 REST API plus the SMS, WhatsApp and async Segments APIs, generated straight from ActiveCampaign's own OpenAPI definitions. Every tool is safety-categorized (๐ŸŸข read-only / ๐ŸŸก write / ๐Ÿ”ด destructive) so your assistant knows what an action does before it calls it. It runs over stdio (Claude Desktop and other local launchers) or Streamable HTTP (hosted in Docker), and ships with retries, client-side rate limiting tuned to ActiveCampaign's 5 req/s cap, and request timeouts so it holds up against a live account.

Why you'll want this

Some MCP servers just forward a slice of the API. This one is built to be safe to hand to an LLM, complete, and easy to run for real:

What you getWhy it matters
~325 tools โ€” the full account APIComplete coverage of contacts, deals, accounts, lists, tags, custom fields & objects, ecommerce (deep data), campaigns, messages, automations, segments, webhooks, tasks, calendars, site/event tracking, SMS and WhatsApp โ€” nothing hand-picked or left behind. Other servers stop at ~60.
Curated safety categories ๐ŸŸข / ๐ŸŸก / ๐Ÿ”ดNot naive "GET = safe": contact sync is flagged as an upsert, a segment-match POST as a read-only query, tagging a contact as a link, and POST /sms/broadcasts as sends messages โ€” so the model knows the real blast radius.
Machine-readable MCP annotations (readOnlyHint, destructiveHint)Hosts that honor annotations (Claude included) can auto-trust reads and demand confirmation before anything destructive.
Read-only mode & resource filteringExpose only ๐ŸŸข read-only tools (ACTIVECAMPAIGN_READ_ONLY=true), or narrow to just the groups you use (ACTIVECAMPAIGN_INCLUDE_GROUPS=contacts,deals,lists). Tailor the surface per deployment.
Pagination made first-classlimit, offset, orders[โ€ฆ] and filters[โ€ฆ] are injected onto every list endpoint as typed inputs, so the assistant can page, sort and filter without guessing ActiveCampaign's bracket syntax.
Automatic retries with backoffTransient 429 / 5xx responses are retried with jittered exponential backoff, honoring the server's Retry-After header.
Built-in rate limitingSelf-throttles under ActiveCampaign's 5 requests / second account cap so a burst of tool calls never trips a 429.
Response-size guardOptionally cap huge list responses (ACTIVECAMPAIGN_MAX_RESPONSE_CHARS) so one call can't blow the model's context window.
GraphQL passthroughA bonus tool for ActiveCampaign's Ecommerce GraphQL API when you want to shape exactly the fields you need in one round-trip.
Two transports: stdio and Streamable HTTPUse it locally in Claude Desktop, or run one always-on server that any number of MCP clients reach over HTTP.
Docker + docker-compose, health check, auto-restartProduction-style deployment out of the box: docker compose up and it stays up.
Optional bearer-token auth on the HTTP endpointPut the server behind a shared secret the moment it's reachable beyond localhost.
Your token never reaches the modelThe Api-Token lives in the server's environment and is injected on every request โ€” the assistant only ever sees tool inputs and API responses.
Drop-in spec updatesActiveCampaign ships newer OpenAPI JSON? Replace the file in spec/ and rebuild โ€” new endpoints become new tools automatically, no code changes.

How it compares

There are a few ways to reach ActiveCampaign from an AI assistant today. Here's how this server stacks up against the alternatives:

This serverOfficial AC remote MCPHighLiuk mcp-server-activecampaignmcp-activecampaign (PyPI)CData MCP
Approx. tools~325curated subset58~653 (generic SQL)
Full v3 REST coverageโœ…โž–โž– core CRMโž– broad CRMโŒ
SMS ยท WhatsApp ยท Segmentsโœ…โŒโŒโŒโŒ
Ecommerce deep data + GraphQLโœ…โž–โŒโž–โŒ
Reads and writesโœ…โœ…โœ…โœ…โŒ read-only
Self-hosted on your own infraโœ…โŒ vendor cloudโœ…โœ…โœ…
Connects directly to the AC APIโœ…โœ…โœ…โœ…โŒ via JDBC driver
stdio transportโœ…โŒโœ…โœ…โœ…
Streamable-HTTP transportโœ…โœ…โž–โž–โŒ
Docker + compose + health checkโœ…n/aโŒโŒโŒ
Curated ๐ŸŸข / ๐ŸŸก / ๐Ÿ”ด safety categoriesโœ…โž–โž– partialโž–n/a
readOnlyHint / destructiveHintโœ…โž–โž–โž–โž–
Read-only mode + group filteringโœ…โŒโŒโŒalways read-only
Rate limiting + auto-retry (429/5xx)โœ…โž–โŒโž–โŒ
LanguageTypeScriptโ€”TypeScriptPythonJava
LicenseMITproprietaryMITMITMIT

โœ… = yes ยท โž– = partial / not documented ยท โŒ = no. Compiled from each project's public documentation; this is an unofficial project, not affiliated with ActiveCampaign or the projects listed. Tool counts are approximate and move as APIs evolve.

The short version: the official remote MCP is a great managed on-ramp but runs in ActiveCampaign's cloud on a curated slice of the API. The community servers are solid but top out around 60 tools of core CRM, stdio-only, without a deployment story. This one gives you the entire account API, both transports, a Docker deployment, and safety guardrails โ€” self-hosted, on your token, MIT.

What you can do

Once it's connected, ask your assistant things like:

  • "Find the contact jane@example.com and show her tags, lists and recent activity."
  • "Create a deal for Acme Corp worth $12,000 in the 'Sales' pipeline, stage 'Qualified'."
  • "List contacts added this month who opened the last campaign but haven't been tagged 'engaged'."
  • "Add the tag 'webinar-2026' to every contact on list 5."
  • "Show total ecommerce revenue and the top 10 orders from last week."
  • "Create a segment of customers in Germany and count how many match."
  • "Draft an SMS broadcast to the 'VIP' list โ€” but don't send it until I confirm."

Tools are generated automatically from ActiveCampaign's specs and grouped into ๐ŸŸข read-only, ๐ŸŸก write and ๐Ÿ”ด destructive โ€” so a well-behaved host can treat each group differently.

How it works

Claude / Cursor / any MCP client  โ”€โ”€MCPโ”€โ”€โ–บ  this server  โ”€โ”€HTTPSโ”€โ”€โ–บ  ActiveCampaign API (your account)

The server parses the bundled OpenAPI definitions into MCP tools (resolving $refs and guarding against recursive schemas), tags each with a curated safety category, and injects your Api-Token header on every outgoing request. Your token stays in the server's environment โ€” the model never sees or handles it.

Requirements

  • An ActiveCampaign account with API access โ€” your API URL and API token from Settings โ†’ Developer. See Get your API credentials.
  • Docker (Docker Desktop on macOS/Windows) for the quick start below โ€” or Node.js โ‰ฅ 18 to run from source.

Quick start (Docker)

1. Add your credentials. Copy the example config and fill it in:

cp .env.example .env
# edit .env โ†’ set ACTIVECAMPAIGN_API_URL and ACTIVECAMPAIGN_API_TOKEN
#           โ†’ set MCP_AUTH_TOKEN to a long random string if reachable beyond localhost

2. Start the server:

docker compose up -d --build

The bundled docker-compose.yml binds to 127.0.0.1:8765 only, so the server is reachable from your machine but not the network.

3. Confirm it's running:

curl -s http://localhost:8765/health
# โ†’ {"status":"ok","server":"activecampaign-mcp","tools":325}

4. Connect your MCP client. The MCP endpoint is http://localhost:8765/mcp.

  • Claude Desktop โ€” add a custom connector (Settings โ†’ Connectors) pointing at the URL, or bridge it locally with mcp-remote. Add this under mcpServers in your config, then fully quit and reopen the app:

    {
      "mcpServers": {
        "activecampaign": {
          "command": "npx",
          "args": [
            "mcp-remote",
            "http://localhost:8765/mcp",
            "--header", "Authorization: Bearer YOUR_MCP_AUTH_TOKEN"
          ]
        }
      }
    }
    

    (Drop the --header line if you left MCP_AUTH_TOKEN empty.)

  • Claude Code โ€” one command:

    claude mcp add --transport http activecampaign http://localhost:8765/mcp
    
  • Claude Cowork โ€” shares Claude Code's MCP config, so the command above makes the tools available there too.

Prefer a prebuilt image?

Every push to main publishes a ready-to-run image to the GitHub Container Registry, so you can skip the local build entirely:

docker run -d --name activecampaign-mcp -p 127.0.0.1:8765:8765 --env-file .env \
  ghcr.io/ohneben/activecampaign-mcp:latest

Get your API credentials

  1. Log in to ActiveCampaign and open Settings โ†’ Developer.
  2. Copy your API URL โ†’ ACTIVECAMPAIGN_API_URL. It looks like https://your-account.api-us1.com/api/3. Use the exact URL shown โ€” not all accounts are on api-us1, and custom domains differ.
  3. Copy your API Key โ†’ ACTIVECAMPAIGN_API_TOKEN.

Put both in .env. The server injects the token on every request, so your assistant never sees it.

Configuration

Everything is set in .env (copied from .env.example):

VariableRequiredDefaultDescription
ACTIVECAMPAIGN_API_URLโœ…โ€”Your account's API URL, incl. /api/3
ACTIVECAMPAIGN_API_TOKENโœ…โ€”Your API token (Api-Token header)
MCP_TRANSPORTโ€”stdiostdio or http (the Docker image defaults to http)
PORTโ€”8765HTTP listen port
HOSTโ€”0.0.0.0HTTP bind address
MCP_HTTP_PATHโ€”/mcpHTTP MCP route
MCP_AUTH_TOKENโ€”(off)Require Authorization: Bearer <token> on /mcp
ACTIVECAMPAIGN_MAX_REQUESTSโ€”4Client-side requests per window (0 disables throttling)
ACTIVECAMPAIGN_RATE_WINDOW_MSโ€”1000Rate-limit window in ms (default: 4 req/s)
ACTIVECAMPAIGN_MAX_RETRIESโ€”3Retries on 429 / 5xx / network errors
ACTIVECAMPAIGN_TIMEOUT_MSโ€”30000Per-attempt request timeout
ACTIVECAMPAIGN_READ_ONLYโ€”falseExpose only ๐ŸŸข read-only tools
ACTIVECAMPAIGN_INCLUDE_GROUPSโ€”(all)Only expose these resource groups (comma-separated)
ACTIVECAMPAIGN_EXCLUDE_GROUPSโ€”(none)Hide these resource groups
ACTIVECAMPAIGN_ENABLE_GRAPHQLโ€”trueExpose the Ecommerce GraphQL passthrough tool
ACTIVECAMPAIGN_GRAPHQL_URLโ€”(derived)Override the GraphQL endpoint
ACTIVECAMPAIGN_MAX_RESPONSE_CHARSโ€”0Truncate responses longer than N chars (0 = never)
ACTIVECAMPAIGN_SPEC_DIRโ€”(bundled)Load OpenAPI files from a different directory

After changing .env, reload with docker compose up -d --force-recreate.

Run npm run list-tools (no credentials needed) to print the full catalog, the per-category counts, and the list of resource-group keys you can filter on.

Tool safety categories

Each tool's description starts with one of these banners and carries the matching MCP annotations:

BannerCountreadOnlyHintdestructiveHintMeaning
๐ŸŸข READ-ONLY155truefalseGET โ€” fetches data only. Safe.
๐ŸŸข READ-ONLY ยท query7truefalseA POST that searches/reports (segment match, metrics export) โ€” changes no data.
๐ŸŸก WRITE ยท creates data51falsefalsePOST โ€” creates a record (not idempotent; may duplicate).
๐ŸŸก WRITE ยท creates or updates1falsefalseIdempotent upsert (contact sync).
๐ŸŸก WRITE ยท updates data52falsefalsePUT / PATCH โ€” modifies a record in place.
๐ŸŸก WRITE ยท links records6falsefalseAssociates records (tag a contact, add to a list/automation). Reversible.
๐ŸŸก WRITE ยท unlinks records5falsefalseRemoves an association (untag, remove from list). Reversible.
๐ŸŸก WRITE ยท sends messages3falsefalseSends/schedules an outbound SMS or WhatsApp message.
๐ŸŸก GraphQL1falsefalseArbitrary GraphQL document (may contain mutations).
๐Ÿ”ด DESTRUCTIVE ยท deletes data42falsetrueDELETE โ€” removes a record. Confirm first.
๐Ÿ”ด DESTRUCTIVE ยท bulk delete2falsetrueDeletes many records at once. Confirm first.

That's 162 read-only ยท 119 write ยท 44 destructive = 325 tools. Hosts that respect annotations (Claude included) can require confirmation for destructiveHint tools and trust readOnlyHint tools automatically. Prefer to lock it down further? Set ACTIVECAMPAIGN_READ_ONLY=true to expose only the 162 read-only tools.

Area๐ŸŸข Read๐ŸŸก Write๐Ÿ”ด DeleteTools
Custom Fields & Objects1825952
Deals & Pipelines1923951
Contacts3011243
Campaigns & Messaging1510429
Admin & Delivery128626
Accounts813425
Segments163120
Ecommerce (Deep Data)96318
SMS124117
Lists, Tags & Forms85215
Site & Event Tracking75214
WhatsApp75113
Automations1001
GraphQL passthroughโ€”1โ€”1
Total16211944325

Run from source (stdio, no Docker)

Prefer the classic stdio mode for Claude Desktop? Build it locally:

npm install
npm run build

Then point Claude Desktop at the compiled entrypoint in claude_desktop_config.json:

{
  "mcpServers": {
    "activecampaign": {
      "command": "node",
      "args": ["/ABSOLUTE/PATH/ActiveCampaign-MCP/dist/index.js"],
      "env": {
        "MCP_TRANSPORT": "stdio",
        "ACTIVECAMPAIGN_API_URL": "https://your-account.api-us1.com/api/3",
        "ACTIVECAMPAIGN_API_TOKEN": "your-api-token"
      }
    }
  }
}

Keeping the specs current

The bundled files under spec/ are the source of truth for the tools:

FileAPIAuth header
v3.jsonCore v3 REST APIApi-Token
sms.jsonSMS Broadcast APIApi-Token
whatsapp.jsonWhatsApp channel APIToken (also sends Api-Token)
segments-crud.json, segments-match-one.json, segments-match-all-some.jsonAsync Segments APIApi-Token

To refresh against a newer API version, drop the updated OpenAPI JSON in place (or point ACTIVECAMPAIGN_SPEC_DIR at a directory using the same filenames) and rebuild. New paths become new tools automatically โ€” no code changes needed.

Development

npm install
npm run build      # compile TypeScript โ†’ dist/
npm test           # run the Vitest suite
npm run list-tools # print the categorized tool catalog (no credentials needed)

CI builds and tests every push across Node 20 and 22; pushes to main also publish a Docker image to the GitHub Container Registry.

Notes & conventions

  • Transports: MCP_TRANSPORT=stdio (default) for local launchers; MCP_TRANSPORT=http for the always-on Streamable-HTTP server the Docker image runs.
  • Paging / sorting / filtering: list tools accept limit (max 100), offset, orders ({"email":"ASC"}) and filters ({"name":"ecom"}). For very large contact exports ActiveCampaign recommends orders={"id":"ASC"} + id_greater.
  • Rate limit: ActiveCampaign allows 5 requests / second per account (shared across every key); the server self-throttles at ACTIVECAMPAIGN_MAX_REQUESTS per ACTIVECAMPAIGN_RATE_WINDOW_MS (default 4 / 1 s) and retries any 429 it still receives, honoring Retry-After.
  • Request bodies: write tools take a body argument; its schema is resolved from the spec and shown to the model (e.g. create-contact expects {"contact": {โ€ฆ}}).

Security

  • Your API token lives only in .env, which is git-ignored. Never commit real secrets. The token grants full account access โ€” if it leaks, rotate it in ActiveCampaign โ†’ Settings โ†’ Developer.
  • The HTTP endpoint is unauthenticated by default (fine on localhost). To expose it beyond your machine, set MCP_AUTH_TOKEN and send it as an Authorization: Bearer <token> header โ€” ideally behind TLS.
  • Delete and send (SMS/WhatsApp) tools carry the right annotations so a well-behaved host prompts before acting โ€” keep that confirmation on, or run in ACTIVECAMPAIGN_READ_ONLY=true mode.

See SECURITY.md for the full policy and how to report a vulnerability.

Credits & license

An unofficial community integration for ActiveCampaign; not affiliated with or endorsed by ActiveCampaign. Built on the Model Context Protocol. Tools are generated from ActiveCampaign's public OpenAPI definitions. Licensed under the MIT License.

Reviews

No reviews yet

Be the first to review this server!