ai-mail-mcp
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.
ai-mail-mcp
Connect your private domain email to any MCP client for email services. Supports sending (automatically appends a personal signature / brand introduction page link), receiving, reading email content, and connection testing.
Compatible with WorkBuddy, Claude Desktop, Cursor, and all tools that support the MCP protocol. Through cloud deployment, WorkBuddy desktop and mobile can share the same email entry point, allowing you to manage your email affairs with natural language anytime, anywhere.
Features
โ๏ธ
send_email: Send emails, automatically appending a personal signature "Sent by xx via xx" (includes an introduction page link, which can serve as a personal IP entry point)๐ฅ
get_recent_emails: Get a list of emails from the last N days (subject / sender / time)๐
get_email_content: Read the full email body and attachment information by UID๐
test_email_connection: One-click test of SMTP / IMAP connection๐ Two transport methods: stdio (local debugging) / SSE (cloud remote deployment)
๐ Endpoint Bearer Token authentication, all credentials go through environment variables, never hardcoded
Related MCP server: io.github.p-w-4-z/inbox-mcp
Architecture
โโโโโโโโโโโโโโโโ HTTPS + Bearer โโโโโโโโโโโโโโโโโโโโ SMTP/IMAP โโโโโโโโโโโโโโโโ
โ WorkBuddy โ โโโโโโโโโโโโโโโโโโถ โ ai-mail-mcp โ โโโโโโโโโโโโโถ โ ไฝ ็ๅๅ้ฎ็ฎฑ โ
โ ๆก้ข็ซฏ / ็งปๅจ็ซฏ โ โ (ไบ็ซฏ MCP Server) โ โ you@your.com โ
โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโCloud deployment is key: one HTTPS endpoint that both desktop and mobile can connect to, no need for the local machine to be on.
Quick Start
1. Configure Environment Variables
cp .env.example .env
# ็ผ่พ .env๏ผๅกซๅ
ฅไฝ ็้ฎ็ฎฑ่ดฆๅทใๆๆ็ ใSMTP/IMAP ๅฐๅใBearer Token2A. Local Debugging (stdio)
npm install
MCP_TRANSPORT=stdio node server.js2B. Cloud Deployment (SSE, Recommended)
Requires a server with a public IP + a domain name (HTTPS).
cp .env.example .env # ๅจๆๅกๅจไธๅกซๅ็ๅฎ้
็ฝฎ
docker compose up -dThen use nginx reverse proxy + acme.sh/certbot to sign an HTTPS certificate (there are commented examples in docker-compose.yml),
resulting in an endpoint like https://mcp.your-domain.com/mail-mcp/sse.
3. Connect to WorkBuddy (Custom Connector)
Edit ~/.workbuddy/mcp.json:
{
"mcpServers": {
"ai-mail-mcp": {
"type": "sse",
"url": "https://mcp.your-domain.com/mail-mcp/sse",
"headers": {
"Authorization": "Bearer ไฝ ็้ๆบToken"
}
}
}
}In the WorkBuddy connector management page, click Trust / Enable on this connector and restart the session. You can then use in conversations:
"Send an email to xx, subjectโฆ, bodyโฆ"
"Check my emails from the last 3 days and summarize which ones need replies"
"Every morning at 9, send a summary of yesterday's emails to my inbox"
Tool List
Tool | Description | Key Parameters |
| Send email (auto-appends signature) |
|
| Recent email list |
|
| Read full email content |
|
| Test SMTP/IMAP | None |
Security Tips
MCP_BEARER_TOKENmust be set to a sufficiently random long string (generated withopenssl rand -hex 32) and kept securelyDo not commit
.envor real credentials to any repository; only.env.exampleis committed to this documentation repositoryIt is recommended to use a separate email account with minimal permissions (send/receive only, no delete/management permissions)
Self-hosting means all email data stays on your own server and is not handed over to third parties
License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Email infrastructure for AI agents โ send, receive, search, and reply to email over MCP.
Real email inboxes for AI agents: register, receive, read and send mail over MCP. Free to receive.
Email inboxes for AI agents: send, receive, reply, search, and manage threaded email over MCP.
Hosted email for AI agents: create inboxes, send, receive, and reply over MCP with scoped API keys
Related MCP Servers
- AlicenseBqualityBmaintenanceAn MCP service that enables AI to fully manage email accounts, supporting sending emails with attachments and multiple recipients across various email providers.71,018 npm92MIT
- AlicenseAqualityDmaintenanceProvider-agnostic email MCP server that connects any IMAP mailbox to AI assistants, enabling email management through natural language.8AGPL 3.0
- AlicenseBqualityBmaintenanceEnables users to manage email accounts via IMAP/SMTP, including reading, searching, sending emails with attachments and calendar invites, all through natural language interactions with MCP-compatible clients.132 PyPI4MIT
- AlicenseNot gradedqualityFmaintenanceAn MCP server that receives emails on your domain and allows AI assistants to search, read, and manage them via natural language queries.1,187 npmMIT