Skip to main content

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 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

notification_mcp_shao-1.0.0.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

notification_mcp_shao-1.0.0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

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

Hashes for notification_mcp_shao-1.0.0.tar.gz
Algorithm Hash digest
SHA256 09dbe54e8514112f30b007d3139a4d709d30e6c6e41361516d685b3f8b6fc02a
MD5 dbb55f1e0aeb172d96e5eb980b6ca47b
BLAKE2b-256 df4eeed9a9571bff4548d87e4bf28942333643e270aa7233a6fd5d1afc7fdef3

See more details on using hashes here.

File details

Details for the file notification_mcp_shao-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for notification_mcp_shao-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ee9c9c9e28b270f646b0a5e928ca0412f64bae460cce03de002bfa6a8512ae4b
MD5 b16090b651490d35b7dc4830bdf916b5
BLAKE2b-256 30fd270674a1548f3eff67cda5ca6af5ed181a22084a70fc283bddae153095c6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page