Back to Home
loonghao icon

wecom-bot-mcp-server

Verified Safe

by loonghao

Overview

Integrates AI assistants with WeCom (WeChat Work) for automated messaging and file/image sharing.

Installation

Run Command
uvx wecom-bot-mcp-server

Environment Variables

  • WECOM_WEBHOOK_URL

Security Notes

The server exposes `send_wecom_file` and `send_wecom_image` tools that accept local file paths (`file_path`, `image_path`) from AI agents. While basic existence and file type checks are performed, the source code does not show explicit path sanitization or canonicalization to prevent path traversal attacks (e.g., `../../etc/passwd`). An AI agent, if compromised or maliciously crafted, could potentially read or upload arbitrary files from the server's filesystem to WeCom. Additionally, the `download_image` function retrieves content from user-provided URLs, which could pose an SSRF risk if not properly constrained or validated beyond basic content-type checking. The `message_history` is stored as a global list, which could lead to memory exhaustion (Denial-of-Service) in a long-running server process interacting with multiple clients over time, as it accumulates messages indefinitely.

Similar Servers

Stats

Interest Score46
Security Score6
Cost ClassLow
Avg Tokens100
Stars66
Forks15
Last Update2025-12-09

Tags

wecomwechatbotwebhookcommunication