
Mailchimp Mcp Server
io.github.cyanheads由 GitHub 帳號 cyanheads 發布v0.6.0更新於 Nov 1, 2026
Mailchimp via MCP: draft, test, and send campaigns; manage audiences and subscribers; pull reports.
概覽
Mailchimp MCP 伺服器,讓助理起草、測試、寄送或排程電子報行銷活動,管理受眾與訂閱者,並查看寄送後的報告。
- 可以做什麼
- 起草、測試、寄送、排程、複製與取消行銷活動,編輯活動內容並檢查寄送清單
- 建立與更新受眾,讀取受眾分析與註冊表單設定,管理合併欄位與分眾
- 查詢、新增、更新、標記、封存與批次匯入訂閱者,訂閱狀態需確認同意
- 讀取活動報告與摘要:送達、開啟、點擊、熱門連結、地區與退訂
- 管理 Mailchimp 範本與檔案管理員檔案,並在帳戶內搜尋成員或活動
- 設定選用目錄後可渲染本機 .eta 範本、上傳本機素材,另提供流程化操作指南
- 適用情境
- 適合想在對話中完成 Mailchimp 電子報行銷的情境:撰寫電子報、維護名單與分眾、檢視寄送成效,不必切換到 Mailchimp 介面。
- 執行需求
- 透過 npx、bunx 或 Docker 在本機以 stdio(或 Streamable HTTP)執行;需要 Bun 1.4.0 以上或 Node.js 24 以上。需要 Mailchimp Marketing API 金鑰,放在 MAILCHIMP_API_KEY 中並包含資料中心後綴。可選設定 MAILCHIMP_ASSETS_DIR 與 MAILCHIMP_TEMPLATES_DIR 以啟用本機素材與範本工具。需能連線 Mailchimp API。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Mailchimp Mcp Server,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
@cyanheads/mailchimp-mcp-server
Draft, test, and send Mailchimp campaigns straight from your MCP client — with audience management, subscriber CRUD, and post-send analytics behind safe-by-default send gates. STDIO or Streamable HTTP.
Overview
Mailchimp campaign management. Draft, test, and send email campaigns, manage audiences and subscribers, and review post-send analytics, with optional local image and template directories for authoring.
Tools
Resources
All resource data is also reachable through tools; audiences and campaigns are listed with each tool's list operation.
The server also publishes an agent skill, mailchimp-guide (skill://mailchimp-guide/SKILL.md, source in skills/mailchimp-guide/): the send, campaign-lookup, click-tracing, and subscriber gates, plus where each ID comes from.
Prompts
Design reference: docs/email-design-playbook.md.
Capability reference
mailchimp_account tool
operation: inforeturns profile, plan, data center, total subscribers, and industry benchmarks;operation: activity-feedreturns Chimp Chatter events, paged bycount(max 100, default 20) andoffset- An empty activity feed carries a
notenaming the likely causes
mailchimp_audiences tool
- Operations:
list,get,create,update, the analytics readslist-activity,list-growth,list-clients,list-abuse-reports,list-locations, andget-signup-forms/customize-signup-forms(takessignupFormConfig); every operation exceptlistandcreateneedsaudienceId createrequiresname,contact(company,address1,city,state,zip,country),permissionReminder, andcampaignDefaults(fromName,fromEmail;languagedefaults toen)updatewith a partialcontactorcampaignDefaultskeeps the omitted subfields' current values (one read before the write)
mailchimp_audience_overview tool
audienceIdplusgrowthMonths(1–36, default 12); returns info, stats, contact, campaign defaults, growth history, top email clients, and the merge-field schemanotes[]explains empty growth or email-client arrays, separating "no data yet" from zero engagement
mailchimp_subscribers tool
audienceIdon every call andemailon every operation exceptlist, which narrows bystatusonly and rejectsemail(look one address up withgetormailchimp_find_subscriber); operations:list,get,update,archive,list-tags,set-tags,list-notes/add-note/update-note/delete-note(bynoteId), andlist-activity/list-events/list-goals- Addresses are trimmed and rejected if the local or domain part is missing; an empty
listemail stays unfiltered.updatetosubscribedasks for confirmation when resuming a subscription; already-subscribed members are left as they are set-tagsis declarative:tagsbecomes the full active set and every other tag is removed unless named inpreserveTags(static-segment membership is stored as a tag). ReturnstagsAdded,tagsRemoved, andtagsActive
mailchimp_upsert_subscriber tool
audienceId,email, andstatusrequired; optionalmergeFields,tags+preserveTags(same declarative sync asset-tags),note,vip,language;updateExistingStatus: falseappliesstatusto new records only- Returns
isNew, the resultingstatus,tagsAdded/tagsRemoved/tagsFinal,noteAttached, andwebUrl status: "pending"uses Mailchimp's double opt-in flow. New or resumedsubscribedstatus asks for confirmation of documented consent before anything is written; declining writes nothing. Already-subscribed updates andupdateExistingStatus: falsekeep the existing status without asking
mailchimp_find_subscriber tool
emailaccepts an address or free-form search fragment, including a fragment without@, scoped to oneaudienceIdor, when omitted, every audience on the account (echoed assearchedAcross)- Returns
exactMatchesandfuzzyMatcheswith merge fields and stats;includeTags(defaulttrue) adds each match's tags at one extra call per match
mailchimp_import_subscribers tool
audienceIdand 1–500subscribersrows per call;statusdefaults topending(double opt-in) and a per-rowstatusoverrides it;updateExistingdefaults tofalse, so existing records are skipped- Any row that would be
subscribedneeds one confirmation before the whole batch writes; declining writes nothing. Pending-only imports need none - Returns
totalCreated,totalUpdated,errorCount, and per-rowsucceededandfailedentries; incomplete addresses fail asinvalid_email, and a batch with no valid rows makes no upstream request
mailchimp_segments tool
audienceIdon every call andsegmentIdon every operation exceptlist(filterable bytype:saved,static,fuzzy) andcreate;create/updatetakename,staticEmails, or saved-segmentoptionsbatch-update-membersappliesmembersToAdd/membersToRemoveto a static segment and returnsadded,removed, and per-emailerrors- Free plans get static and basic saved segments; advanced conditions need Premium and fail as
mailchimp_forbidden
mailchimp_merge_fields tool
list,get,create,update;createrequiresname,tag(10 characters max), andtype;get/updatetakemergeIdoptionscarries type-specific config:choicesfordropdown/radio,date_formatfordate/birthday,phone_formatforphone
mailchimp_campaigns tool
- Operations:
list(filter bystatus,listId,sinceSendTime/beforeSendTime),get,create(typeofregular/plaintext/rss, plusrecipientsandsettings),update,replicate,get-content,set-content,get-checklist,cancel-send,create-resend,pause-rss,resume-rss; all butlistandcreatetakecampaignId set-contentacceptshtml,plainText,templateId+templateSections,archiveContent,url, orlocalTemplate(exclusive withhtmlandtemplateId);get-checklistreturnsisReadyand typed itemsget-contentacceptsvariant: html | plainText | archiveHtml | all(defaultall); empty bodies are omitted and formatted output carries complete selected bodies as fenced JSON- No send, test, schedule, or delete here; dispatch goes through
mailchimp_send_campaignormailchimp_replicate_campaign
mailchimp_send_campaign tool
audienceId,subject,fromName,replyTo, andcontent(at least one ofhtml,plainText,templateId,localTemplate) required;modeisdraft(default),test(needstestEmails, max 50),send, orschedule(needsscheduleTimeat least 15 minutes out)- Returns
campaignId, the effectivemode,status,recipientCount,webUrl, and non-blockingchecklistWarnings; blocking checklist errors throwpre_send_checklist_failedoutsidedraft, andcleanupOnError(defaulttrue) deletes the draft after a mid-flow failure sendandschedulerequireconfirmSend: true, then a single-use confirmation prompt before any campaign is created; declining leaves a draft and setscancelledByUser. Changed content or a replay asks again, and creation is never retried after an ambiguous upstream failure
mailchimp_replicate_campaign tool
sourceCampaignIdplus optionalsubjectOverride,previewTextOverride,fromNameOverride,replyToOverride,titleOverride,audienceOverride,segmentOverride, andcontentOverride;mode,testEmails,scheduleTime, andcleanupOnErrorwork as inmailchimp_send_campaign- Returns the new
campaignId,overridesApplied[], and the same status, checklist, andcancelledByUserfields - Post-creation errors report
data.cleanedUpand name the replica's cleanup outcome in their text - Same
confirmSend: trueplus confirmation-prompt gate forsendandschedule
mailchimp_reports tool
list(filter bytype,sinceSendTime/beforeSendTime),get, orslicewith acampaignIdand adimension:abuse-reports,advice,click-details(withlinkId, the members who clicked that URL),open-details(one member viasubscriberHash),domain-performance,eepurl,email-activity,locations,sent-to,unsubscribedslicereturnsrowsshaped by the dimension plustotalItems;getthrowscampaign_not_sentfor a campaign with no send- Empty slices check send state and distinguish unsent campaigns from empty engagement; an unavailable diagnostic leaves send state explicitly unknown. Nonempty pre-send advice remains available
mailchimp_campaign_report tool
campaignIdplusincludeTopN(1–100, default 10) rows per slice- Returns
delivery(delivered, bounces by type, abuse reports),engagement(opens, clicks, unsubscribes),topClickedLinks,topLocations,recentUnsubscribes, andindustryBenchmarkswhen Mailchimp has them; throwscampaign_not_sentfor a campaign with no send - Missing measurements are omitted rather than reported as zero; failed slice reads fail the digest. The post-send playbook withholds analysis that needs unavailable metrics
mailchimp_templates tool
list(filter bytypeofuser/base/gallery,category,folderId),get,get-default-content,create,update, anddelete;updateaccepts onlyname,html, andfolderId, so per-section edits go through a campaign'stemplateSections- Reads of
baseandusertemplates work on free plans; writes andgalleryreads need a paid plan and fail asmailchimp_forbidden.mailchimp_local_templatesis the authoring path on every plan
mailchimp_files tool
list(filter bytype,folderId,sinceCreatedAt/beforeCreatedAt),get,upload(namewith extension plus base64fileData, nodata:prefix),update(rename, or move withfolderId,0for root),delete, and read-onlylist-folders/get-folder; uploads cap at 1 MB per image and 10 MB per other file, and.webp/.avifare not accepteduploadandgetreturnfullSizeUrl, the public CDN URL to embed in campaign HTML;listaddstotalFileSizeInBytes
mailchimp_search tool
scope(membersorcampaigns) andquery;audienceIdnarrows a member search;includeTopN(1–100, default 10) caps each result array- Members return as
exactandfuzzywith upstreamtotalExact/totalFuzzy; campaigns asmatcheswith asnippetandtotalMatches; an empty result carries anote
mailchimp_assets tool
list,info(byrelPath; returnssha256and anycachedupload),sync(uploads uncached files ahead of a send; returnsuploaded,cached, andskippedwith reasons), andclear-cache@assets/<path>references in content passed tomailchimp_send_campaign,mailchimp_replicate_campaign, ormailchimp_campaignsset-contentupload to File Manager and are rewritten to CDN URLs. Uploads are cached by SHA-256 in<assetsDir>/.mailchimp-cache.json; oversize files and paths outside the directory are rejected before upload- Listed only when
MAILCHIMP_ASSETS_DIRis set
mailchimp_local_templates tool
list,get(source plus parsed metadata),render-preview(nameplusvars; returns HTML, sends nothing), andseed-from-mailchimp(writes Mailchimp templatemailchimpTemplateIdto disk asname)- Templates are
.etafiles with optional YAML frontmatter forsubject,previewText, andvars; a declared var left unsupplied fails the render. Campaign tools render one viacontent.localTemplate+content.localTemplateVars, exclusive withhtmlandtemplateId. Example templates - Listed only when
MAILCHIMP_TEMPLATES_DIRis set
mailchimp_playbook tool
topic:send,post-send-review,deliverability,list-hygiene,onboarding,subscriber-triage, ordesign-campaign;audienceIdforsend/list-hygiene/design-campaign,campaignIdforpost-send-review,emailforsubscriber-triage- Returns markdown
instructionstuned to live numbers, aliveStatesnapshot,nextToolSuggestions({ toolName, reason, args }with pre-filled args), andresourceSuggestions(ready-to-read resource URIs); makes no writes
mailchimp://account resource
- No parameters;
application/jsonwith profile, plan, data center, total subscribers, andfetchedAt - Same data as
mailchimp_accountoperation: info
mailchimp://audiences/{audienceId} resource
- Name, contact, stats, campaign defaults, permission reminder, double opt-in status, and subscribe URL
audienceIdcomes frommailchimp_audiencesoperation: list
mailchimp://campaigns/{campaignId} resource
- Status, settings, recipients, tracking, and report summary
campaignIdcomes frommailchimp_campaignsoperation: list
mailchimp://campaigns/{campaignId}/report resource
- Emails sent, bounces, opens, clicks, unsubscribes, abuse reports, and industry stats
- Fails with a validation error until the campaign has been sent
newsletter_from_source prompt
- Arguments:
source(URL or free-form brief) required;audienceIdandseasonalContextoptional - Returns one user message that chains
mailchimp_playbook(topic: design-campaign) into an HTML draft, then draft, test, and send viamailchimp_send_campaign
Features
Built on @cyanheads/mcp-ts-core: stdio and Streamable HTTP transports, pluggable auth (none / jwt / oauth), swappable storage (in-memory, filesystem, Supabase, Cloudflare KV/R2/D1), structured logging with optional OpenTelemetry tracing.
Mailchimp-specific:
- Marketing API v3 client that derives the API host and data center from the key's
-<dc>suffix, with retries, a process-wide concurrency limit (MAILCHIMP_CONCURRENCY_LIMIT), and a cooldown after a 429 - Send gates: campaigns default to
draft,send/scheduleneedconfirmSend: trueplus a confirmation prompt, and new or resumedsubscribedsubscriptions need confirmation too; imports default topending - No irreversible deletes: removing audiences, merge fields, or campaigns, and permanently deleting subscribers, stay in the Mailchimp UI;
archiveis the strongest subscriber removal - Local authoring:
@assets/<path>files upload and rewrite at send time, and.etatemplates render locally, which covers free plans where the Templates API is read-only - List operations page with
count(max 1000) andoffset
Agent-friendly output:
- Explained empties:
note/notes[]on empty activity feeds, audience overviews, and searches say whether data is missing or genuinely zero; list reads echo the query sent upstream asfilters(defaults included) and add anoticewith a next step when the page is empty - Partial failure:
mailchimp_import_subscribersandmailchimp_segmentsbatch-update-membersreturn per-row successes and errors instead of failing the batch - Discriminated outputs:
operation,dimension, andmodesay which fields are populated;isNewandcancelledByUserreport what actually happened - Typed errors: every declared reason (
campaign_not_sent,pre_send_checklist_failed,mailchimp_forbidden, …) carries a recovery hint for the caller's next move
Getting started
Add the following to your MCP client configuration file. See docs/api-key.md for how to generate a Mailchimp API key.
Or with npx (no Bun required):
Or with Docker:
For Streamable HTTP, set the transport and start the server:
Prerequisites
- Bun v1.4.0 or higher (or Node.js v24+).
- A Mailchimp Marketing API key. Its
-dcsuffix (e.g.-us22) identifies your data center and is parsed at startup.
Installation
- Clone the repository:
- Navigate into the directory:
- Install dependencies:
- Configure environment:
Configuration
See .env.example for the full list of optional overrides.
Running the server
Local development
-
Watch mode (transport via
MCP_TRANSPORT_TYPE): -
Build and run:
-
Run checks and tests:
Docker
The Dockerfile defaults to HTTP transport, stateful session mode, and logs to /var/log/mailchimp-mcp-server. OpenTelemetry peer dependencies are installed by default; build with --build-arg OTEL_ENABLED=false to omit them.
Project structure
Development guide
See CLAUDE.md for development guidelines and architectural rules. The short version:
- Handlers throw, framework catches — no
try/catchin tool logic - Use
ctx.logfor request-scoped logging - Register new tools and resources via the barrels in
src/mcp-server/*/definitions/index.ts - Wrap external API calls: validate raw → normalize to domain type → return output schema; never fabricate missing fields
Contributing
Issues are welcome. Run checks and tests before submitting:
License
Apache-2.0 — see LICENSE for details.
來源:README.md,提交 4614c1a
工具
0版本歷史
7- v0.6.0最新Nov 1, 2026
- v0.5.0Oct 30, 2026
- v0.4.0Oct 13, 2026
- v0.3.12Oct 11, 2026
- v0.3.11Sep 27, 2026
- v0.3.9Sep 20, 2026
- v0.3.8Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分