MCP server for email and DingTalk notifications
Project description
Notification MCP Server
MCP 服务器,用于发送邮件和钉钉消息通知。
功能
- 📧 发送邮件(支持 SMTP)
- 🤖 发送钉钉消息(支持 Markdown 格式)
安装
使用 uvx 运行(推荐):
uvx notification-mcp-server@latest
或使用 pip 安装:
pip install notification-mcp-server
配置
需要设置以下环境变量:
邮件配置
SMTP_SERVER: SMTP 服务器地址(如 smtp.163.com)SMTP_PORT: SMTP 端口(如 465)EMAIL_ACCOUNT: 邮箱账号EMAIL_PASSWORD: 邮箱授权码SMTP_SSL: 是否使用 SSL(true/false)
钉钉配置
DINGTALK_WEBHOOK: 钉钉机器人 Webhook URLDINGTALK_SECRET: 钉钉机器人加签密钥(可选)
在 Kiro IDE 中使用
在 .kiro/settings/mcp.json 中添加:
{
"mcpServers": {
"notification": {
"command": "uvx",
"args": ["notification-mcp-server@latest"],
"env": {
"SMTP_SERVER": "smtp.163.com",
"SMTP_PORT": "465",
"EMAIL_ACCOUNT": "your@email.com",
"EMAIL_PASSWORD": "your-auth-code",
"SMTP_SSL": "true",
"DINGTALK_WEBHOOK": "your-webhook-url"
}
}
}
}
可用工具
send_email
发送邮件到指定邮箱。
参数:
to: 收件人邮箱地址subject: 邮件主题content: 邮件内容content_type: 内容类型(plain/html,默认 plain)cc: 抄送列表(可选)bcc: 密送列表(可选)
send_dingtalk_message
发送消息到钉钉群。
参数:
title: 消息标题text: 消息内容msg_type: 消息类型(text/markdown,默认 markdown)at_mobiles: @的手机号列表(可选)at_all: 是否@所有人(可选)
作者
@author shao
许可证
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file notification_mcp_shao-1.0.0.tar.gz.
File metadata
- Download URL: notification_mcp_shao-1.0.0.tar.gz
- Upload date:
- Size: 11.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
09dbe54e8514112f30b007d3139a4d709d30e6c6e41361516d685b3f8b6fc02a
|
|
| MD5 |
dbb55f1e0aeb172d96e5eb980b6ca47b
|
|
| BLAKE2b-256 |
df4eeed9a9571bff4548d87e4bf28942333643e270aa7233a6fd5d1afc7fdef3
|
File details
Details for the file notification_mcp_shao-1.0.0-py3-none-any.whl.
File metadata
- Download URL: notification_mcp_shao-1.0.0-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee9c9c9e28b270f646b0a5e928ca0412f64bae460cce03de002bfa6a8512ae4b
|
|
| MD5 |
b16090b651490d35b7dc4830bdf916b5
|
|
| BLAKE2b-256 |
30fd270674a1548f3eff67cda5ca6af5ed181a22084a70fc283bddae153095c6
|