邮件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
The MCP Internet Speed Test is a specialized Model Context Protocol (MCP) server that enables AI models and...
Implement Discord MCP server enabling AI assistants to interact with the Discord platform.
ClickUp MCP Server - Integrate ClickUp task management with AI through Model Context Protocol
MCP AutoProvisioner
[Self-hosted] A Model Context Protocol (MCP) server implementation that provides a web search capability over stdio transport. This...
This read-only MCP Server allows you to connect to Google BigQuery data from Claude Desktop through CData JDBC...
Hyperskill MCP
Secure shell command execution MCP server for Claude AI. Enables controlled shell access within specified directories.
Nornir MCP Server





