Overview
What is Wechat Mcp?
Wechat Mcp is an MCP server that enables interaction with WeChat through MCP-compatible clients. It provides tools to retrieve messages, send messages, and query message data using SQL. The server is built on top of the open-source projects wxauto and pywxdump. It is intended for developers who want to integrate WeChat messaging into MCP-aware applications.
How to use Wechat Mcp?
Install the package via pip (pip install wechat-mcp), then log into WeChat on the same machine. Start the server with wechat-mcp --wxid "your_wechat_id" --port 8000 --transport sse for SSE mode, or configure a stdio client using the provided JSON snippet. The server exposes endpoints at http://127.0.0.1:8000/sse for SSE transport.
Key features of Wechat Mcp
- Retrieve WeChat messages with
get_wechat_message - Fetch the latest message using
get_last_wechat_message - Run SQL queries on messages with
sql_wechat_message - Send messages via
send_wechat_message - Supports both SSE and stdio transports
Use cases of Wechat Mcp
- Automate responses to incoming WeChat messages
- Monitor and log WeChat conversations for analysis
- Build custom chat bots integrated with MCP tools
- Query message history using SQL for reporting or search
FAQ from Wechat Mcp
Do I need to log into WeChat before using Wechat Mcp?
Yes, you must log into WeChat on the same machine before starting the server.
What transports does Wechat Mcp support?
Wechat Mcp supports both SSE (HTTP) and stdio (JSON‑based) transports.
What tools does Wechat Mcp provide?
It provides four tools: get_wechat_message, get_last_wechat_message, sql_wechat_message, and send_wechat_message.
What dependencies does Wechat Mcp rely on?
The server acknowledges two open‑source projects: wxauto (for WeChat automation) and pywxdump (for WeChat data dumping).