# Mailchimp — Pipedream Connect

> Mailchimp is a marketing automation and email marketing platform.

- API slug: `mailchimp` (use in MCP headers and tool keys)
- Auth: OAuth (Pipedream-managed)
- Categories: Marketing
- Website: https://mailchimp.com/developer/marketing/api/
- This page (HTML): https://pipedream.com/apps/mailchimp
- Tools: 30 actions · 13 triggers

## Connect via MCP (recommended)

- Endpoint: `https://remote.mcp.pipedream.net/v3`
- Headers: `Authorization: Bearer <token>` · `x-pd-project-id` · `x-pd-environment` · `x-pd-external-user-id` · `x-pd-app-slug: mailchimp`

```ts
import { Client } from "@modelcontextprotocol/sdk/client/index.js"
import { StreamableHTTPClientTransport } from "@modelcontextprotocol/sdk/client/streamableHttp.js"
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const accessToken = await pd.rawAccessToken

const transport = new StreamableHTTPClientTransport(
  new URL("https://remote.mcp.pipedream.net/v3"),
  {
    requestInit: {
      headers: {
        Authorization: `Bearer ${accessToken}`,
        "x-pd-project-id": process.env.PIPEDREAM_PROJECT_ID!,
        "x-pd-environment": "production",
        "x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
        "x-pd-app-slug": "mailchimp",
      },
    },
  },
)

const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)

const { tools } = await mcp.listTools()

// e.g. run Add Member To Segment:
const result = await mcp.callTool({
  name: "mailchimp-add-segment-member",
  arguments: {
    listId: "List Id",
    segmentId: "Segment ID",
  },
})
```

Docs: [MCP guide](https://pipedream.com/docs/connect/mcp/developers.md)

## API proxy

For a Mailchimp endpoint with no pre-built tool, the proxy forwards your request with the connected user's credentials attached.

```bash
# The path segment is the target URL, URL-safe base64 encoded:
# https://login.mailchimp.com/oauth2/metadata

curl "https://api.pipedream.com/v1/connect/{project_id}/proxy/aHR0cHM6Ly9sb2dpbi5tYWlsY2hpbXAuY29tL29hdXRoMi9tZXRhZGF0YQ?external_user_id={external_user_id}&account_id=apn_xxxxxxx" \
  -H "Authorization: Bearer {access_token}" \
  -H "x-pd-environment: production"
```

Docs: [API proxy guide](https://pipedream.com/docs/connect/api-proxy.md)

## SDK

```ts
import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "mailchimp-add-segment-member",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    mailchimp: { authProvisionId: "apn_xxxxxxx" },
    listId: "List Id",
    segmentId: "Segment ID",
  },
})
```

Docs: [Managed auth guide](https://pipedream.com/docs/connect/managed-auth/quickstart.md) · [Tools guide](https://pipedream.com/docs/connect/components.md)

## Actions (30)

### `mailchimp-add-segment-member` — Add Member To Segment (Write)

Adds a new member to a static segment. See docs here

Full schema: https://pipedream.com/apps/mailchimp/actions/add-segment-member.md

### `mailchimp-add-note-to-subscriber` — Add Note to Subscriber (Write)

Adds a new note to an existing subscriber. See docs here

Full schema: https://pipedream.com/apps/mailchimp/actions/add-note-to-subscriber.md

### `mailchimp-add-remove-member-tags` — Add Or Remove Members Tags (Write)

Add or remove member tags. See docs here

Full schema: https://pipedream.com/apps/mailchimp/actions/add-remove-member-tags.md

### `mailchimp-add-or-update-subscriber` — Add or Update Subscriber (Write)

Adds a new subscriber to an audience or updates existing subscriber. See docs here

Full schema: https://pipedream.com/apps/mailchimp/actions/add-or-update-subscriber.md

### `mailchimp-add-subscriber-to-tag` — Add Subscriber To Tag (Write)

Adds an email address to a tag within an audience. See docs here

Full schema: https://pipedream.com/apps/mailchimp/actions/add-subscriber-to-tag.md

### `mailchimp-create-campaign` — Create Campaign (Write)

Creates a new campaign draft. See docs here

Full schema: https://pipedream.com/apps/mailchimp/actions/create-campaign.md

### `mailchimp-create-list` — Create List (Write)

Creates a new list. See docs here

Full schema: https://pipedream.com/apps/mailchimp/actions/create-list.md

### `mailchimp-delete-campaign` — Delete Campaign (Write)

Delete a specific campaign. See docs here

Full schema: https://pipedream.com/apps/mailchimp/actions/delete-campaign.md

### `mailchimp-delete-list` — Delete List (Write)

Deletes an existing list. See docs here

Full schema: https://pipedream.com/apps/mailchimp/actions/delete-list.md

### `mailchimp-delete-list-member` — Delete List Member (Write)

Permanently deletes a member. See docs here

Full schema: https://pipedream.com/apps/mailchimp/actions/delete-list-member.md

### `mailchimp-edit-campaign-template-content` — Edit A Campaign Template Content (Write)

Edits a defined content area of a custom HTML template. See docs here

Full schema: https://pipedream.com/apps/mailchimp/actions/edit-campaign-template-content.md

### `mailchimp-get-a-campaign-report` — Get A Campaign Report (Read-only)

Gets a campaign report. See docs here

Full schema: https://pipedream.com/apps/mailchimp/actions/get-a-campaign-report.md

### `mailchimp-get-campaign-report` — Get A Campaign Report (Read-only)

Gets a campaign report. See docs here

Full schema: https://pipedream.com/apps/mailchimp/actions/get-campaign-report.md

### `mailchimp-get-campaign` — Get Campaign (Read-only)

Gets metadata of a specific campaign. See docs here

Full schema: https://pipedream.com/apps/mailchimp/actions/get-campaign.md

### `mailchimp-get-list` — Get List (Read-only)

Searches for lists. See docs here

Full schema: https://pipedream.com/apps/mailchimp/actions/get-list.md

### `mailchimp-get-list-activities` — Get List Activities (Read-only)

Retrieves up to the previous 180 days of daily detailed aggregated activity stats for a list. See docs here

Full schema: https://pipedream.com/apps/mailchimp/actions/get-list-activities.md

### `mailchimp-get-list-member-activity` — Get List Member Activities (Read-only)

Get the last 50 events of a member's activity on a specific list. See docs here

Full schema: https://pipedream.com/apps/mailchimp/actions/get-list-member-activity.md

### `mailchimp-get-list-member-tags` — Get List Member Tags (Read-only)

Retrieves a list of all member tags. See docs here

Full schema: https://pipedream.com/apps/mailchimp/actions/get-list-member-tags.md

### `mailchimp-list-list-id-options` — List Audience List Id Options (Read-only)

Retrieves available options for the Audience List Id field.

Full schema: https://pipedream.com/apps/mailchimp/actions/list-list-id-options.md

### `mailchimp-list-campaign-id-options` — List Campaign ID Options (Read-only)

Retrieves available options for the Campaign ID field.

Full schema: https://pipedream.com/apps/mailchimp/actions/list-campaign-id-options.md

### `mailchimp-list-segment-member` — List Segment Members (Read-only)

Retrieves a list of all segment members. See docs here

Full schema: https://pipedream.com/apps/mailchimp/actions/list-segment-member.md

### `mailchimp-list-store-id-options` — List Store Id Options (Read-only)

Retrieves available options for the Store Id field.

Full schema: https://pipedream.com/apps/mailchimp/actions/list-store-id-options.md

### `mailchimp-remove-segment-member` — Remove Member From A Segment (Write)

Removes a member from the specified static segment. See docs here

Full schema: https://pipedream.com/apps/mailchimp/actions/remove-segment-member.md

### `mailchimp-search-campaign` — Search Campaigns (Read-only)

Searches for the campaigns. See docs here

Full schema: https://pipedream.com/apps/mailchimp/actions/search-campaign.md

### `mailchimp-search-lists` — Search Lists (Read-only)

Searches for lists. See docs here

Full schema: https://pipedream.com/apps/mailchimp/actions/search-lists.md

### `mailchimp-search-member` — Search Members/Subscribers (Read-only)

Searches for a subscriber. The search can be restricted to a specific list, or can be used to search across all lists in an account. See docs here

Full schema: https://pipedream.com/apps/mailchimp/actions/search-member.md

### `mailchimp-send-campaign` — Send a Campaign (Write)

Sends a campaign draft to the audience signed up for the campaign. See docs here

Full schema: https://pipedream.com/apps/mailchimp/actions/send-campaign.md

### `mailchimp-unsubscribe-email` — Unsubscribe Email (Write)

Unsubscribe an email address from an audience. See docs here

Full schema: https://pipedream.com/apps/mailchimp/actions/unsubscribe-email.md

### `mailchimp-update-campaign` — Update Campaign (Write)

Update a campaign. See docs here

Full schema: https://pipedream.com/apps/mailchimp/actions/update-campaign.md

### `mailchimp-update-list` — Update List (Write)

Updates an existing list. See docs here

Full schema: https://pipedream.com/apps/mailchimp/actions/update-list.md

## Triggers (13)

### `mailchimp-link-clicked` — Link Clicked (Polling)

Emit new event when a recipient clicks a pre-specified link in an specific campaign.

Full schema: https://pipedream.com/apps/mailchimp/triggers/link-clicked.md

### `mailchimp-new-audience` — New Audience (Polling)

Emit new event when an audience is added to the connected Mailchimp account.

Full schema: https://pipedream.com/apps/mailchimp/triggers/new-audience.md

### `mailchimp-new-campaign` — New Campaign (Polling)

Emit new event when a new campaign is created or sent

Full schema: https://pipedream.com/apps/mailchimp/triggers/new-campaign.md

### `mailchimp-new-customer` — New Customer (Polling)

Emit new event when a new customer is added to a selected store.

Full schema: https://pipedream.com/apps/mailchimp/triggers/new-customer.md

### `mailchimp-new-file` — New File (Polling)

Emit new event when a new file is added to the File Manager of the connected Mailchimp account.

Full schema: https://pipedream.com/apps/mailchimp/triggers/new-file.md

### `mailchimp-new-list-event` — New List Event (Instant) (Instant)

Emit new event when the following occurs on an audience list: a campaign is sent or cancelled, a subscriber is added, unsubscribed, has a profile update, or has the associated email address changed, or cleaned.

Full schema: https://pipedream.com/apps/mailchimp/triggers/new-list-event.md

### `mailchimp-new-open` — New Open (Polling)

Emit new event when a recipient opens an email in a specific campaign.

Full schema: https://pipedream.com/apps/mailchimp/triggers/new-open.md

### `mailchimp-new-or-updated-list-segment` — New or Updated List Segment (Polling)

Emit new event when segment is either created or updated.

Full schema: https://pipedream.com/apps/mailchimp/triggers/new-or-updated-list-segment.md

### `mailchimp-new-or-updated-subscriber` — New or Updated Subscriber (Instant) (Instant)

Emit new event when a subscriber is added or updated (on profile, or email address change) in an audience list.

Full schema: https://pipedream.com/apps/mailchimp/triggers/new-or-updated-subscriber.md

### `mailchimp-new-order` — New Order (Polling)

Emit new event when an order is added to your store, or Mailchimp account.

Full schema: https://pipedream.com/apps/mailchimp/triggers/new-order.md

### `mailchimp-new-segment-tag-subscriber` — New Segment Tag Subscriber (Polling)

Emit new event when a subscriber is added to a segment or tags within an audience list.

Full schema: https://pipedream.com/apps/mailchimp/triggers/new-segment-tag-subscriber.md

### `mailchimp-new-subscriber` — New Subscriber (Instant) (Instant)

Emit new event when a subscriber is added to an audience list.

Full schema: https://pipedream.com/apps/mailchimp/triggers/new-subscriber.md

### `mailchimp-new-unsubscriber` — New Unsubscriber (Instant) (Instant)

Emit new event when a subscriber is removed from an audience list.

Full schema: https://pipedream.com/apps/mailchimp/triggers/new-unsubscriber.md

---

- All apps: https://pipedream.com/apps — index: https://pipedream.com/llms.txt
- Pipedream docs for agents: https://pipedream.com/docs/llms.txt
