ai-mail-mcp
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., "@ai-mail-mcpsend an email to john@example.com about tomorrow's meeting and check my recent emails"
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.
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
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 installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Read, search, send, organize, draft and schedule email across your inboxes from any MCP client.
Shipmail MCP server for AI agent custom-domain email inboxes with REST API and webhooks.
Hosted email MCP for AI agents with inboxes, send/receive, memory, recovery, and credits.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/dongjunke/ai-mail-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server