邮件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_USER=2971434037@qq.com
#填写邮件授权码
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
Email MCP Server
Project Details
- huangyixin447/MCP_dev_email_server
- Last Updated: 6/16/2025
Recomended MCP Servers
Kubernetes Control Plane Server for Managing Multiple Clusters – the central pilot for your k8s fleets✈️✈️
Send emails directly from Cursor with this email sending MCP server
Lightweight MCP server to give your Cursor Agent access to the WorkOS API.
mcp-collection
Lightweight static analysis for many languages. Find bug variants with patterns that look like source code.
MCP Server para gerenciar o Memory Bank
芋道管理后台,基于 Vue3 + Element Plus 实现,支持 RBAC 动态权限、数据权限、SaaS 多租户、Flowable 工作流、三方登录、支付、短信、商城、CRM、ERP、AI 大模型等功能。
Model Context Protocol (MCP) server implementation for semantic vector search and memory management using TxtAI. This server provides...





