关于 Mcp Wecombot Server
mcp-wecombot-server 是一个 MCP 服务,可将多种类型的消息发送到企业微信群机器人。适合需要通过 AI 助手向企业微信群推送通知的用户。
主要功能
- 01发送文本消息
- 02发送 Markdown 消息
- 03发送图片消息
- 04发送图文消息与模板卡片消息
- 05上传文件到企业微信
适用场景
- 01让 AI 助手向团队群发送测试或状态通知
- 02将 Markdown 格式的报告推送到企业微信群
- 03通过图文消息分享链接与图片
MCP 相关
该项目是一个 MCP 服务,向 MCP 客户端暴露 send_text、send_markdown、send_image、send_news、send_template_card 和 upload_file 等工具。
配置
本地服务的配置在各客户端中通用,复制后粘贴到客户端的 MCP 配置文件即可。
工具
本地服务需要在你的电脑上运行后才能读取工具,维护者暂未提供工具列表。
详细介绍
🚀 mcp-wecombot-server
一个 MCP 服务应用,可向企业微信群机器人发送各种类型的消息。
安装
通过 Smithery 安装
通过 Smithery 自动为 Claude Desktop 安装 mcp-wecombot-server:
npx -y @smithery/cli install @gotoolkits/mcp-wecombot-server --client claude-desktop
手动安装
# clone the repo and build
$ 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" replace with the actual binary file name
#You can also download and use the pre-compiled release binary package.
配置
{
"mcpServers": {
"mcp-wecombot-server": {
"command": "mcp-wecombot-server",
"env": {
"WECOM_BOT_WEBHOOK_KEY": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx"
}
}
}
}
使用方法
- send_text
向企业微信群发送文本消息
- send_markdown
向企业微信群发送 Markdown 消息
- send_image
向企业微信群发送图片消息
- send_news
向企业微信群发送新闻消息,新闻包含标题、描述、网址和图片网址
- send_template_card
向企业微信群发送模板卡片消息
- upload_file
向企业微信上传文件
示例
> prompt: 给我在WeCom发送一条文本消息,消息内容为:这是一条测试消息
> prompt: 给我在WeCom发送一条markdown消息,消息内容为:# 这是一条测试 Markdown 消息
> prompt: 给我在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, the description: This is a graphic message, the link: https://github.com/gotoolkits, and the image: https://img-blog.csdnimg.cn/fcc22710385e4edabccf2451d5f64a99.jpeg
企业微信机器人
企业微信群机器人配置指南请参阅: https://developer.work.weixin.qq.com/document/path/91770
WECOM_BOT_WEBHOOK_KEY 是机器人的 Webhook 密钥
例如: https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=693axxx6-7aoc-4bc4-97a0-0ec2sifa5aaa
“693axxx6-7aoc-4bc4-97a0-0ec2sifa5aaa” 是你自己的 WECOM_BOT_WEBHOOK_KEY
评论
一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。