
163 Email MCP Server
Connects to 163 email accounts via IMAP/SMTP to read, send, and manage emails through natural language commands.
Enables interaction with 163 email accounts through IMAP/SMTP protocols. Supports reading unread emails, sending text/HTML emails with attachments, and saving email attachments through natural language commands.
What it does
- Read unread emails from 163 accounts
- Send text and HTML emails with attachments
- Save email attachments to local storage
- Access email content through IMAP protocol
- Send emails via SMTP protocol
Best for
About 163 Email MCP Server
163 Email MCP Server is a community-built MCP server published by RickyQzh that provides AI assistants with tools and capabilities via the Model Context Protocol. Manage 163.com email via IMAP/SMTP — read unread mails, send text/HTML emails with attachments, and save attachments usi It is categorized under communication, developer tools.
How to install
You can install 163 Email MCP Server in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.
License
163 Email MCP Server is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.
163邮箱 MCP 服务器
这是一个基于Gradio的163邮箱MCP服务器,可以作为LLM的工具,用于获取和处理电子邮件。
功能
- 获取最新的未读邮件
- 检查指定类型和数量的邮件
- 保存邮件附件
- 发送纯文本邮件
- 发送HTML格式邮件
- 发送带附件的邮件
安装依赖
使用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 protected]
export EMAIL_PASSWORD=your_password
python email_mcp_server.py
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)
发送示例:自定义发送者账号
curl -X POST http://localhost:7860/gradio_api/mcp/run/send_text_email \
-H "Content-Type: application/json" \
-d '{
"to_addr": "[email protected]",
"subject": "自定义发件人测试",
"content": "这是一封从自定义发件人发送的测试邮件",
"account": "[email protected]",
"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": "[email protected]",
"password": "your_app_password",
"imap_server": "imap.163.com"
}'
连接到MCP客户端
MCP服务器启动后,可以通过以下URL连接:
http://localhost:7860/gradio_api/mcp/sse
Clone with HTTP
git clone https://www.modelscope.cn/studios/s3219521aa/email_mcp.git
Alternatives
Related Skills
Browse all skillsGuide technical communication for software developers. Covers email structure, team messaging etiquette, meeting agendas, and adapting messages for technical vs non-technical audiences. Use when drafting professional messages, preparing meeting communications, or improving written communication.
Automate Freshservice ITSM tasks via Rube MCP (Composio): create/update tickets, bulk operations, service requests, and outbound emails. Always search tools first for current schemas.
UI design system toolkit for Senior UI Designer including design token generation, component documentation, responsive design calculations, and developer handoff tools. Use for creating design systems, maintaining visual consistency, and facilitating design-dev collaboration.
Draft professional emails for various contexts including business, technical, and customer communication. Use when the user needs help writing emails or composing professional messages.
Find, connect, and use MCP tools and skills via the Smithery CLI. Use when the user searches for new tools or skills, wants to discover integrations, connect to an MCP, install a skill, or wants to interact with an external service (email, Slack, Discord, GitHub, Jira, Notion, databases, cloud APIs, monitoring, etc.).
Answer questions about the AI SDK and help build AI-powered features. Use when developers: (1) Ask about AI SDK functions like generateText, streamText, ToolLoopAgent, embed, or tools, (2) Want to build AI agents, chatbots, RAG systems, or text generation features, (3) Have questions about AI providers (OpenAI, Anthropic, Google, etc.), streaming, tool calling, structured output, or embeddings, (4) Use React hooks like useChat or useCompletion. Triggers on: "AI SDK", "Vercel AI SDK", "generateText", "streamText", "add AI to my app", "build an agent", "tool calling", "structured output", "useChat".