Skip to main content
Glama
dazanza
by dazanza

list_members

Retrieve subscribers from a Mailchimp audience to sync contacts or audit membership status with filtering and pagination options.

Instructions

List members/subscribers in a Mailchimp audience. Use for syncing or auditing contacts.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
list_idYesAudience/list ID
countNoNumber of results (default 100, max 1000)
offsetNoOffset for pagination (default 0)
statusNoFilter by status: subscribed, unsubscribed, cleaned, pending, transactional

Implementation Reference

  • The tool "list_members" is defined using server.tool, and its handler function performs the Mailchimp API call to list members, processes the response to extract relevant contact details, and returns them as a structured MCP response.
    server.tool(
      "list_members",
      "List members/subscribers in a Mailchimp audience. Use for syncing or auditing contacts.",
      {
        list_id: z.string().describe("Audience/list ID"),
        count: z.number().optional().describe("Number of results (default 100, max 1000)"),
        offset: z.number().optional().describe("Offset for pagination (default 0)"),
        status: z.string().optional().describe("Filter by status: subscribed, unsubscribed, cleaned, pending, transactional"),
      },
      async ({ list_id, count, offset, status }) => {
        const opts = { count: count || 100, offset: offset || 0 };
        if (status) opts.status = status;
        const response = await mailchimp.lists.getListMembersInfo(list_id, opts);
        const members = response.members.map((m) => ({
          email: m.email_address,
          first_name: m.merge_fields.FNAME || "",
          last_name: m.merge_fields.LNAME || "",
          status: m.status,
          tags: m.tags.map((t) => t.name),
        }));
        return {
          content: [
            {

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dazanza/mailchimp-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server