Installation & Usage
[01]
Install Package
Using uv or pip
BASH
uv pip install airbyte-agent-mailchimp
[02]
Import
Initialize and use
PYTHON
from airbyte_agent_mailchimp import MailchimpConnector
from airbyte_agent_mailchimp.models import MailchimpAuthConfig
connector = MailchimpConnector(
auth_config=MailchimpAuthConfig(
api_key="<Your Mailchimp API key. You can find this in your Mailchimp account under Account > Extras > API keys.>"
)
)[03]
Tool
Add tools to your agent
python
@agent.tool_plain # assumes you're using Pydantic AI
@MailchimpConnector.tool_utils
async def mailchimp_execute(entity: str, action: str, params: dict | None = None):
return await connector.execute(entity, action, params or {})Supported Entities & Actions
Lorem ipsum
Lorem ipsum
| Entity | Actions |\n|--------|---------|\n| Campaigns | [List](./REFERENCE.md#campaigns-list), [Get](./REFERENCE.md#campaigns-get), [Search](./REFERENCE.md#campaigns-search) |\n| Lists | [List](./REFERENCE.md#lists-list), [Get](./REFERENCE.md#lists-get), [Search](./REFERENCE.md#lists-search) |\n| List Members | [List](./REFERENCE.md#list-members-list), [Get](./REFERENCE.md#list-members-get) |\n| Reports | [List](./REFERENCE.md#reports-list), [Get](./REFERENCE.md#reports-get), [Search](./REFERENCE.md#reports-search) |\n| Email Activity | [List](./REFERENCE.md#email-activity-list), [Search](./REFERENCE.md#email-activity-search) |\n| Automations | [List](./REFERENCE.md#automations-list) |\n| Tags | [List](./REFERENCE.md#tags-list) |\n| Interest Categories | [List](./REFERENCE.md#interest-categories-list), [Get](./REFERENCE.md#interest-categories-get) |\n| Interests | [List](./REFERENCE.md#interests-list), [Get](./REFERENCE.md#interests-get) |\n| Segments | [List](./REFERENCE.md#segments-list), [Get](./REFERENCE.md#segments-get) |\n| Segment Members | [List](./REFERENCE.md#segment-members-list) |\n| Unsubscribes | [List](./REFERENCE.md#unsubscribes-list) |
Example Prompts
Lorem ipsum
List all subscribers in my main mailing list - List all automation workflows in my account - Show me all segments for my primary audience - List all interest categories for my primary audience - Show me email activity for a recent campaign - Show me the performance report for a recent campaign - Show me all my email campaigns from the last month - What are the open rates for my recent campaigns? - Who unsubscribed from list \{list_id\} this week? - What tags are applied to my subscribers? - How many subscribers do I have in each list? - What are my top performing campaigns by click rate?
Why Airbyte for AI Agents?
Built for production AI workloads with enterprise-grade reliability
Secure Authentication
Built-in OAuth 2.0 handling with automatic token refresh. No hard-coded credentials.
Agent-Native Design
Heading
Structured, LLM-friendly schemas optimized for AI agent consumption with natural language query support.
Production Ready
Battle-tested connectors with comprehensive error handling, logging, and retry logic.
Open Source
Fully open source under the MIT license. Contribute, customize, and extend freely.
Works with your favorite frameworks
LangChain
CrewAI
LlamaIndex
AutoGen
OpenAI Agents SDK
Claude Agents SDK
Frequently Asked Questions
Didn't find your answer? Please don't hesitate to reach out.
The Mailchimp connector supports API key authentication in open source mode, where you provide your Mailchimp API key directly (found under Account > Extras > API keys). In hosted mode, credentials are stored securely in Airbyte Cloud using Airbyte's own OAuth-based client credentials.
Can I use this connector with any AI agent framework?
The connector is compatible with any Python-based AI agent framework including LangChain, LlamaIndex, CrewAI, Pydantic AI, and custom implementations.
Does this connector support write operations?
Currently, the Mailchimp connector focuses on read operations only. Write operations such as creating campaigns, adding subscribers, deleting campaigns, updating subscriber information, sending campaigns, or creating automation workflows are not supported at this time.
How is this different from the Airbyte data connector?
Agent connectors are specifically designed for AI agents and LLM applications. They provide natural language interfaces, optimized response formats, and seamless integration with agent frameworks, unlike traditional ETL-focused connectors.
Get started in minutes with our open-source connector.