mcp_server_wechat

MCP.Pizza Chef: panxingfeng

This drives the WeChat desktop app on your own computer, so an assistant can send a message to a contact or group, send several at once, or fetch a day's chat history. It works by automating the app's interface rather than through an official connection, so WeChat must be installed and signed in on the same machine. Worth knowing that automating a personal account carries some account risk, and history is best fetched a day at a time.

Communication
Writing

Use This MCP server To

Send a message to a contact by asking Send the same message to several people Pull up a day's chat history Summarise what was said in a group today Draft and send a reply without switching apps

README

MCP Server WeChat

基于MCP技术的微信聊天记录获取和消息发送功能的服务器,使用pywechat工具实现微信自动化操作。

功能特点

此服务器提供以下主要功能:

  • 获取微信聊天记录(指定日期)
  • 发送单条消息给单个好友
  • 发送多条消息给单个好友
  • 发送消息给多个好友

可用工具

  • wechat_get_chat_history - 获取特定日期的微信聊天记录

    • 必需参数:
      • to_user (string): 好友或群聊备注或昵称
      • target_date (string): 目标日期,格式为YY/M/D,如25/3/22 -> 暂时不要跨度过长,初始目的就是为了当日的聊天记录
  • wechat_send_message - 向单个微信好友发送单条消息

    • 必需参数:
      • to_user (string): 好友或群聊备注或昵称
      • message (string): 要发送的消息
  • wechat_send_multiple_messages - 向单个微信好友发送多条消息

    • 必需参数:
      • to_user (string): 好友或群聊备注或昵称
      • messages (array): 要发送的消息列表 (用英文逗号分隔的字符串输入)
  • wechat_send_to_multiple_friends - 向多个微信好友发送单条或者多条消息

    • 必需参数:
      • to_user (array): 好友或群聊备注或昵称列表 (用英文逗号分隔的字符串输入)
      • message (string/array): 要发送的消息 (单条消息会发给所有好友;多条消息用英文逗号分隔且数量与好友数相同时,将分别发送给对应好友)

安装方法

使用 pip 安装

pip install mcp_server_wechat

获取最新
pip install --upgrade mcp_server_wechat

使用示例

mcp_server_wechat FAQ

Can I use this to send messages without opening WeChat?
Yes — it drives the desktop app for you, so you can send from the assistant.
Does it need WeChat installed?
Yes, the desktop app must be installed and signed in on the same machine, since it automates the interface.
Do I need a key or developer account?
No key is needed, because it works through the app rather than an official connection.
Can I use this to review what was said in a chat?
Yes — you can fetch history for a given day, though long ranges are not recommended.
Are there risks to automating my account?
Automating a personal account is not officially supported, so there is some risk to the account; use it deliberately.