163 Email MCP Server

163 Email MCP Server

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.

Category
Visit Server

README

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_ACCOUNT=your_email@163.com
export EMAIL_PASSWORD=your_password
python email_mcp_server.py

MCP工具

服务器提供以下MCP工具:

  1. get_newest_email - 获取最新的未读邮件(可选覆盖参数:imap_serveraccountpassword
  2. check_emails - 检查指定类型和数量的邮件(可选覆盖参数:imap_serveraccountpassword
  3. save_attachment - 保存指定的附件(可选覆盖参数:imap_serveraccountpassword
  4. send_text_email - 发送纯文本邮件(可选覆盖参数:smtp_serveraccountpassword
  5. send_html_email - 发送HTML格式邮件(可选覆盖参数:smtp_serveraccountpassword
  6. send_email_with_attachment - 发送带附件的邮件(可选覆盖参数:smtp_serveraccountpassword

发送示例:自定义发送者账号

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/sse

Clone with HTTP

 git clone https://www.modelscope.cn/studios/s3219521aa/email_mcp.git

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured