MCP Email Server
@ptbsare
关于 MCP Email Server
暂无概览
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"mcp_email_server": {
"command": "uv",
"args": [
"venv"
]
}
}
}工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is MCP Email Server?
A Python-based MCP (Model Context Protocol) server that allows an LLM (such as Claude) to read, delete, and send emails using POP3 (with TLS) and SMTP (with TLS/STARTTLS). It loads configuration from environment variables or a .env file and is intended for users who want AI-driven email management.
How to use MCP Email Server?
Install prerequisites (Python 3.12+, uv), navigate to the mcp_email_server directory, create a virtual environment, and install dependencies with uv pip install -e .. Configure credentials and server details in a .env file. Add the server to Claude Desktop’s developer_config.json with command: "uv", args: ["--directory", "/path/to/mcp_email_server", "run", "main.py"], and restart Claude Desktop. The server exposes five tools: pollEmails, getEmailsById, deleteEmailsById, sendTextEmail, and sendHtmlEmail.
Key features of MCP Email Server
- Poll inbox for email headers (
pollEmails). - Fetch full email details by ID (
getEmailsById). - Delete specific emails by ID (
deleteEmailsById). - Send plain text or HTML formatted emails.
- Secure connections via POP3 over SSL and SMTP (STARTTLS or direct SSL).
- Configuration via
.envfile or environment variables.
Use cases of MCP Email Server
- An LLM assistant polls and reads new emails on demand.
- Automatically delete spam or promotional emails based on content.
- Compose and send replies or new messages directly from an AI interface.
- Retrieve full email bodies for analysis or summarization.
FAQ from MCP Email Server
What protocols does MCP Email Server use?
It uses POP3 over SSL (default port 995) for reading/deleting emails and SMTP with STARTTLS (default port 587) or direct SSL (default port 465) for sending.
How do I configure email credentials?
Create a .env file in the mcp_email_server directory with variables like EMAIL_USER, EMAIL_PASS, POP3_SERVER, and SMTP_SERVER. Do not commit this file to version control.
Are app passwords required?
If your email provider uses Two-Factor Authentication, you likely need to generate an App Password for the EMAIL_PASS field.
How do email IDs work?
POP3 email IDs are sequential numbers assigned for the current session. They are only valid until the connection closes, and they change if emails are deleted. Always poll fresh IDs before reading or deleting.
Does the server support error reporting?
Yes, tool execution failures return appropriate MCP error responses, and individual email operations (like delete) return success/failure dictionaries.
沟通协作 分类下的更多 MCP 服务器
Telegram MCP server
chaindeadTelegram MCP for managing dialogs, messages, drafts, read statuses, and more.
MCP Teams Server
InditexTechAn MCP (Model Context Protocol) server implementation for Microsoft Teams integration, providing capabilities to read messages, create messages, reply to messages, mention members.
WhatsApp MCP Server (TypeScript/Baileys)
jlucaso1WhatsApp MCP Server (TypeScript/Baileys)
Outlook MCP Server
Wallisking1991Mcp Telegram
dryeabMCP Server for Telegram
评论