Skip to main content
Glama
mailchimp-mcp

mailchimp-mcp

by tomjones

mailchimp-toolkit

A command-line tool and MCP server for the Mailchimp Marketing API v3. The mailchimp command reads and changes audiences, members, tags, segments, campaigns and reports. The mailchimp-mcp server gives Claude, ChatGPT and other AI assistants the same operations as tools, read-only unless you allow writes and with subscribers' personal data masked.

Install

uv tool install git+https://github.com/tomjones/mailchimp-toolkit
# or
pipx install git+https://github.com/tomjones/mailchimp-toolkit

It needs Python 3.10 or newer.

Related MCP server: mcp-mailchimp

Connect

mailchimp configure    # prompts for your API key (hidden) and a default audience
mailchimp ping         # checks the key and shows the account name

mailchimp configure saves the key to ~/.config/mailchimp-toolkit/.env with mode 0600. Create a key under Extras > API keys in Mailchimp (guide).

Examples

mailchimp audiences list
mailchimp members get jane@example.com
mailchimp signups report --since 7d --by source
mailchimp signups bursts --since 7d
mailchimp reports list --since 30d
mailchimp reports get b2c3d4e5f6
mailchimp members export --status subscribed --csv exports/members.csv

Add --json to any command for machine-readable output. Without a default audience, pass --audience ID; mailchimp audiences list shows the IDs.

Commands

Group

What it does

audiences

Lists audiences with their stats, daily activity and monthly growth

members

Looks up, lists, exports, adds, updates, archives, unsubscribes and resubscribes members

tags

Lists tags, and adds or removes them on many members at once

segments

Lists, creates and deletes segments, and lists a segment's members

merge-fields

Lists and finds merge fields, audits them for blank values and fills in defaults

interests

Lists interest categories and their interests

signups

Counts recent signups by source, day, country or hour, and finds bursts such as a bot hitting a form

campaigns

Lists campaigns and fetches their settings and content

reports

Shows campaign reports, per-link clicks, opens and unsubscribes

templates

Lists templates and fetches their content

automations

Lists classic automations and their emails

forms

Lists signup forms and landing pages

webhooks

Lists, creates and deletes audience webhooks

batches

Shows the status of Batch API operations

sync

Copies Salesforce records and payment CSV exports into merge fields

account, ping, configure

Show the account, check the connection and save credentials

docs/commands.md lists every command and option, and docs/sync.md explains the Salesforce and payment CSV syncs.

Use it with Claude or ChatGPT

Claude Code or Codex

Paste this into Claude Code or Codex:

Set up mailchimp-toolkit from https://github.com/tomjones/mailchimp-toolkit. Install it with uv tool install git+https://github.com/tomjones/mailchimp-toolkit, or with pipx if uv is missing. Then stop and ask me to run mailchimp configure in a separate terminal, so that you never see my API key. When I say it is done, add the MCP server read-only (Claude Code: claude mcp add --transport stdio --scope user mailchimp -- mailchimp-mcp; Codex: codex mcp add mailchimp -- mailchimp-mcp), run mailchimp ping, and tell me which account it connected to. Before running any other mailchimp command, read https://github.com/tomjones/mailchimp-toolkit/blob/main/AGENTS.md and follow it.

If the assistant does not show the mailchimp tools afterwards, restart it.

Claude Desktop

Install the toolkit and run mailchimp configure as above. In Claude Desktop, open Settings > Developer > Edit Config, add the server, then quit and restart the app:

{
  "mcpServers": {
    "mailchimp": {
      "command": "mailchimp-mcp",
      "args": []
    }
  }
}

If Claude Desktop cannot find mailchimp-mcp, use the absolute path that which mailchimp-mcp prints.

ChatGPT

The ChatGPT desktop app reads the same ~/.codex/config.toml as Codex, so the Codex prompt above sets it up too. You can also add the server in the app under Settings > MCP servers > Add server, with STDIO and the command mailchimp-mcp. ChatGPT on the web cannot start local programs; docs/ai-assistants.md explains the options.

