Skip to main content

MCP Server for notify

Project description

💬 Notify MCP Server

简体中文 | English

提供消息推送的 MCP (Model Context Protocol) 服务器,支持企业微信、钉钉、Telegram、Bark、Lark、飞书、Home Assistant

安装

方式1: uvx

{
  "mcpServers": {
    "mcp-notify": {
      "command": "uvx",
      "args": ["mcp-notify"],
      "env": {
        "WEWORK_BOT_KEY": "your-wework-bot-key"
      }
    }
  }
}

方式2: Smithery

需要通过OAuth授权或Smithery key

{
  "mcpServers": {
    "mcp-aktools": {
      "url": "https://server.smithery.ai/@aahl/mcp-notify/mcp" # 流式传输HTTP
    }
  }
}

方式3: Docker

mkdir /opt/mcp-notify
cd /opt/mcp-notify
wget https://raw.githubusercontent.com/aahl/mcp-notify/refs/heads/main/docker-compose.yml
docker-compose up -d
{
  "mcpServers": {
    "mcp-notify": {
      "url": "http://0.0.0.0:8809/mcp" # 流式传输HTTP
    }
  }
}

快速开始

  • 在线体验: fastmcp.cloud
  • 在线体验: smithery.ai
  • 添加到 Cursor Install MCP Server
  • 添加到 VS Code Install MCP Server
  • 添加到 Cherry Studio Install MCP Server
  • 添加到 Claude Code, 执行命令: claude mcp add notify -- uvx mcp-notify
  • 添加到 OpenAI CodeX, 执行命令: codex mcp add notify -- uvx mcp-notify

⚙️ 环境变量

企业微信群机器人

  • WEWORK_BOT_KEY: 企业微信群机器人默认key,也可以在提示词指定

企业微信应用号

  • WEWORK_APP_CORPID: 企业微信所属的企业ID
  • WEWORK_APP_SECRET: 企业微信应用的凭证密钥
  • WEWORK_APP_AGENTID: 企业微信应用的ID,默认: 1000002
  • WEWORK_APP_TOUSER: 企业微信默认接收人ID,也可以在提示词指定,默认: @all
  • WEWORK_BASE_URL: 企业微信API反代理地址,用于可信IP,默认: https://qyapi.weixin.qq.com

钉钉群机器人

  • DINGTALK_BOT_KEY: 钉钉群机器人access_token
  • DINGTALK_BASE_URL: 钉钉API地址,默认: https://oapi.dingtalk.com

飞书/Lark群机器人

  • FEISHU_BOT_KEY: 飞书群机器人key,也可以在提示词指定
  • FEISHU_BASE_URL: 飞书API地址,默认: https://open.feishu.cn
  • LARK_BOT_KEY: Lark群机器人key,也可以在提示词指定
  • LARK_BASE_URL: Lark API地址,默认: https://open.larksuite.com

Bark

  • BARK_DEVICE_KEY: 默认Bark设备key,也可以在提示词指定
  • BARK_BASE_URL: Bark API地址,默认: https://api.day.app

Telegram

  • TELEGRAM_DEFAULT_CHAT: Telegram 默认会话ID,也可以在提示词指定
  • TELEGRAM_BOT_TOKEN: Telegram 机器人令牌
  • TELEGRAM_BASE_URL: Telegram API反代理地址,默认: https://api.telegram.org

Home Assistant

  • HASS_BASE_URL: Home Assistant 地址,默认: http://homeassistant.local:8123
  • HASS_ACCESS_TOKEN: Home Assistant 长效令牌
  • HASS_MOBILE_KEY: Home Assistant 移动设备key (如: mobile_app_your_iphone),也可在提示词指定

🛠️ 可用工具

企业微信群机器人
  • wework_send_text - 发送文本或Markdown消息
  • wework_send_image - 发送图片消息
  • wework_send_news - 发送图文链接消息
企业微信应用号
  • wework_app_send_text - 发送文本或Markdown消息
  • wework_app_send_image - 发送图片消息
  • wework_app_send_video - 发送视频消息
  • wework_app_send_voice - 发送语音消息
  • wework_app_send_file - 发送文件消息
  • wework_app_send_news - 发送图文链接消息
Telegram Bot
  • tg_send_message - 发送文本或Markdown消息
  • tg_send_photo - 发送图片消息
  • tg_send_video - 发送视频消息
  • tg_send_audio - 发送音频消息
  • tg_send_file - 发送文件消息
  • tg_markdown_rule - Telegram markdown 规则
其他工具
  • ding_send_text - 通过钉钉群机器人发送文本或Markdown消息
  • lark_send_text - 通过飞书/Lark群机器人发送文本或Markdown消息
  • bark_send_notify - 通过Bark发送通知
  • ntfy_send_notify - 通过Ntfy发送通知
  • ha_send_mobile - 通过Home Assistant发送通知
  • text_to_sound - 将一段文本转成mp3音频链接

🔗 相关连接


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

mcp_notify-0.1.4.tar.gz (89.1 kB view details)

Uploaded Source

Built Distribution

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

mcp_notify-0.1.4-py3-none-any.whl (14.5 kB view details)

Uploaded Python 3

File details

Details for the file mcp_notify-0.1.4.tar.gz.

File metadata

  • Download URL: mcp_notify-0.1.4.tar.gz
  • Upload date:
  • Size: 89.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mcp_notify-0.1.4.tar.gz
Algorithm Hash digest
SHA256 e0d37371915271527a29aa3df844d94b0d2b3e28d2c336463541297bb0ee2e9f
MD5 690abd82c2aab3a6001d21809b5cf0c6
BLAKE2b-256 f3e79a006c636ed0a9fe700632c67efb14570f4f8063adb64d59d01548a41153

See more details on using hashes here.

File details

Details for the file mcp_notify-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: mcp_notify-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 14.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mcp_notify-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5a12a8fb367d4d9c0907e4b1782eeb4ac12de96d17e0019bcbd7eb339ee27d6b
MD5 0c01cfaf204801bb3b557f492b4f6cb4
BLAKE2b-256 69f4eb71da4f574657991d9defcda2481fd55998a20b993a8d7ea4c41a890dc3

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