MCP Email Server
@ptbsare
关于 MCP Email Server
This Python script implements an MCP (Model Context Protocol) server using the mcp library (FastMCP) that allows an LLM (like Claude) to interact with an email account using POP3 (for reading/deleting emails) and SMTP (for sending emails), both secured with TLS encryption.
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"email-mcp-server": {
"command": "uv",
"args": [
"pip",
"install",
"-e",
"."
]
}
}
}工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is MCP Email Server?
MCP Email Server is a Model Context Protocol (MCP) server that enables Large Language Models like Claude to read, send, and manage emails via POP3/SMTP with TLS. It provides tools for polling inboxes, fetching full emails with attachments, deleting messages, and sending plain text or HTML emails.
How to use MCP Email Server?
Users can run the server directly via uvx git+https://github.com/ptbsare/email-mcp-server with required CLI arguments (--email-user, --email-pass, --pop3-server, --smtp-server) or by cloning and running locally. Configuration can be provided via CLI arguments, environment variables, or a .env file (priority order: CLI > env > .env). Integrate with Claude Desktop by adding an entry to claude_desktop_config.json using the uvx command with either env or args fields.
Key features of MCP Email Server
- Poll inbox email headers with configurable limit
- Fetch full email content with automatic attachment extraction
- Delete emails by ID (irreversible)
- Send plain text and HTML emails with optional file attachments
- Secure connections: POP3 over SSL (port 995), SMTP with STARTTLS (port 587) or SSL (port 465)
- Config priority: CLI args > environment variables >
.envfile
Use cases of MCP Email Server
- Let an LLM read recent inbox emails and summarize them
- Send automated emails with attachment files based on LLM decisions
- Manage email lifecycle (read, delete) through natural language commands
- Generate and send HTML reports via LLM instructions
FAQ from MCP Email Server
What credentials are required?
An email address and password (or app password) for both POP3 and SMTP servers. If your provider uses 2FA, generate an App Password.
Are email IDs persistent across sessions?
No, POP3 IDs are session-specific. Call pollEmails before using IDs in getEmailsById or deleteEmailsById.
Where are received attachments stored?
Attachments are automatically saved to /tmp/email_mcp_attachments/<email_id>/ on the server.
How can I configure TLS/SSL for SMTP?
SMTP port defaults to 587 (STARTTLS). Set --smtp-use-ssl (or env SMTP_USE_SSL=true) to use direct SSL on port 465.
Is the .env file safe from committing?
Yes, .env is listed in .gitignore by default. Never commit your credentials file.
沟通协作 分类下的更多 MCP 服务器
Modular Outlook MCP Server
ryakerMCP server for Claude to access Outlook data via Microsoft Graph API
Email sending MCP 💌
ykhliThe official MCP server to send emails and interact with Resend
MCP Email Server
Shy2593666979一个基于 MCP (Model Context Protocol) 的邮件服务,支持 LLM 发送带附件的电子邮件及在指定目录中搜索文件。提供安全的 SMTP 传输、多收件人支持和附件模式匹配搜索功能,适用于 Gmail、Outlook、Yahoo、QQ 邮箱和网易 126 邮箱等主流邮箱服务。
Outlook MCP Server
Wallisking1991Telegram MCP Server
chigwellTelegram MCP server powered by Telethon to let MCP clients read chats, manage groups, and send/modify messages, media, contacts, and settings.
评论