已全面支持NT架构,微信MCP,打造您的专属提醒助手
claude mcp add --transport stdio 1052666-wechat-mcp-server python src/mcp_server.py
How to use
WeChat MCP Server implements the MCP protocol to automate sending WeChat messages from an AI assistant. It exposes tools that let you send text messages to a contact or group and schedule messages for later delivery. After starting the server, your MCP client (AI assistant) can discover the available tools via tools/list and invoke them using tools/call. A typical use case is instructing your AI to send a message to a specific contact or group, or to schedule a message to be sent after a delay. The server handles JSON-RPC 2.0 requests and returns results indicating success or any errors encountered during message delivery.
To use from your AI assistant, register the WeChat MCP server configuration in your assistant’s MCP settings. Then call the available tools by name with appropriate arguments, for example send_wechat_message or schedule_wechat_message, supplying the contact_name and message (and delay for scheduling).
How to install
Prerequisites:
- Python 3.8 or newer
- A running WeChat client on Windows (WeChat NT framework support as described in the docs)
- Internet access to install dependencies
Install steps:
-
Clone the repository git clone https://github.com/1052666/WeChat-MCP-Server.git cd WeChat-MCP-Server
-
Install dependencies pip install -r requirements.txt
-
Ensure WeChat is running and you are logged in
- Open WeChat client and verify you can send messages manually
-
Configure the MCP client within your AI assistant
- See the example in the README under "配置AI助手" and adapt path if needed
-
Run the MCP server
- From project root, run: python src/mcp_server.py
-
(Optional) Verify the server is reachable
- Use your MCP client to call tools/list to confirm available tools are exposed
Additional notes
Tips and notes:
- The server currently supports two tools: send_wechat_message and schedule_wechat_message. Ensure the contact_name exactly matches a chat in WeChat (e.g., a contact or group name).
- The project uses pyautogui and win32gui for UI automation; ensure your Windows environment permits screen control permissions.
- The MCP configuration example uses a placeholder path; replace it with your actual repository path when embedding in your AI assistant config.
- The README notes that Mandarin Chinese messages may cause encoding issues; the current capabilities emphasize English, numbers, and emojis. Test carefully with your target content.
- Do not manually interact with the WeChat window while the MCP server is controlling it for reliable operation.
Related MCP Servers
mcp-vegalite
MCP server from isaacwasserman/mcp-vegalite-server
github-chat
A Model Context Protocol (MCP) for analyzing and querying GitHub repositories using the GitHub Chat API.
nautex
MCP server for guiding Coding Agents via end-to-end requirements to implementation plan pipeline
pagerduty
PagerDuty's official local MCP (Model Context Protocol) server which provides tools to interact with your PagerDuty account directly from your MCP-enabled client.
futu-stock
mcp server for futuniuniu stock
mcp -boilerplate
Boilerplate using one of the 'better' ways to build MCP Servers. Written using FastMCP