Things to ask

  • "How many people joined each audience in the last 30 days, by source?"

  • "Check the main audience for signup bursts this week. Do any look like bots?"

  • "Compare open and click rates for the last five campaigns."

  • "Which merge fields have the most blank values?"

docs/ai-assistants.md covers every client's configuration, the server options, writes, several accounts and troubleshooting.

Privacy

The MCP server masks email addresses, names, phone numbers, merge field values, IP addresses, and free text such as notes and unsubscribe reasons in every result. The mailchimp command masks them in output captured by another program, which is how AI assistants run commands, and a person at a terminal sees full records. --include-pii turns masking off, and files written with --csv PATH or --output PATH always hold full data.

Members can be addressed by member ID, so an assistant can act on them without seeing an address. For example, to remove a bot run without printing any address:

mailchimp signups list --since 24h --source "API" --ids-only | mailchimp members archive --file - --dry-run

An assistant with a shell could type --include-pii itself. AGENTS.md tells it not to unless you ask. On the MCP server, --include-pii is a startup flag that no tool call can change, so use the MCP server when you work with real subscriber data.

Safety

The MCP server is read-only unless started with --allow-writes. Permanent deletion, segment deletion, bulk merge-field writes and syncs are available only on the command line.

On the command line, every command that writes takes --dry-run, which shows what would change and sends no writes. Commands that change many members at once (tagging, archiving, unsubscribing, resubscribing, permanent deletion, merge-field defaults and syncs), and commands that delete segments or webhooks, refuse to run without --yes. So does members update or members upsert with --status unsubscribed or --status cleaned.

Troubleshooting

  • 401 API Key Invalid or API Key Expired means the saved key no longer works. Run mailchimp configure with a new key.

  • No audience selected means no default audience is saved. Pass --audience ID, or run mailchimp configure again and enter one.

  • Masked values such as j***@example.com appear when output is piped or captured. Add --include-pii, or write the records to a file with --csv PATH.

  • Set MAILCHIMP_DEBUG=1 to see the full traceback for an error.

Build from source

You need Python 3.10 or later.

git clone https://github.com/tomjones/mailchimp-toolkit.git
cd mailchimp-toolkit
python3 -m venv venv
./venv/bin/pip install -e ".[dev]"
./venv/bin/mailchimp --version

docs/development.md describes the layout, the pre-commit hooks and how the command reference is generated.

Tests

./venv/bin/pytest
./venv/bin/ruff check src tests scripts

The tests mock every HTTP request, so they never call Mailchimp. On GitHub they run on Python 3.10, 3.11, 3.12 and 3.13, and a second workflow scans every commit for secrets with gitleaks.

License

Released under the MIT License.

mailchimp-toolkit is an independent project and is not affiliated with Mailchimp or Intuit. Mailchimp is a registered trademark of The Rocket Science Group LLC.

Available Tools

40 tools
account_getA
Read-only

Return the account's details: name, plan, contact, industry and total subscribers.

Inputs: no named parameters. Returns: object

audiences_activityA
Read-only

Return daily sends, opens, clicks, bounces, subscribes and unsubscribes for an audience, most recent day first.

Inputs: days, audience_id. Returns: object

audiences_getA
Read-only

Return one audience's settings and stats: member counts, open and click rates, and last signup time.

Inputs: audience_id. Returns: object

audiences_growthA
Read-only

Return monthly member counts by status for an audience, most recent month first.

Inputs: limit, audience_id. Returns: object

audiences_listA
Read-only

List the account's audiences (lists), newest first, with their IDs and member stats.

Inputs: limit. Returns: object

automations_emailsA
Read-only

List the emails in a classic automation in workflow order, with delay, subject and emails sent.

Inputs: workflow_id (required), limit. Returns: object

automations_getA
Read-only

Return one classic automation's settings, trigger, recipients and report summary.

