Cakemail MCP Server

by zoyth

Not rated
GitHub

About

Manage email marketing campaigns, contacts, and transactional emails with the Cakemail API.

Details

Author
zoyth
Categories
Communication, Automation, Marketing

Setup

Install Cakemail MCP Server in your MCP client (Claude Desktop, Cursor, Windsurf, and others).

Repository: https://github.com/zoyth/cakemail-mcp-server

Follow the installation instructions in the repository README, then restart your MCP client.

Manage email marketing campaigns, contacts, and transactional emails with the Cakemail API.

An enterprise Model Context Protocol (MCP) server for integrating with the Cakemail API. This server provides comprehensive tools for email marketing campaigns, transactional emails, detailed reporting, advanced BEEeditor visual email design, template management, and complete list management through the Cakemail platform.

🎯 Version 1.10.0 - Complete Template Management

This version introducescomprehensive template management functionality, providing complete lifecycle management for email templates including creation, updating, duplication, and advanced filtering capabilities with support for modern OpenAPI content structures.

- βœ… Create, update, and delete email templates with modern content structure
- βœ… List templates with advanced filtering, sorting, and pagination
- βœ… Get individual template details and metadata
- βœ… Duplicate templates with smart naming and tag preservation
- βœ… Render templates for HTML preview and testing
- βœ…OpenAPI-compliant content structure(html, text, bee, custom)
- βœ…Backward compatibilitywith legacy template formats
- βœ…Multi-account supportfor enterprise environments
- βœ…Advanced filteringby tags, name, ownership status
- βœ…Template searchby name, tags, or ownership

- βœ… Create, update, and delete contacts with custom fields
- βœ… List contacts with filtering by list ID
- βœ… Advanced contact segmentation support
- βœ… Contact engagement metrics

- βœ… Create, update, and delete email campaigns
- βœ… List campaigns with advanced filtering and pagination
- βœ… Send campaigns to contact lists
- βœ… Campaign performance metrics (via Reports API)
- βœ… Get latest campaign with one command
- βœ…BEEeditor integrationfor visual email design
- βœ…JSON-based email templateswith drag-and-drop structure
- βœ…Newsletter template generationwith automated layout
- βœ… Campaign scheduling, suspension, and lifecycle management
- βœ… Campaign testing, preview, and revision history
- βœ… Campaign archiving and link tracking

- βœ… Create, update, and delete contact lists
- βœ… List all lists with advanced filtering and pagination
- βœ… Get detailed list information and statistics
- βœ… Archive lists while preserving data
- βœ… Comprehensive list performance analytics
- βœ… Multi-language support and sender configuration
- βœ… Webhook integration for real-time list events
- βœ… Account scoping for enterprise environments

- βœ… Send individual transactional and marketing emails
- βœ… Email status tracking and delivery monitoring
- βœ… HTML and plain text content support
- βœ… Email rendering and preview capabilities
- βœ… Comprehensive email activity logs with filtering
- βœ… Email statistics with time-based analytics
- βœ… Advanced email logs with performance analysis
- βœ… Debug tools for email API testing

🏒 Enterprise Sub-Account Management (14 tools)

- βœ… Create, update, and delete sub-accounts
- βœ… Multi-tenant support for agencies
- βœ… Account suspension/unsuspension
- βœ… Organization conversion
- βœ… Email verification workflows
- βœ… Advanced filtering and search capabilities
- βœ… Debug and troubleshooting utilities

πŸ“Š Enhanced Reporting & Analytics (12 tools)

- βœ…Modular Reports Architecturewith focused, maintainable modules
- βœ…Campaign Analyticswith detailed performance insights and link analysis
- βœ…Email API Statisticsfor transactional email performance
- βœ…List & Account Analyticswith growth metrics and deliverability health
- βœ…Smart Performance Benchmarkingwith industry standard comparisons
- βœ…Intelligent Link Analysiswith automatic categorization and optimization
- βœ…Visual Performance Indicators(πŸš€πŸ‘ ⚠️ πŸ›‘) for quick assessment
- βœ…Actionable Recommendationsbased on performance patterns
- βœ…Export Managementwith progress tracking and lifecycle management
- βœ…Campaign Reports Export(CSV/XLSX) with comprehensive data
- βœ…Suppressed Emails Exportfor compliance and deliverability
- βœ…Debug Toolsfor API connectivity testing

- βœ… Campaign activity logs with advanced sequence analysis
- βœ… Workflow automation logs
- βœ… Transactional email delivery logs
- βœ… Contact list activity logs
- βœ… Smart filtering and event categorization
- βœ… Debug tools for logs API testing

- βœ… Create, update, and delete verified senders
- βœ… List all senders with verification status
- βœ… Complete sender authentication support

- βœ… Create basic BEEeditor template structures
- βœ… Generate complete newsletter templates with sections
- βœ… Validate BEE JSON templates against schema
- βœ… Drag-and-drop email design capabilities

- βœ… Get current account details and information
- βœ… View retry configuration and API settings
- βœ… Account health monitoring and diagnostics

- βœ… Health monitoring and API connection validation
- βœ… OAuth 2.0 authentication with automatic token refresh
- βœ… Retry logic with exponential backoff
- βœ… Rate limiting and circuit breaker protection
- βœ… Request queuing and concurrency control
- βœ… Comprehensive error handling

