Cloudflare Email MCP
Cloudflare Email MCP & API Wrapper 📧
Ein Open-Source, produktionsreifer Cloudflare Worker, der eine JSON-API und einen Model Context Protocol (MCP)-Server zum Senden von E-Mails über den Cloudflare Email Service bereitstellt.
Funktionen
MCP-Server: Direkte Verbindung zu KI-Agenten (Claude, Gemini usw.), um E-Mails zu versenden.
REST-API: Einfacher JSON-Endpunkt für die Integration in herkömmliche Anwendungen.
Erweiterte E-Mail-Unterstützung: HTML-Inhalte, mehrere Empfänger (An, CC, BCC) und Anhänge.
Edge-Performance: Basiert auf Cloudflare Workers für globale niedrige Latenz.
Sicher: Bearer-Token-Authentifizierung für API- und MCP-Endpunkte.
Related MCP server: communication-mcp-server
Schnellstart (Einmalige Bereitstellung)
1. Voraussetzungen
Ein Cloudflare-Konto mit einer für Email Routing konfigurierten Domain.
bunodernpminstalliert.
2. Installation
git clone https://github.com/sh20raj/cf-email-mcp-api.git
cd cf-email-mcp-api
bun install3. Konfiguration
Kopieren Sie .dev.vars.example nach .dev.vars und tragen Sie Ihre lokalen Werte ein:
API_TOKEN: Ein sicheres Token für die Endpunkt-Authentifizierung.DEFAULT_SENDER: Eine autorisierte E-Mail-Adresse Ihrer Email-Routing-Domain.DEFAULT_FROM_NAME: Optionaler Anzeigename des Absenders.
4. Bereitstellung
bun run deploy🤖 KI-Agenten-Integration (MCP)
Hinzufügen zu Claude Desktop
Fügen Sie Folgendes zu Ihrer claude_desktop_config.json hinzu:
{
"mcpServers": {
"cf-email": {
"transport": "http",
"url": "https://your-worker.workers.dev/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_TOKEN"
}
}
}
}Hinzufügen zu Gemini / Antigravity
Fügen Sie dies zu Ihrer mcp_config.json hinzu:
{
"mcpServers": {
"cf-email": {
"transport": "http",
"url": "https://your-worker.workers.dev/mcp",
"headers": {
"Authorization": "Bearer YOUR_API_TOKEN"
}
}
}
}🛠️ API-Referenz
E-Mail senden
POST /api/send
Header:
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"
}
]
}Lizenz
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Email infrastructure for AI agents — send, receive, search, and reply to email over MCP.
Hosted email for AI agents: create inboxes, send, receive, and reply over MCP with scoped API keys
MCP server for e-mail testing: create disposable inboxes, wait for delivery, and extract e-mail content or links - all from your AI agent or test automation workflow. Get a free API key on https://app.zyntra.app/
Hosted email MCP for AI agents with inboxes, send/receive, memory, recovery, and credits.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA production-ready MCP server that empowers AI agents to securely send emails via SMTP, supporting plain text, HTML, and attachments.MIT
- AlicenseNot gradedqualityBmaintenanceMCP server that provides email communication tools (send email, health check, list providers) via SMTP, accessible over HTTP/SSE for remote AI clients like Claude Desktop.12 npmMIT
- AlicenseNot gradedqualityCmaintenanceAn MCP server that enables AI agents to validate email addresses and send emails via SMTP with zero external dependencies.MIT
- AlicenseNot gradedqualityBmaintenanceMCP server that acts as an email gateway for Gmail and Microsoft 365, enabling AI agents to send and read emails via MCP tools, with SMTP/IMAP and REST APIs for email sequencing and automation.1AGPL 3.0