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.
163邮箱 MCP 服务器
这是一个基于Gradio的163邮箱MCP服务器,可以作为LLM的工具,用于获取和处理电子邮件。
功能
获取最新的未读邮件
检查指定类型和数量的邮件
保存邮件附件
发送纯文本邮件
发送HTML格式邮件
发送带附件的邮件
安装依赖
使用requirements.txt安装
手动安装
启动服务器
直接启动
使用环境变量启动
可以通过环境变量来配置邮箱账号信息:
或者手动设置环境变量:
MCP工具
服务器提供以下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)
发送示例:自定义发送者账号
读取示例:自定义接收账号
连接到MCP客户端
MCP服务器启动后,可以通过以下URL连接: