m

mcp-wecombot-server

@gotoolkits/mcp-wecombot-server
0 Stars 367 次浏览 gotoolkits 更新于 2026-08-23

一种向企业微信机器人发送不同类型消息的MCP服务器应用程序。

MCP 服务配置

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

{
  "mcpServers": {
    "mcp-wecombot-server": {
      "command": "mcp-wecombot-server",
      "env": {
        "WECOM_BOT_WEBHOOK_KEY": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx"
      }
    }
  }
}

该服务需要配置环境变量:WECOM_BOT_WEBHOOK_KEY

服务介绍

🚀 mcp-wecombot-server

smithery badge

这是一个MCP服务器应用程序,用于向WeCom群组机器人发送各种类型的消息。

安装

通过Smithery安装

要通过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"
      }
    }
  }
}

使用方法

  • send_text

向WeCom群组发送文本消息

  • send_markdown

向WeCom群组发送Markdown消息

  • send_image

向WeCom群组发送图片消息

  • send_news

向WeCom群组发送新闻消息,新闻包括标题、描述、链接和图片链接

  • send_template_card

向WeCom群组发送模板卡片消息

  • upload_file

上传文件到WeCom

示例


> 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

WeCom 机器人

WeCom群组机器人的配置指南可以参考:
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

相关 MCP 服务