Skip to main content
Glama
AgentX-ai

Mailchimp MCP Server

by AgentX-ai

list_lists

Retrieve all email lists from your Mailchimp account to manage automation recipients and audience segmentation.

Instructions

List all lists in your Mailchimp account (for automation recipients)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Core handler function that executes the tool logic by making a paginated API request to Mailchimp's /lists endpoint.
    async listLists(): Promise<{ lists: MailchimpList[] }> { return await this.makePaginatedRequest("/lists", "date_created", "DESC");
  • Tool dispatch handler in handleToolCall function that invokes the service.listLists method and formats the response as MCP content.
    case "list_lists": const lists = await service.listLists(); return { content: [ { type: "text", text: JSON.stringify( lists.lists.map((l) => ({ id: l.id, name: l.name, member_count: l.stats.member_count, date_created: l.date_created, })), null, 2 ), }, ], };
  • Tool registration entry defining the name, description, and input schema (no inputs required).
    name: "list_lists", description: "List all lists in your Mailchimp account (for automation recipients)", inputSchema: { type: "object", properties: {}, required: [], }, },
  • Input schema definition (empty object, no required parameters).
    type: "object", properties: {}, required: [], }, },

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/AgentX-ai/mailchimp-mcp'

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