Inputs: workflow_id (required). Returns: object

automations_listB
Read-only

List classic automations with status, settings, recipients and emails sent.

Inputs: limit, status. Returns: object

batches_getA
Read-only

Return one Batch API job's status and operation counts, with the results URL once it has finished.

Inputs: batch_id (required). Returns: object

batches_listA
Read-only

List Batch API jobs with status, operation counts and timestamps.

Inputs: limit. Returns: object

campaigns_contentA
Read-only

Return a campaign's HTML or plain-text body, cut to max_chars. length is the full size and truncated says whether it was cut.

Inputs: campaign_id (required), max_chars, plain_text. Returns: object

campaigns_getA
Read-only

Return one campaign's settings, recipients, tracking options and report summary.

Inputs: campaign_id (required). Returns: object

campaigns_listB
Read-only

List campaigns, most recently created first, with settings, recipients and a report summary.

Inputs: limit, since, before, status, +2 more. Returns: object

forms_landing_pagesA
Read-only

List landing pages, newest first, with name, title, status, URL, audience and publish dates.

Inputs: limit, audience_id. Returns: object

forms_listA
Read-only

List an audience's hosted signup forms with their URL, header, contents and styles.

Inputs: limit, audience_id. Returns: object

interests_listB
Read-only

List an audience's interest categories (groups), each with its interests and their subscriber counts.

Inputs: limit, audience_id. Returns: object

members_activityA
Read-only

Return a member's recent events (sends, opens, clicks, signups and more), newest first. The member is given by email address or member ID.

Inputs: member (required), limit, audience_id. Returns: object

members_getA
Read-only

Return one member's full record: status, merge fields, tags, interests, stats, location and signup details. The member is given by email address or member ID.

Inputs: member (required), audience_id. Returns: object

members_listA
Read-only

List members of an audience with ID, status, merge fields, tags, source and opt-in time. For counts and trends use signups_report or audiences_get instead.

Inputs: limit, since, before, status, +3 more. Returns: object

merge_fields_audit_blanksB
Read-only

Count members with a blank value in each merge field. Returns the number scanned and, per field, the blank count and percentage.

Inputs: tags, status, audience_id, max_members. Returns: object

merge_fields_findB
Read-only

Find merge fields whose name or tag contains the text, ignoring case. Each match includes its audience ID (list_id) and audience_name.

Inputs: text (required), limit, audience_id, all_audiences. Returns: object

merge_fields_listA
Read-only

List an audience's merge fields with tag, name, type, default value and whether each is required.

Inputs: limit, audience_id. Returns: object

pingA
Read-only

Check that the API key works. Returns the account name, server prefix, default audience and whether personal data is masked.

Inputs: no named parameters. Returns: object

reports_clicksA
Read-only

List the tracked links in a campaign with total and unique clicks and click rates.

Inputs: campaign_id (required), limit. Returns: object

reports_getA
Read-only

Return one campaign's report: opens, clicks, bounces, unsubscribes, abuse reports and industry comparison.

Inputs: campaign_id (required). Returns: object

reports_listB
Read-only

List reports for sent campaigns with opens, clicks, bounces and unsubscribes.

Inputs: limit, since, before, campaign_type. Returns: object

reports_opensB
Read-only

List members who opened a campaign with their open count and open times.

Inputs: campaign_id (required), limit. Returns: object

reports_unsubscribesA
Read-only

List members who unsubscribed from a campaign with the time and the reason they gave.

Inputs: campaign_id (required), limit. Returns: object

segments_listA
Read-only

List an audience's segments with their IDs, types, conditions and member counts.

Inputs: limit, audience_id, segment_type. Returns: object

segments_membersB
Read-only

List the members of a segment with ID, status, merge fields, tags and source.

Inputs: segment_id (required), limit, audience_id. Returns: object

signups_burstsA
Read-only

Find periods when one signup source gained members unusually fast, a sign of bot or list-bombing signups. Each burst has its time span, size, rate per hour, distinct IPs and countries, and top email domain.

