mcpField
M
Mcp_email_server

Mcp_email_server

Local
github.com/huangyixin447Communication5Updated 72w ago

About Mcp_email_server

Mcp_email_server is an MCP service for QQ Mail that supports reading and sending email. It can run over SSE or locally through stdio, with mail-server credentials configured in an environment file.

Key features

  1. 01Read email
  2. 02Send email
  3. 03SSE service mode
  4. 04Local stdio mode

Use cases

  1. 01Reading QQ Mail messages
  2. 02Sending email through QQ Mail
  3. 03Connecting an MCP client through SSE

MCP support

It runs as an MCP service over SSE on port 9000 or locally over stdio, for configuration in an MCP client.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

No install method listed yet

We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.

Repository

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

邮件mcp服务使用方法

下载依赖

pip install -e .

然后打开.env文件

# 邮件服务器地址
SMTP_HOST=123
# 服务器接口地址
SMTP_PORT=123
#发件账号
EMAIL_USER=123
#授权码
EMAIL_PASSWORD=123
#数据库
DB_HOST=localhost
DB_PORT=11801
DB_USER=root
DB_PASSWORD=123456
DB_DATABASE=email_db
DB_CHARSET=utf8mb4

#邮箱相关配置
SMTP_HOST=smtp.qq.com
SMTP_PORT=465
[email protected]
#填写邮件授权码
EMAIL_PASSWORD=

按照你自己的信息填写好

按照如下的sql语句建表

CREATE TABLE IF NOT EXISTS email_record (
    id VARCHAR(36) PRIMARY KEY,
    `to` TEXT NOT NULL,
    subject TEXT,
    body TEXT,
    status ENUM('draft','sent','failed') DEFAULT 'draft',
    attachments TEXT,
    created_at DATETIME,
    updated_at DATETIME
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

邮件授权码请去你自己的qq邮箱中进行申请

全部配置完毕,终端输入

sse_run

则会在9000端口运行mcp服务,服务配置为 localhost:9000/see,

配置到你的mcpclient中即可

使用终端输入

stdio_run

则会在本地运行stdio的mcp服务,

采用类似如下的json配置即可成功,不过不推荐这种方式

{
  "mcpServers": {
      "email_server": {
        "isActive": true,
        "name": "operateMysql",
        "command": "uv",
        "args": [
          "--directory",
          "G:\\python\\mysql_mcp\\src",  # 这里需要替换为你的项目路径
          "run",
          "server.py",
          "--stdio"
        ]
    }
  }
}    

此项目基于原先的mcp规范开发,地址 https://github.com/huangyixin447/MCP_dev_Test01

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.