About Wecom Bot MCP Server
Wecom Bot MCP Server is an MCP server published by loonghao in the Developer Tools category: a Python server implementation for WeCom (WeChat Work) bot that follows the Model Context Protocol (MCP). This server provides a standardized interface for handling automated messaging and context-aware interactions within enterprise WeChat environments. Conduid read 6 tools from its source: list_wecom_bots, send_message, send_wecom_file, send_wecom_image, send_wecom_template_card_news_notice and send_wecom_template_card_text_notice. No package is published for it, so it installs from a source checkout.
The repository has 106 stars and 20 forks, is licensed MIT, and its last commit was on 30 Nov 2026. The latest release is v0.11.2 (30 Jul 2026). It follows v0.11.1 (18 Jun 2026), and the 5 most recent releases go back to v0.10.1 (24 Dec 2025). It passes 5 of the 6 static checks Conduid ran on the repository; it does not pass Scoped permissions. Its topics include bot and wecom.
Install
git clone https://github.com/loonghao/wecom-bot-mcp-serverTools (6)
list_wecom_botsList all configured WeCom bots.send_message| Parameter | Type | Description |
|---|---|---|
| bot_id | string | Bot identifier for multi-bot setups. If not specified, uses the default bot. Use `list_wecom_bots` tool to see available bots. Example values: 'default', 'alert', 'ci', 'notify' |
| content * | string | Message content. Include <@userid> for mentions in markdown mode. Examples: "Hi <@zhangsan>, please review!" or "<@all> Team meeting at 3 PM" |
| mentioned_list | array | List of user IDs to mention. Only effective for msg_type='text'. For markdown messages, use <@userid> syntax directly in content instead. User ID format: lowercase pinyin for Chinese names (e.g., 'zhangsan'), lowercase for English names (e.g., 'alice'). |
| mentioned_mobile_list | array | List of mobile numbers to mention. Only effective for msg_type='text'. Format: Phone numbers without country code (e.g., '13800138000'). |
| msg_type | any | Message type. CRITICAL: Choose based on whether content contains @mentions: - 'markdown': MUST use when content contains <@userid> mentions (e.g., <@zhangsan>). Also use for <font color='...'>text</font> colors. - 'markdown_v2': Use for tables, lists, embedded images , URLs with underscores, or general content WITHOUT mentions. IMPORTANT RULE: If you need to @mention someone, you MUST: 1. Add <@userid> syntax in the content (e.g., 'Hi <@alice>, please review') 2. Set msg_type='markdown' (NOT markdown_v2!) The <@userid> mention syntax ONLY works with msg_type='markdown'! |
send_wecom_fileSend file to WeCom.| Parameter | Type | Description |
|---|---|---|
| bot_id | string | Bot identifier for multi-bot setups. If not specified, uses the default bot. Use `list_wecom_bots` tool to see available bots. |
| file_path * | string | Path to the file to send. The file MUST be located within the allowed root directory (set via WECOM_MCP_ALLOWED_ROOT env var, defaults to the current working directory). Paths outside this directory are rejected for security. |
send_wecom_imageSend image to WeCom.| Parameter | Type | Description |
|---|---|---|
| bot_id | string | Bot identifier for multi-bot setups. If not specified, uses the default bot. Use `list_wecom_bots` tool to see available bots. |
| image_path * | string | Path to the image file to send (local file path or HTTP(S) URL). For local paths, the file MUST be within the allowed root directory (set via WECOM_MCP_ALLOWED_ROOT env var, defaults to CWD). Paths outside this directory are rejected for security. |
send_wecom_template_card_news_notice| Parameter | Type | Description |
|---|---|---|
| bot_id | string | Bot identifier for multi-bot setups. If not specified, uses the default bot. Use `list_wecom_bots` tool to see available bots. |
| template_card_card_action * | object | Primary click action for the card. |
| template_card_horizontal_content_list | array | Horizontal content items. |
| template_card_image | object | Main image configuration for the news_notice card. Should contain 'url' and optionally 'aspect_ratio'. |
| template_card_image_text_area | object | Image text area configuration. Should contain 'image_url', 'title', 'desc', etc. |
| template_card_jump_list | array | Jump (link) buttons. |
| template_card_main_title * | object | Main title and description for the card. |
| template_card_quote_area | object | Quote area configuration. |
| template_card_source * | object | Source info for the card (icon_url, desc, desc_color, etc.) |
| template_card_vertical_content_list | array | Vertical content items. |
send_wecom_template_card_text_notice| Parameter | Type | Description |
|---|---|---|
| bot_id | string | Bot identifier for multi-bot setups. If not specified, uses the default bot. Use `list_wecom_bots` tool to see available bots. |
| template_card_card_action * | object | Primary click action for the card. |
| template_card_emphasis_content | object | Emphasised numeric content area. |
| template_card_horizontal_content_list | array | Horizontal content items. |
| template_card_jump_list | array | Jump (link) buttons. |
| template_card_main_title * | object | Main title and description for the card. |
| template_card_quote_area | object | Quote area configuration. |
| template_card_source * | object | Source info for the card (icon_url, desc, desc_color, etc.) |
| template_card_sub_title_text | string | Subtitle text under the main title. |
Security checks
Static checks derived from the repository 10 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 1.6K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by poetry.lock and uv.lock.
- ✓No dynamic code executionScanned 13 source files and found no eval, dynamic Function or shell execution.
- !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.
What the source scan found
- Transport
- None found in the source
- Starts other programs
- No calls that start other programs
- Outbound network calls
- 1 callsrc/wecom_bot_mcp_server/image.py:49
- Writes or deletes files
- 2 callssrc/wecom_bot_mcp_server/image.py:47, src/wecom_bot_mcp_server/image.py:72
- Lockfile
- poetry.lock and uv.lock
Pattern matches on the source text of 13 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 1.6K words, fetched a month ago. The original in the repository is authoritative.
Read full README