wxauto-mcp

by barantt

843 downloads
Not rated
GitHub

About

wxauto-mcp is a Model Context Protocol (MCP) server that enables large language models to interact with the WeChat client on Windows. It uses the wxauto library to send and receive WeChat messages, allowing LLMs to automate WeChat conversations.

Details

Author
barantt
Downloads
843
Categories
Other

- send_message: Send a message to a contact or group (requires msg and to; optional at for @-mention).
- get_all_messages: Retrieve chat history for a contact or group (requires who; optional load_more for older messages).
- Only works on Windows with a specific WeChat version (see wxauto documentation).
- Uses the wxauto library for all WeChat interaction.
- Configured as an MCP server for Claude Desktop or Cursor.

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name wxauto-mcp
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Install uv, clone the repository, run uv sync in the project directory, then configure the server in Claude Desktop or Cursor by adding a JSON entry that points uv to run wxauto_mcp.py with the correct path.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "wxauto-mcp": {
            "wxauto-mcp": {
                "command": "uv",
                "args": [
                    "sync"
                ]
            }
        }
    }
}

McpServers

{
    "wxauto-mcp": {
        "command": "uv",
        "args": [
            "sync"
        ]
    }
}

wxauto-mcp

一个基于微信自动化的MCP服务器,用于与微信客户端交互。
该服务器利用wxauto库实现微信消息的发送和接收功能,使大语言模型能够通过wxauto与微信进行交互。

⚠️注意

本mcp server只适用windows系统,且对微信版本有一定限制, 详情请参考wxauto文档

功能特点

工具

该服务器提供以下工具:

- send_message: 向指定联系人或群组发送消息
- 参数:
- msg: 要发送的消息内容 (必填)
- to: 接收消息的联系人或群组名称 (必填)
- at: 在群消息中@的人 (可选)
- 返回值: 无

- get_all_messages: 获取与指定联系人或群组的聊天记录
- 参数:
- who: 联系人或群组名称 (必填)
- load_more: 是否加载更多历史消息 (可选,默认为False)
- 返回值: 消息列表,仅包含类型为'friend'的消息,每条消息包含发送者和内容信息

使用方法

安装uv

参考uv官方安装文档

配置wxauto-mcp

git clone https://github.com/barantt/wxauto-mcp.git
cd wxauto-mcp
uv sync

Claude Desktop 配置

要在Claude Desktop中使用,请添加服务器配置:

在Windows上:%APPDATA%/Claude/claude_desktop_config.json

"mcpServers": {
  "wxauto-mcp": {
    "command": "uv",
    "args": [
      "--directory",
      "path\\to\\wxauto-mcp",
      "run",
      "wxauto_mcp.py"
    ]
  }
}

Cursor配置

在Cursor中使用,请在Cursor的MCP配置文件中添加以下内容:

在Windows上:%USERPROFILE%\.cursor\mcp.json

"mcpServers": {
  "wxauto-mcp": {
    "command": "uv",
    "args": [
      "--directory",
      "path\\to\\wxauto-mcp",
      "run",
      "wxauto_mcp.py"
    ]
  }
}
No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.