Labsco
zoyth logo

Cakemail MCP Server

from zoyth

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

πŸ”₯πŸ”₯πŸ”₯βœ“ VerifiedAccount requiredAdvanced setup

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

πŸ§ͺ Testing

Quick Test

npm run test

Debug with MCP Inspector

npm run inspector

Health Check

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

πŸ” 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:

  1. Copy .env.example to .env
  2. Add your actual credentials to .env
  3. Ensure .env is listed in .gitignore (already configured)
  4. If credentials are accidentally exposed, rotate them immediately in your Cakemail account

πŸ“š Support

πŸ“ 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! πŸš€