MCP通知服务器 - 微信/Telegram

aalone/mcp-notify
Hosted
8 Stars 2.0k 次浏览 更新于 2026-08-23

MCP 服务配置

复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用

{
  "mcpServers": {
    "mcp-notify": {
      "args": [
        "mcp-notify"
      ],
      "command": "uvx"
    }
  }
}

该服务需要配置环境变量:BARK_DEVICE_KEY、DINGTALK_BOT_KEY、FEISHU_BOT_KEY、LARK_BOT_KEY、TELEGRAM_BOT_TOKEN、TELEGRAM_DEFAULT_CHAT、WEWORK_APP_AGENTID、WEWORK_APP_CORPID、WEWORK_APP_SECRET、WEWORK_APP_TOUSER、WEWORK_BASE_URL、WEWORK_BOT_KEY

可用工具 (21 个)

该服务在 MCP 协议中暴露的工具,AI 可按需调用

wework_send_text 3 个参数 需填 1 项

通过企业微信群机器人发送文本或Markdown消息

必填参数:text

wework_send_image 2 个参数 需填 1 项

通过企业微信群机器人发送图片消息

必填参数:url

wework_send_news 5 个参数 需填 2 项

通过企业微信群机器人发送图文链接消息

必填参数:title、url

wework_app_send_text 3 个参数 需填 1 项

通过企业微信应用号发送文本或Markdown消息

必填参数:text

wework_app_send_image 2 个参数 需填 1 项

通过企业微信应用号发送发送图片消息

必填参数:url

wework_app_send_video 2 个参数 需填 1 项

通过企业微信应用号发送发送视频消息

必填参数:url

wework_app_send_voice 2 个参数 需填 1 项

通过企业微信应用号发送发送语音消息

必填参数:url

wework_app_send_file 2 个参数 需填 1 项

通过企业微信应用号发送发送文件消息

必填参数:url

wework_app_send_news 5 个参数 需填 2 项

通过企业微信应用号发送图文卡片消息

必填参数:title、url

tg_send_message 4 个参数 需填 1 项

Send text message via telegram bot

必填参数:text

tg_send_photo 5 个参数 需填 1 项

Send photo via telegram bot

必填参数:photo

tg_send_video 6 个参数 需填 1 项

Send video via telegram bot

必填参数:video

tg_send_audio 5 个参数 需填 1 项

Send audio via telegram bot

必填参数:audio

tg_send_file 5 个参数 需填 1 项

Send general files via telegram bot

必填参数:url

tg_markdown_rule

Telegram supports Markdown formatting. Must use this tool before sending markdown to Telegram.

该工具无需必填参数,直接调用即可

ding_send_text 4 个参数 需填 1 项

钉钉群机器人发送文本或Markdown消息

必填参数:text

lark_send_text 4 个参数 需填 1 项

飞书/Lark群机器人发送文本或Markdown消息

必填参数:text

bark_send_notify 8 个参数 需填 1 项

通过Bark推送通知

必填参数:body

ntfy_send_notify 11 个参数 需填 1 项

Push a notification via Ntfy

必填参数:message

ha_send_mobile 6 个参数 需填 1 项

Send a notification to Home Assistant Mobile APP

必填参数:message

text_to_sound 3 个参数 需填 1 项

将一段文本转成mp3音频链接

必填参数:text

服务介绍

💬 Notify MCP Server

提供消息推送的 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" # Streamable 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" # Streamable HTTP
    }
  }
}

环境变量

企业微信群机器人

  • 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 device key, Can also be specified in the prompt
  • BARK_BASE_URL: Bark Base URL, Default: https://api.day.app

Telegram

  • TELEGRAM_DEFAULT_CHAT: Telegram Default Chat ID, Can also be specified in the prompt
  • TELEGRAM_BOT_TOKEN: Telegram Bot Token
  • TELEGRAM_BASE_URL: Telegram Base URL, Default: https://api.telegram.org

Home Assistant

  • HASS_BASE_URL: Home Assistant Base URL, Default: http://homeassistant.local:8123
  • HASS_ACCESS_TOKEN: Home Assistant Long-Lived Access Token
  • HASS_MOBILE_KEY: Home Assistant Mobile Device Key, Can also be specified in the prompt

快速开始

  • 在线体验: 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

相关连接

相关 MCP 服务