Wecom Bot MCP Server

A Model Context Protocol (MCP) compliant server implementation for WeCom (WeChat Work) bot.

Local serverstdioPython

What is the Wecom Bot MCP server?

A Model Context Protocol (MCP) compliant server implementation for WeCom (WeChat Work) bot. Exposed over MCP by the wecom bot mcp server, that capability becomes something an assistant can invoke while it works, not something you go and do afterwards.

What it actually does

  • Support for multiple message types:
  • Markdown messages (with @mentions and font colors)
  • Markdown V2 messages (with tables, lists, embedded images)
  • Image messages (base64/local file/URL)
  • File messages
  • Template card messages (text_notice and news_notice)

Adding it to your client

@smithery/cli on npm is all you need. Most clients run it directly, so configuration is a few lines and a restart.

Its toolset

Everything the assistant can do here goes through one of these:

  • Parameters — content, msg_type (markdown/markdown_v2), mentioned_list, mentioned_mobile_list, bot_id
  • markdown — Use when content contains @userid mentions or font colors. The @userid syntax is WeCom's official mention format, which avoids conflicts with
  • markdown_v2 — Use for tables, lists, embedded images, or general content (default)
  • Returns — List of available bots with their IDs, names, and descriptions
  • Testing — The Testing tool exposed by this server

Configuration

You will need 5 environment variables: WECOM_WEBHOOK_URL, WECOM_BOTS, WECOM_BOT_ALERT_URL, WECOM_BOT_CI_URL, WECOM_BOT_NOTIFY_URL. The server will not start without them, which is usually why the tools fail to appear on a first run. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

  • Python 3.10+ - WeCom Bot Webhook URL (obtained from WeCom group settings)

Caveats

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the wecom bot mcp server does with a few real requests.

When to reach for it

Plenty of team communication servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Wecom Bot's toolset — Parameters, markdown, markdown_v2 and 2 more — is a fair guide to whether it matches your workflow. It is maintained by loonghao; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Available tools

ToolWhat it does
Parameterscontent, msg_type (markdown/markdown_v2), mentioned_list, mentioned_mobile_list, bot_id
markdownUse when content contains <@userid> mentions or font colors. The <@userid> syntax is WeCom's official mention format, which avoids conflicts with email addresses like @user@email.com
markdown_v2Use for tables, lists, embedded images, or general content (default)
ReturnsList of available bots with their IDs, names, and descriptions
TestingThe Testing tool exposed by this server.

How to install the Wecom Bot MCP server

{
  "mcpServers": {
    "wecom": {
      "command": "uvx",
      "args": ["wecom-bot-mcp-server"],
      "env": {
        "WECOM_WEBHOOK_URL": "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=default",
        "WECOM_BOTS": "{\"alert\": {\"name\": \"Alert Bot\", \"webhook_url\": \"https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=alert\"}, \"ci\": {\"name\": \"CI Bot\", \"webhook_url\": \"https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=ci\"}}"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

  • Python 3.10+ - WeCom Bot Webhook URL (obtained from WeCom group settings)
VariableDescriptionRequired
WECOM_WEBHOOK_URLEndpoint or connection string the server talks to.Yes
WECOM_BOTSConfiguration value read at startup.Optional
WECOM_BOT_ALERT_URLEndpoint or connection string the server talks to.Yes
WECOM_BOT_CI_URLEndpoint or connection string the server talks to.Yes
WECOM_BOT_NOTIFY_URLEndpoint or connection string the server talks to.Yes

Example prompts to try

  • Use Wecom Bot to Parameters.
  • Use Wecom Bot to markdown.
  • Use Wecom Bot to markdown v2.

Frequently asked questions

It connects Wecom Bot to MCP-compatible AI assistants such as Claude and Cursor, exposing 5 tools (Parameters, markdown, markdown_v2, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Wecom Bot directly.