Total Implemented: 87+ tools across 11 feature categories

- Node.js18 or higher
- Cakemail accountwith API access
- Claude Desktopor another MCP-compatible client

git clone https://github.com/cakemail/cakemail-mcp-server.git cd cakemail-mcp-server
CAKEMAIL_USERNAME=your-email@example.com CAKEMAIL_PASSWORD=your-password CAKEMAIL_BASE_URL=https://api.cakemail.dev

Add the server to your Claude Desktop configuration:

macOS:~/Library/Application Support/Claude/claude_desktop_config.json
Windows:%APPDATA%\Claude\claude_desktop_config.json

{ "mcpServers": { "cakemail": { "command": "node", "args": ["/absolute/path/to/cakemail-mcp-server/build/index.js"], "env": { "CAKEMAIL_USERNAME": "your-email@example.com", "CAKEMAIL_PASSWORD": "your-password" } } } }

In Claude Desktop:"Check my Cakemail API health status"

"Show me my latest campaigns with analytics"
"Show me my account details" "What's my current retry configuration?"
"Create a new sub-account for our client 'Acme Corp' with the email admin@acmecorp.com" "List all active sub-accounts and show their verification status" "Suspend the sub-account for client XYZ temporarily" "Convert sub-account 12345 to an organization"
"List all my email templates sorted by creation date" "Create a new template called 'Welcome Email' with modern content structure" "Get the details of template ID 123 including its content and metadata" "Update my newsletter template with new HTML content and add marketing tags" "Duplicate the welcome email template as 'Welcome Email - French'" "Show me a preview of template 456 by rendering it to HTML" "Delete the old product launch template that's no longer needed" "Find all templates tagged with 'newsletter' that I own"
"Create a new email campaign called 'Holiday Sale 2024' with the subject 'Save 50% on Everything!' and send it to my newsletter list"
"Create a BEE newsletter template with sections for product announcements and customer testimonials" "Generate a basic BEE template for welcome emails with our brand colors" "Validate my custom BEE template and show me the structure" "Create a campaign using BEE format with a professional newsletter layout"
"Send a transactional welcome email to sara@example.com with our onboarding template"
"Show me the performance metrics for my latest campaign including open rates and click rates" "Create a CSV export of all my campaign performance data for the last quarter" "Get detailed campaign logs for campaign 12345 with advanced sequence analysis to see the complete user journey" "Analyze campaign 789 logs to identify drop-off points and get optimization recommendations" "Export the performance data for all my campaigns this year in Excel format" "Show me link performance analysis for my newsletter campaign with categorization insights" "Generate performance benchmarks comparing my open rates to industry standards"

The reports functionality is built on amodular architecturefor enhanced maintainability:

Each module provides focused functionality while sharing common analytics utilities for consistent performance benchmarking and intelligent recommendations.

The server includes production-ready features:

- Automatic Retry: Exponential backoff with jitter
- Rate Limiting: Respects API limits and server responses
- Circuit Breaker: Automatic failure detection and recovery
- Request Queuing: Concurrency control for batch operations

Comprehensive error types with detailed messages:

- Authentication Errors: Clear credential guidance
- Validation Errors: Field-specific error details
- Rate Limit Errors: Automatic retry timing
- Network Errors: Connection and timeout handling

- VerifyCAKEMAIL_USERNAMEandCAKEMAIL_PASSWORD
- Ensure API access is enabled on your account

npm run clean && npm run rebuild

- Restart Claude Desktop completely
- Wait for full load, then test new commands

# Test in Claude Desktop "Check my Cakemail API connection"

- OAuth 2.0authentication with automatic token refresh
- Input validationto prevent injection attacks
- Secure credential storageusing environment variables
- Rate limitingto prevent abuse
- HTTPS-onlyAPI communication

Never commit credentials to version control!Always use environment variables for sensitive data:
- Copy.env.exampleto.env
- Add your actual credentials to.env
- Ensure.envis listed in.gitignore(already configured)
- If credentials are accidentally exposed, rotate them immediately in your Cakemail account

- Cakemail API:https://cakemail.dev
- List Management Guide:
docs/list-management.md
- BEEeditor Integration:
docs/BEE_EDITOR_INTEGRATION.md
- MCP Protocol:
https://github.com/modelcontextprotocol
- Issues:
https://github.com/cakemail/cakemail-mcp-server/issues

This project is licensed under the MIT License - see theLICENSEfile for details.

Ready to enhance your email marketing with AI?Get started with the Cakemail MCP Server today! πŸš€

Integrate with the Brevo email marketing platform via its API.

A read-only MCP server by CData that enables LLMs to query live SendGrid data. Requires the external CData JDBC Driver for SendGrid.

The Elastic Email MCP Server enables AI agents like GitHub Copilot, ChatGPT, Claude, and other compatible assistants to seamlessly integrate with your Elastic Email account.

Allow your agents to launch personalized outbound campaigns

Your AI agent just got a marketing team. SendPulse MCP Server provides full access to the SendPulse marketing platform β€” email campaigns, CRM, chatbots, SMTP, and online courses. 134 methods across 5 modules.

Enables seamless integration with communication platform that allows you to reach your customers globally across any channel.

Turn AI tools into your email marketing assistant.

Turn an AI tool into your smart email engine

No reviews yet β€” be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.