Skip to main content

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 URL
  • DINGTALK_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

Metadata

Release files for notification-mcp-shao 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for notification-mcp-shao 1.0.0
File Size Uploaded
notification_mcp_shao-1.0.0.tar.gz 11.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for notification-mcp-shao 1.0.0
File Interpreter ABI Platform
notification_mcp_shao-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 17.9 kB

Release files / notification_mcp_shao-1.0.0.tar.gz

Download URL notification_mcp_shao-1.0.0.tar.gz
Size 11.3 kB
Tags Source
SHA-256 checksum
How to use checksums
09dbe54e8514112f30b007d3139a4d709d30e6c6e41361516d685b3f8b6fc02a
BLAKE2b-256 checksum
How to use checksums
df4eeed9a9571bff4548d87e4bf28942333643e270aa7233a6fd5d1afc7fdef3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.6

Release files / notification_mcp_shao-1.0.0-py3-none-any.whl

Download URL notification_mcp_shao-1.0.0-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ee9c9c9e28b270f646b0a5e928ca0412f64bae460cce03de002bfa6a8512ae4b
BLAKE2b-256 checksum
How to use checksums
30fd270674a1548f3eff67cda5ca6af5ed181a22084a70fc283bddae153095c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.6

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page