mailchimp-mcp
Provides tools for interacting with the Mailchimp Marketing API v3, enabling management of audiences, members, tags, segments, campaigns, reports, automations, webhooks, and related marketing data.
Provides sync capabilities that copy Salesforce records into Mailchimp merge fields.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mailchimp-mcp How many people joined each audience in the last 30 days, by source?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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-toolkitIt 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 namemailchimp 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.csvAdd --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 |
| Lists audiences with their stats, daily activity and monthly growth |
| Looks up, lists, exports, adds, updates, archives, unsubscribes and resubscribes members |
| Lists tags, and adds or removes them on many members at once |
| Lists, creates and deletes segments, and lists a segment's members |
| Lists and finds merge fields, audits them for blank values and fills in defaults |
| Lists interest categories and their interests |
| Counts recent signups by source, day, country or hour, and finds bursts such as a bot hitting a form |
| Lists campaigns and fetches their settings and content |
| Shows campaign reports, per-link clicks, opens and unsubscribes |
| Lists templates and fetches their content |
| Lists classic automations and their emails |
| Lists signup forms and landing pages |
| Lists, creates and deletes audience webhooks |
| Shows the status of Batch API operations |
| Copies Salesforce records and payment CSV exports into merge fields |
| 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 runmailchimp configurein 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), runmailchimp 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-runAn 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 InvalidorAPI Key Expiredmeans the saved key no longer works. Runmailchimp configurewith a new key.No audience selectedmeans no default audience is saved. Pass--audience ID, or runmailchimp configureagain and enter one.Masked values such as
j***@example.comappear when output is piped or captured. Add--include-pii, or write the records to a file with--csv PATH.Set
MAILCHIMP_DEBUG=1to 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 --versiondocs/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 scriptsThe 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 toolsaccount_getARead-only
Return the account's details: name, plan, contact, industry and total subscribers.
Inputs: no named parameters. Returns: object
audiences_activityARead-only
Return daily sends, opens, clicks, bounces, subscribes and unsubscribes for an audience, most recent day first.
Inputs: days, audience_id. Returns: object
audiences_getARead-only
Return one audience's settings and stats: member counts, open and click rates, and last signup time.
Inputs: audience_id. Returns: object
audiences_growthARead-only
Return monthly member counts by status for an audience, most recent month first.
Inputs: limit, audience_id. Returns: object
audiences_listARead-only
List the account's audiences (lists), newest first, with their IDs and member stats.
Inputs: limit. Returns: object
automations_emailsARead-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_getARead-only
Return one classic automation's settings, trigger, recipients and report summary.
Inputs: workflow_id (required). Returns: object
automations_listBRead-only
List classic automations with status, settings, recipients and emails sent.
Inputs: limit, status. Returns: object
batches_getARead-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_listARead-only
List Batch API jobs with status, operation counts and timestamps.
Inputs: limit. Returns: object
campaigns_contentARead-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_getARead-only
Return one campaign's settings, recipients, tracking options and report summary.
Inputs: campaign_id (required). Returns: object
campaigns_listBRead-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_pagesARead-only
List landing pages, newest first, with name, title, status, URL, audience and publish dates.
Inputs: limit, audience_id. Returns: object
forms_listARead-only
List an audience's hosted signup forms with their URL, header, contents and styles.
Inputs: limit, audience_id. Returns: object
interests_listBRead-only
List an audience's interest categories (groups), each with its interests and their subscriber counts.
Inputs: limit, audience_id. Returns: object
members_activityARead-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_getARead-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_listARead-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_blanksBRead-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_findBRead-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_listARead-only
List an audience's merge fields with tag, name, type, default value and whether each is required.
Inputs: limit, audience_id. Returns: object
pingARead-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_clicksARead-only
List the tracked links in a campaign with total and unique clicks and click rates.
Inputs: campaign_id (required), limit. Returns: object
reports_getARead-only
Return one campaign's report: opens, clicks, bounces, unsubscribes, abuse reports and industry comparison.
Inputs: campaign_id (required). Returns: object
reports_listBRead-only
List reports for sent campaigns with opens, clicks, bounces and unsubscribes.
Inputs: limit, since, before, campaign_type. Returns: object
reports_opensBRead-only
List members who opened a campaign with their open count and open times.
Inputs: campaign_id (required), limit. Returns: object
reports_unsubscribesARead-only
List members who unsubscribed from a campaign with the time and the reason they gave.
Inputs: campaign_id (required), limit. Returns: object
segments_listARead-only
List an audience's segments with their IDs, types, conditions and member counts.
Inputs: limit, audience_id, segment_type. Returns: object
segments_membersBRead-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_burstsARead-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_listARead-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_reportARead-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_previewARead-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_mappingsARead-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_validateARead-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_listBRead-only
List an audience's tags with their IDs and names.
Inputs: limit, search, audience_id. Returns: object
templates_getARead-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_listBRead-only
List email templates, newest first, with ID, name, type, category and dates.
Inputs: limit, template_type. Returns: object
webhooks_listBRead-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
Scored across 40 tools
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.
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.
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.
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
Related MCP Connectors
Mailchimp engagement intelligence for AI agents: campaign analytics and audience insights.
Read audiences, members, campaigns and reports; add, update, tag and archive subscribers.
Read lists, contacts, campaign stats; add contacts; draft, schedule and send campaigns and SMS.
Mailchimp MCP Pack — manage audiences, campaigns, and members via Mailchimp Marketing API.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables interaction with the Mailchimp API for managing campaigns, lists, templates, reports, and automations through natural language.3-
- AlicenseNot gradedqualityCmaintenanceManage Mailchimp audiences, campaigns, and members via the Mailchimp Marketing API through natural language queries.76 npmMIT

RuSender MCPofficial
AlicenseNot gradedqualityBmaintenanceEnables AI assistants to manage email campaigns, contact lists, analytics, A/B tests, and transactional emails through natural language, using OAuth for secure connection.1MIT- AlicenseBqualityCmaintenanceEnables 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.13MIT