← 返回
开发者工具 Key 中文

Wecom

Send messages to WeCom (企业微信) via webhooks using MCP protocol. Works with Claude Code, Claude Desktop, and other MCP clients.
通过 Webhook 使用 MCP 协议向企业微信发送消息,支持 Claude Code、Claude Desktop 等 MCP 客户端。
qidu
开发者工具 clawhub v1.0.3 3 版本 99860.9 Key: 需要
★ 10
Stars
📥 6,980
下载
💾 1,247
安装
3
版本
#latest

概述


name: wecom

description: "Send messages to WeCom (企业微信) via webhooks using MCP protocol. Works with Claude Code, Claude Desktop, and other MCP clients."


WeCom Skill

Send text and markdown messages to WeCom (企业微信) via incoming webhooks (ENV: WECOM_WEBHOOK_URL).

WeCom is the enterprise version (using in office) of the famous all-in-on IM WeChat envied by Elon Musk.

Setup

# Navigate to skill directory
cd skills/wecom

# Install dependencies
npm install

# Build TypeScript
npm run build

# Set webhook URL
export WECOM_WEBHOOK_URL="https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=YOUR_KEY"

Usage with Claude Code

Add to your ~/.config/claude_code/mcp.json:

{
  "mcpServers": {
    "wecom": {
      "command": "node",
      "args": ["/path/to/clawdbot/skills/wecom/dist/index.js"],
      "env": {
        "WECOM_WEBHOOK_URL": "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=YOUR_KEY"
      }
    }
  }
}

Then restart Claude Code. You'll have three new tools:

Tools

send_wecom_message

Send a text message to WeCom.

# Simple message
await send_wecom_message({ content: "Hello from OpenClaw!" });

# With mentions
await send_wecom_message({
  content: "Meeting starting now",
  mentioned_list: ["zhangsan", "lisi"]
});

send_wecom_markdown_v2

Send a markdown_v2 message to WeCom. Recommended — supports tables, code blocks, nested blockquotes, H1-H3 headers, and all standard markdown.

await send_wecom_markdown_v2({
  content: `# Annual Report

## Revenue by Quarter
| Quarter | Revenue | Growth |
| :---- | -----: | ----: |
| Q1 | ¥1.2M | +15% |
| Q2 | ¥1.8M | +50% |
| Q3 | ¥2.1M | +17% |

## Notes
> Key insight: mobile revenue grew 80%
>
>> Detail: driven by short video ads
>
>> Another point: new user acquisition cost down 30%

## Code Example
\`\`\`python
def hello():
    print("Hello WeCom!")
\`\`\`

---

More info [here](https://work.weixin.qq.com/api/doc)`
});

WeCom Markdown v2 Features

markdown_v2 supports everything the original markdown supports, plus:

FeatureSyntaxExample
---------------------------
Tables`\col \col \ with \:--- \-----: \`Supported with alignment
Nested blockquotes>>> or >>Up to 3 levels
H1/H2/H3# ## ###Three heading levels
Code blocks\code\` and \\\langInline and multi-line
Horizontal rule---Dividers
LinkstextStandard markdown
Images!altDirect URL

WeCom Markdown (v1) Tags

The original send_wecom_markdown supports these limited tags:

FeatureSyntax
-----------------
Boldtext or text
Italictext or text
Strikethrough~~text~~ or text
Mention<@userid>
Linktext
Image
Font sizetext
Colortext

⚠️ v1 does NOT support tables, code blocks, or H1-H3 headers. Use send_wecom_markdown_v2 when you need those.

Environment Variables

VariableRequiredDefaultDescription
------------------------------------------
WECOM_WEBHOOK_URLYes-WeCom webhook URL
WECOM_TIMEOUT_MSNo10000Request timeout (ms)

How To

Get WECOM_WEBHOOK_URL following steps here, and envolve it as a bot into a group chat:

(Tip: You should get the WECOM_WEBHOOK_URL entirely as a URL, NOT just a KEY )

STEP 1

!STEP 1

STEP 2

!STEP 2

STEP 3

!STEP 3

STEP 4

!STEP 4

Reference

Message Receiving and Sending in a Group Chat

Download WeCom Apps

版本历史

共 3 个版本

  • v1.0.3 当前
    2026-04-30 06:55 安全 安全
  • v1.0.2
    2026-03-28 10:36 安全 安全
  • v1.0.0
    2026-03-07 11:34

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 668 📥 323,972
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 66 📥 179,996
productivity

ip lookup ( get ip )

qidu
获取当前公网IP地址及地理位置信息。适用于用户询问IP地址、网络位置或查询公网IP的场景,支持获取IP信息并清晰展示。
★ 1 📥 2,155