一个 MCP 服务器应用程序,可向 WeCom 群机器人发送各种类型的消息,为信息传递提供了便捷的解决方案。
本项目是一个 MCP 服务器应用程序,主要用于向 WeCom 群机器人发送各类消息,为信息的及时传递提供了便利。
通过 Smithery 可自动为 Claude Desktop 安装 mcp-wecombot-server,执行以下命令:
npx -y @smithery/cli install @gotoolkits/mcp-wecombot-server --client claude-desktop
# 克隆仓库并构建
$ git clone https://github.com/gotoolkits/mcp-wecombot-server.git
$ cd mcp-wecombot-server && make build
$ sudo ln -s $PWD/dist/mcp-wecombot-server_xxx_xxxx /usr/local/bin/mcp-wecombot-server
# 注意:将 "$PWD/dist/mcp-wecombot-server_xxx_xxxx" 替换为实际的二进制文件名
# 您也可以下载并使用预编译的发布版本包。
{
"mcpServers": {
"mcp-wecombot-server": {
"command": "mcp-wecombot-server",
"env": {
"WECOM_BOT_WEBHOOK_KEY": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx"
}
}
}
}
WeCom 群机器人配置指南请参考: https://developer.work.weixin.qq.com/document/path/91770
⚠️ 重要提示
WECOM_BOT_WEBHOOK_KEY 是您的 WeCom 机器人 Webhook 唯一标识符。
例如:
https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=693axxx6-7aoc-4bc4-97a0-0ec2sifa5aaa
其中,693axxx6-7aoc-4bc4-97a0-0ec2sifa5aaa是您自己的 WeCom 机器人 Webhook Key。
> 提示:请在 WeCom 发送一条文本消息,内容为:这是一条测试消息。
> 提示:请在 WeCom 发送一条 Markdown 消息,内容为:# 这是一条测试 Markdown 消息。
> 提示:请在 WeCom 发送一条图文消息,标题为:这是一条图文消息,描述为:这是一条图文消息,链接为:https://github.com/gotoolkits,图片地址为:https://img-blog.csdnimg.cn/fcc22710385e4edabccf2451d5f64a99.jpeg。
> Send me a text message on WeCom with the content: This is a test message.
> Send me a Markdown message on WeCom with the content: # This is a test Markdown message
> Send me a graphic message on WeCom with the title: This is a graphic message, description: This is a graphic message, link: https://github.com/gotoolkits, and image: https://img-blog.csdnimg.cn/fcc22710385e4edabccf2451d5f64a99.jpeg