WeCom Bot MCP Server logo

WeCom Bot MCP Server

by MCP-Mirror

A WeCom (WeChat Work) bot server implemented with FastMCP, supporting message sending via webhook. It allows you to easily send messages to your WeCom bot using a simple API.

View on GitHub

Last updated: N/A

What is WeCom Bot MCP Server?

WeCom Bot MCP Server is a server built on the FastMCP framework that enables sending messages to a WeCom (WeChat Work) bot via webhook. It provides a simple and efficient way to integrate WeCom bots into your applications.

How to use WeCom Bot MCP Server?

  1. Install the server using pip or poetry. 2. Set the WECOM_WEBHOOK_URL environment variable to your WeCom bot's webhook URL. 3. Run the server using the wecom-bot-mcp-server command or by importing and running the main function in your Python code. 4. Use the send_message function to send messages.

Key features of WeCom Bot MCP Server

  • Built on FastMCP framework

  • Markdown message format support

  • Asynchronous message sending

  • Message history tracking

  • Complete type hints

  • Comprehensive unit tests

Use cases of WeCom Bot MCP Server

  • Sending notifications from applications

  • Automated alerts and updates

  • Integrating WeCom bots with other services

  • Creating custom bot commands

  • Centralized message management

FAQ from WeCom Bot MCP Server

How do I install the server?

You can install the server using pip (pip install wecom-bot-mcp-server) or poetry (poetry add wecom-bot-mcp-server).

How do I configure the webhook URL?

Set the WECOM_WEBHOOK_URL environment variable to your WeCom bot's webhook URL.

How do I send a message?

Use the send_message function from the wecom_bot_mcp_server.server module.

How do I get the message history?

Use the get_message_history function from the wecom_bot_mcp_server.server module.

How do I configure this in Cline?

You can configure Cline MCP settings in VSCode by editing the cline_mcp_settings.json file and adding the configuration provided in the README.