163 Email MCP Server
Provides a Gradio-based MCP server interface for email operations, enabling AI agents to send and receive emails, manage attachments, and handle both text and HTML email formats through a web-based API.
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., "@163 Email MCP Servercheck my 5 most recent unread 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.
163邮箱 MCP 服务器
这是一个基于Gradio的163邮箱MCP服务器,可以作为LLM的工具,用于获取和处理电子邮件。
功能
获取最新的未读邮件
检查指定类型和数量的邮件
保存邮件附件
发送纯文本邮件
发送HTML格式邮件
发送带附件的邮件
Related MCP server: IMAP/SMTP Email MCP Server
安装依赖
使用requirements.txt安装
pip install -r requirements.txt手动安装
pip install gradio[mcp] bs4 python-dotenv启动服务器
直接启动
python email_mcp_server.py使用环境变量启动
可以通过环境变量来配置邮箱账号信息:
chmod +x start_with_env.sh
./start_with_env.sh或者手动设置环境变量:
export EMAIL_IMAP_SERVER=imap.163.com
export EMAIL_SMTP_SERVER=smtp.163.com
export EMAIL_ACCOUNT=your_email@163.com
export EMAIL_PASSWORD=your_password
python email_mcp_server.pyMCP工具
服务器提供以下MCP工具:
get_newest_email- 获取最新的未读邮件(可选覆盖参数:imap_server、account、password)check_emails- 检查指定类型和数量的邮件(可选覆盖参数:imap_server、account、password)save_attachment- 保存指定的附件(可选覆盖参数:imap_server、account、password)send_text_email- 发送纯文本邮件(可选覆盖参数:smtp_server、account、password)send_html_email- 发送HTML格式邮件(可选覆盖参数:smtp_server、account、password)send_email_with_attachment- 发送带附件的邮件(可选覆盖参数:smtp_server、account、password)
发送示例:自定义发送者账号
curl -X POST http://localhost:7860/gradio_api/mcp/run/send_text_email \
-H "Content-Type: application/json" \
-d '{
"to_addr": "someone@example.com",
"subject": "自定义发件人测试",
"content": "这是一封从自定义发件人发送的测试邮件",
"account": "your_email@163.com",
"password": "your_app_password",
"smtp_server": "smtp.163.com"
}'读取示例:自定义接收账号
curl -X POST http://localhost:7860/gradio_api/mcp/run/get_newest_email \
-H "Content-Type: application/json" \
-d '{
"account": "your_email@163.com",
"password": "your_app_password",
"imap_server": "imap.163.com"
}'连接到MCP客户端
MCP服务器启动后,可以通过以下URL连接:
http://localhost:7860/gradio_api/mcp/sseClone with HTTP
git clone https://www.modelscope.cn/studios/s3219521aa/email_mcp.gitThis 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 Servers
- Alicense-qualityDmaintenanceEnables AI to send, read, search, delete and reply to emails through SMTP or Gmail API, supporting common email services like QQ, 163, Gmail and Outlook with HTML/text formats and attachments.Last updated541ISC
- Flicense-qualityBmaintenanceEnables email management via IMAP/SMTP, supporting list emails, read emails, send emails, and save drafts.Last updated
- Alicense-qualityDmaintenanceEnables AI agents to interact with email accounts via IMAP and SMTP, supporting mailbox listing, email search, retrieval, sending, and management.Last updatedMIT
- Alicense-qualityDmaintenanceEnables reading, sending, and managing emails via IMAP/SMTP through natural language, including listing folders, searching, moving emails, and sending attachments.Last updated12MIT
Related MCP Connectors
Read, search, send, organize, draft and schedule email across your inboxes from any MCP client.
Manage Gmail end-to-end: search, read, send, draft, label, and organize threads. Automate workflow…
AI email inbox and sending tools with attachments, search, live events, and webhooks.
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/RickyQzh/email_mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server