Getting Your Mailchimp API Key
๐ Your Mailchimp API key connects Mailchimp MCP to your Mailchimp account. This guide shows you exactly how to get it.
What You'll Learn
- How to find your API key in Mailchimp
- How to create a new API key
- How to understand the key format
- Security best practices
Time: 2 minutes
Difficulty: Easy
Step-by-Step Instructions
Step 1: Log Into Mailchimp
- Go to mailchimp.com
- Log into your account
- Make sure you're on the account you want to connect
Step 2: Navigate to API Keys
- Click your profile icon (top right corner)
- Select Account & Billing
- Click the Extras tab
- Click API keys
Step 3: Create a New API Key
- Click Create A Key button
- Mailchimp will generate a new API key
- The key will look like:
abc123def456-us9
Step 4: Copy Your API Key
- Click the eye icon to reveal the key
- Click Copy to copy the entire key
- Important: Copy the entire key including the server prefix (e.g.,
-us9)
Warning: You can only see the full key once. Copy it immediately and store it securely.
Understanding Your API Key
Key Format
Your API key has two parts:
- API Key:
abc123def456(the main key) - Server Prefix:
us9(your Mailchimp data center)
Full format: abc123def456-us9
Server Prefix Explained
The server prefix indicates your Mailchimp data center:
us1,us2,us3, etc. - United Stateseu1,eu2, etc. - Europe- Other regional prefixes
Note: Mailchimp MCP automatically detects the server prefix from your API keyโyou don't need to configure it separately.
Storing Your Key Securely
Do This
- Store in
.envfile (not committed to git) - Use environment variables
- Keep in a password manager
- Enable disk encryption on your computer
Don't Do This
- Share your key publicly
- Commit to version control
- Email or message the key
- Store in plain text files
API Key Permissions
Read-Only Keys (AI Analyst - Free)
For the free tier, you can use read-only API keys:
- View audiences and campaigns
- Access reports and analytics
- Read member information
- Cannot create or modify content
Full Access Keys (AI Marketer + Account Manager - Paid)
For the paid tier:
- All read permissions
- Create and send campaigns
- Manage members and segments
- Create automation workflows
Security Best Practices
Use Read-Only Keys When Possible
For testing and exploration, use read-only keys to limit access if compromised.
Rotate Keys Regularly
Change your API keys every 90 days or:
- After team members leave
- If you suspect compromise
- When switching accounts
Never Share Keys
Never share your API key with unauthorized users. Each person should have their own key if needed.
Revoke Compromised Keys Immediately
If your key is exposed:
- Immediately revoke it in Mailchimp
- Create a new API key
- Update your configuration
- Review access logs
Troubleshooting
Key Not Working
Check these:
- Key format is correct (
abc123-us9) - Key hasn't been revoked
- Server prefix matches your account
- Key has necessary permissions
Permission Errors
If you see permission errors:
- Verify key has required permissions
- Check if key is read-only when write access needed
- Create new key with appropriate permissions
Key Format Issues
Common mistakes:
- Missing server prefix (
-us9) - Extra spaces or characters
- Copy/paste errors
Solution: Copy the entire key including the server prefix.
Using Your API Key
In Mailchimp MCP Setup
- Run
mailchimp-mcp-configor use the setup UI - Paste your API key when prompted
- The server prefix is automatically detected
- Save configuration
- Restart Claude Desktop
Environment Variables
Add to your .env file:
MAILCHIMP_API_KEY=your-api-key-here
MAILCHIMP_SERVER_PREFIX=us9
Note: The server prefix is optional since it's automatically detected from your API key.
Next Steps
After getting your API key:
- Install Mailchimp MCP
- Configure with your API key
- Test the connection
- Start using Claude with Mailchimp!
Need Help?
Related Articles:
Get Tips on Using Claude with Mailchimp
Join our newsletter for tips, tutorials, and updates on AI-powered email marketing.
Related Articles
What is Mailchimp MCP? Complete Guide
๐ง If you're managing email marketing campaigns with Mailchimp, you've probably wondered: "What if ...
Read โWhy Marketers Use AI to Manage Mailchimp
๐ค Email marketing has always been time-consuming. Between creating campaigns, managing audiences, ...
Read โClaude Desktop + Mailchimp: Future of Email Marketing
๐ฎ The integration of Claude Desktop and Mailchimp represents a fundamental shift in how marketers ...
Read โ