Cloudflare Email MCP
Provides tools for sending emails via Cloudflare's Email Service, supporting HTML bodies, multiple recipients (To, CC, BCC), and attachments through a REST API and MCP server.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Cloudflare Email MCP & API Wrapper 📧
An open-source, production-ready Cloudflare Worker that exposes a JSON API and a Model Context Protocol (MCP) server for sending emails via Cloudflare's Email Service.
Features
MCP Server: Connect directly to AI agents (Claude, Gemini, etc.) to send emails.
REST API: Simple JSON endpoint for traditional application integration.
Advanced Email Support: HTML bodies, multiple recipients (To, CC, BCC), and attachments.
Edge Performance: Built on Cloudflare Workers for global low-latency.
Secure: Bearer token authentication for both API and MCP endpoints.
Related MCP server: Email MCP Server
Quick Start (Deploy Once)
1. Prerequisites
A Cloudflare account with a domain configured for Email Routing.
bunornpminstalled.
2. Installation
git clone https://github.com/sh20raj/cf-email-mcp-api.git
cd cf-email-mcp-api
bun install3. Configuration
Copy .dev.vars.example to .dev.vars and fill in your local values:
API_TOKEN: A secure token for endpoint authentication.DEFAULT_SENDER: An authorized email address from your Email Routing domain.DEFAULT_FROM_NAME: Optional sender display name.
4. Deploy
bun run deploy🤖 AI Agent Integration (MCP)
Adding to Claude Desktop
Add the following to your claude_desktop_config.json:
{
"mcpServers": {
"cf-email": {
"transport": "http",
"url": "https://your-worker.workers.dev/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_TOKEN"
}
}
}
}Adding to Gemini / Antigravity
Add to your mcp_config.json:
{
"mcpServers": {
"cf-email": {
"transport": "http",
"url": "https://your-worker.workers.dev/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_TOKEN"
}
}
}
}🛠️ API Reference
Send Email
POST /api/send
Headers:
Authorization: Bearer YOUR_API_TOKENContent-Type: application/json
Body:
{
"to": "recipient@example.com",
"replyTo": "support@example.com",
"subject": "Hello from API",
"html": "<h1>Professional Email</h1><p>Sent via Cloudflare Workers.</p>",
"attachments": [
{
"name": "report.pdf",
"type": "application/pdf",
"data": "BASE64_ENCODED_DATA"
}
]
}License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Send email, manage domains, templates, webhooks and broadcasts from your AI agent.
Let AI agents send email from your own Gmail, Microsoft 365 or SMTP inbox, with guardrails.
Give your AI agent its own email address: send, receive and read email. $0.01 USDC per send.
Send transactional emails for AI agents via SMTP. Templates included.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to send transactional emails programmatically through the Lemon Email API. Provides simple email sending capabilities with customizable sender information, recipients, and content.2MIT
- AlicenseNot gradedqualityDmaintenanceEnables sending emails through SMTP using nodemailer, allowing AI assistants to send plain text and HTML emails with configurable SMTP credentials.27 npm2ISC
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to send emails via Cloudflare's Email Service. Provides both MCP server integration for AI tools and a REST API for traditional applications with support for HTML content, attachments, and secure authentication.2MIT
- AlicenseAqualityDmaintenanceEnables AI agents to send emails via Microsoft 365/Office 365 using app-only authentication and Microsoft Graph API, supporting HTML content, attachments, and CC/BCC.2MIT