Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Cakemail MCP Servercreate a new email campaign for our summer sale"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Cakemail MCP Server
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 introduces comprehensive 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.
โจ Currently Implemented Features
๐จ Template Management (7 tools)
โ 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 compatibility with legacy template formats
โ Multi-account support for enterprise environments
โ Advanced filtering by tags, name, ownership status
โ Template search by name, tags, or ownership
๐ฅ Contact Management
โ Create, update, and delete contacts with custom fields
โ List contacts with filtering by list ID
โ Advanced contact segmentation support
โ Contact engagement metrics
๐ง Campaign Management (21 tools)
โ 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 integration for visual email design
โ JSON-based email templates with drag-and-drop structure
โ Newsletter template generation with automated layout
โ Campaign scheduling, suspension, and lifecycle management
โ Campaign testing, preview, and revision history
โ Campaign archiving and link tracking
๐ List Management (7 tools)
โ 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
๐จ Transactional Email (10 tools)
โ 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 Architecture with focused, maintainable modules
โ Campaign Analytics with detailed performance insights and link analysis
โ Email API Statistics for transactional email performance
โ List & Account Analytics with growth metrics and deliverability health
โ Smart Performance Benchmarking with industry standard comparisons
โ Intelligent Link Analysis with automatic categorization and optimization
โ Visual Performance Indicators (๐๐โ ๏ธ๐) for quick assessment
โ Actionable Recommendations based on performance patterns
โ Export Management with progress tracking and lifecycle management
โ Campaign Reports Export (CSV/XLSX) with comprehensive data
โ Suppressed Emails Export for compliance and deliverability
โ Debug Tools for API connectivity testing
๐ Logs & Event Tracking (6 tools)
โ 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
๐ค Sender Management (5 tools)
โ Create, update, and delete verified senders
โ List all senders with verification status
โ Complete sender authentication support
๐จ BEEeditor Visual Design (3 tools)
โ Create basic BEEeditor template structures
โ Generate complete newsletter templates with sections
โ Validate BEE JSON templates against schema
โ Drag-and-drop email design capabilities
๐ข Account Management (2 tools)
โ Get current account details and information
โ View retry configuration and API settings
โ Account health monitoring and diagnostics
๐ฅ Production Infrastructure
โ 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
๐ Quick Start
Prerequisites
Node.js 18 or higher
Cakemail account with API access
Claude Desktop or another MCP-compatible client
Installation
Clone the repository:
Install dependencies:
Build the project:
Configuration
Environment Variables
Create a .env file in the project root:
Claude Desktop Setup
Add the server to your Claude Desktop configuration:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
๐งช Testing
Quick Test
Debug with MCP Inspector
Health Check
In Claude Desktop: "Check my Cakemail API health status"
๐ก Usage Examples
Quick Campaign Check
Account Information
Sub-Account Management
List Management Examples
Template Operations
Create and Send Campaign
BEEeditor Templates
Transactional Emails
List Operations
Advanced Analytics & Exports
Reports Module Architecture
The reports functionality is built on a modular architecture for enhanced maintainability:
Campaign Analytics: Performance insights, link analysis, engagement metrics
Email Statistics: Transactional email performance and delivery tracking
List & Account Analytics: Growth metrics, subscriber analysis, account health
Export Management: Complete export lifecycle with progress tracking
Smart Insights Engine: Automated performance analysis and recommendations
Debug Utilities: API connectivity testing and troubleshooting
Each module provides focused functionality while sharing common analytics utilities for consistent performance benchmarking and intelligent recommendations.
๐ง Advanced Configuration
Retry and Rate Limiting
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
Error Handling
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
๐ Troubleshooting
Common Issues
Authentication Errors:
Verify
CAKEMAIL_USERNAMEandCAKEMAIL_PASSWORDEnsure API access is enabled on your account
Build Errors:
New Tools Not Showing:
Restart Claude Desktop completely
Wait for full load, then test new commands
API Connectivity:
Debug Mode
๐ Security
OAuth 2.0 authentication with automatic token refresh
Input validation to prevent injection attacks
Secure credential storage using environment variables
Rate limiting to prevent abuse
HTTPS-only API communication
โ ๏ธ Important Security Notice
Never commit credentials to version control! Always use environment variables for sensitive data:
Copy
.env.exampleto.envAdd your actual credentials to
.envEnsure
.envis listed in.gitignore(already configured)If credentials are accidentally exposed, rotate them immediately in your Cakemail account
๐ Support
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
๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
Ready to enhance your email marketing with AI? Get started with the Cakemail MCP Server today! ๐