MCP.so
Sign In

MCP Server WeChat

@panxingfeng

About MCP Server WeChat

基于MCP技术,操作微信发送消息和获取历史记录

Basic information

Category

Other

License

MIT

Runtime

python

Transports

stdio

Publisher

panxingfeng

Config

Add this server to your MCP-compatible client using the configuration below.

{
  "mcpServers": {
    "mcp_server_wechat": {
      "command": "python",
      "args": [
        "-m",
        "venv",
        "venv",
        "#",
        "创建虚拟环境"
      ]
    }
  }
}

Tools

No tools detected

We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.

Overview

What is MCP Server WeChat?

MCP Server WeChat is an MCP (Model Context Protocol) server that retrieves WeChat chat histories and sends messages using the pywechat library for automation. It is intended for developers building AI or automation tools that need programmatic access to WeChat.

How to use MCP Server WeChat?

Install via pip install mcp_server_wechat and configure the MCP client with either the stdio command or SSE/Streamable HTTP URL. Start the server with the --folder-path argument pointing to your history directory. WeChat Desktop must be logged in and visible during use. Invoke tools such as wechat_get_chat_history, wechat_send_message, wechat_send_multiple_messages, and wechat_send_to_multiple_friends with the required parameters.

Key features of MCP Server WeChat

  • Retrieve WeChat chat history for a specific date.
  • Send a single message to one contact.
  • Send multiple messages to one contact.
  • Send single or multiple messages to multiple contacts.
  • Supports stdio, SSE, and Streamable HTTP transports.
  • Uses the pywechat library for UI automation.

Use cases of MCP Server WeChat

  • Automatically archive daily WeChat conversations.
  • Send batch notifications or alerts to a group of contacts.
  • Integrate WeChat messaging into AI or automation pipelines.
  • Build a WeChat-based customer service or broadcast tool.
  • Programmatically log and analyze chat histories.

FAQ from MCP Server WeChat

What dependencies are required?

WeChat Desktop must be installed, logged in, and visible. The server relies on Python and the pywechat library.

How are chat histories stored?

Histories are read from the folder specified by the --folder-path argument. The server accesses local files; no external database is needed.

Can I send messages without WeChat Desktop open?

No. The server automates the WeChat Desktop UI, so it must be running and logged in during use.

What transport methods are supported?

Stdio (command), SSE (HTTP endpoint), and Streamable HTTP (MCP endpoint). Configuration examples for each are provided in the README.

Are there any usage restrictions?

Do not manually operate the WeChat window while the server is working. Using this tool to violate WeChat’s Terms of Service is prohibited.

Comments

More Other MCP servers