Inputs: since (required), limit, before, source, +5 more. Returns: object

signups_listA
Read-only

List members who signed up in a time range, oldest first, with ID, source, opt-in and signup times and IPs, and country. Prefer signups_report for counts.

Inputs: since (required), limit, before, source, +3 more. Returns: object

signups_reportA
Read-only

Count signups in a time range grouped by source, day, country or hour, with each group's share in percent. total_signups counts every group.

Inputs: since (required), by, limit, before, +4 more. Returns: object

sync_mapping_previewA
Read-only

Return the SOQL a sync would run and the merge fields the first records would get. Reads Salesforce through the sf CLI and writes nothing.

Inputs: mapping (required), email, limit, created_days, +1 more. Returns: object

sync_mappingsA
Read-only

List the Salesforce-to-Mailchimp mapping files in ./mappings/ with their Salesforce org, object, audience and field count.

Inputs: limit. Returns: object

sync_mapping_validateA
Read-only

Check that every mapped Salesforce field exists in the org and every merge tag exists on the audience. Returns ok and one check per field.

Inputs: mapping (required). Returns: object

tags_listB
Read-only

List an audience's tags with their IDs and names.

Inputs: limit, search, audience_id. Returns: object

templates_getA
Read-only

Return one template's metadata and, with include_html, its default HTML content.

Inputs: template_id (required), max_chars, include_html. Returns: object

templates_listB
Read-only

List email templates, newest first, with ID, name, type, category and dates.

Inputs: limit, template_type. Returns: object

webhooks_listB
Read-only

List an audience's webhooks with ID, URL, and the events and sources that trigger each.

Inputs: limit, audience_id. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 40 tools

    Disambiguation4/5

    Most tools target distinct resource+action pairs (audiences_*, campaigns_*, reports_*, templates_*), and the descriptions explicitly steer agents between near-neighbors (e.g. members_list says to use signups_report or audiences_get for counts). The main soft spots are merge_fields_list vs merge_fields_find vs merge_fields_audit_blanks, and the signups_list/signups_report/signups_bursts triad, which rely on prose to separate rather than names.

    Naming Consistency4/5

    There is a clear dominant convention of resource_verb with plural resource nouns (audiences_list, campaigns_get, reports_clicks, batches_get, signups_report). Minor deviations exist: ping, account_get (singular resource), and merge_fields_find (verb 'find' rather than list/get), but the pattern remains highly predictable.

    Tool Count2/5

    40 tools is well above the workable range for a single server, and many are near-duplicate list/get read pairs across parallel resources (audiences, campaigns, reports, templates, automations, batches, forms). Many of the analytics tools (signups_bursts, merge_fields_audit_blanks, sync_mapping_validate) are niche additions that push the surface well past what an agent can hold in working context.

    Completeness3/5

    The read/analytics surface is broad — audiences, members, campaigns, reports, templates, automations, forms, webhooks, batches, plus a Salesforce sync sub-domain — so inspection is well covered. However, there is no write path at all: no member create/update/tag/unsubscribe, no campaign create/send, no segment or webhook creation, which are core Mailchimp workflows an agent would reasonably expect.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables interaction with the Mailchimp API for managing campaigns, lists, templates, reports, and automations through natural language.
      3
      -
    • A
      license
      Not graded
      quality
      C
      maintenance
      Manage Mailchimp audiences, campaigns, and members via the Mailchimp Marketing API through natural language queries.
      76 npm
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI assistants to manage email campaigns, contact lists, analytics, A/B tests, and transactional emails through natural language, using OAuth for secure connection.
      1
      MIT
    • A
      license
      B
      quality
      C
      maintenance
      Enables AI agents to manage mailing lists and contacts, read campaign reports with per-link clicks, and trigger automations. Supports lookups and updates by email address, tag and status management, and destructive operations with client confirmation.
      13
      MIT