Content
# wxauto-mcp
A MCP server based on WeChat automation, used to interact with WeChat clients.
The server utilizes the [wxauto](https://github.com/cluic/wxauto.git) library to enable sending and receiving WeChat messages, allowing large language models to interact with WeChat through wxauto.
## ⚠️Note
This MCP server is only applicable to Windows systems and has certain restrictions on WeChat versions. For details, please refer to the [wxauto documentation](https://docs.wxauto.org/doc/enviorment).
## Features
### Tools
The server provides the following tools:
- **send_message**: Send a message to a specified contact or group.
- Parameters:
- `msg`: The content of the message to be sent (required)
- `to`: The name of the contact or group receiving the message (required)
- `at`: The person to be mentioned in the group message (optional)
- Return value: None
- **get_all_messages**: Retrieve the chat history with a specified contact or group.
- Parameters:
- `who`: The name of the contact or group (required)
- `load_more`: Whether to load more historical messages (optional, default is False)
- Return value: A list of messages, only including messages of type 'friend', each containing the sender and content information
## Usage
### Install uv
Refer to the [uv official installation documentation](https://docs.astral.sh/uv/getting-started/installation/)
### Configure wxauto-mcp
```bash
git clone https://github.com/barantt/wxauto-mcp.git
cd wxauto-mcp
uv sync
```
### Claude Desktop Configuration
To use with Claude Desktop, add the server configuration:
On Windows: `%APPDATA%/Claude/claude_desktop_config.json`
```json
"mcpServers": {
"wxauto-mcp": {
"command": "uv",
"args": [
"--directory",
"path\\to\\wxauto-mcp",
"run",
"wxauto_mcp.py"
]
}
}
```
### Cursor Configuration
To use with Cursor, add the following content to the Cursor MCP configuration file:
On Windows: `%USERPROFILE%\.cursor\mcp.json`
```json
"mcpServers": {
"wxauto-mcp": {
"command": "uv",
"args": [
"--directory",
"path\\to\\wxauto-mcp",
"run",
"wxauto_mcp.py"
]
}
}
```
Connection Info
You Might Also Like
awesome-mcp-servers
A collection of MCP servers.
cc-switch
All-in-One Assistant for Claude Code, Codex & Gemini CLI across platforms.
git
A Model Context Protocol server for Git automation and interaction.
oh-my-opencode
Background agents · Curated agents like oracle, librarians, frontend...
TrendRadar
TrendRadar: Your hotspot assistant for real news in just 30 seconds.
Appwrite
Build like a team of hundreds