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.

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)

Configuration

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

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
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)

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

A Model Context Protocol (MCP) compliant server implementation for WeCom (WeChat Work) bot. Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.