by BiboyQG
WeChat-MCP: let Openclaw/Claude/ChatGPT and other AI assistants read and reply to WeChat for you
# Add to your Claude Code skills
git clone https://github.com/BiboyQG/WeChat-MCP中文 | English
</div>An MCP server that automates WeChat on macOS using the Accessibility API and screen capture. It enables LLMs to interact with WeChat chats programmatically.
pip install wechat-mcp-server
# If installed via pip
claude mcp add --transport stdio wechat-mcp -- wechat-mcp
# If using uv for development
claude mcp add --transport stdio wechat-mcp -- uv --directory $(pwd) run wechat-mcp
<details>
<summary>Setup with Claude Desktop</summary>
// If installed via pip
{
"mcpServers": {
"wechat-mcp": {
"type": "stdio",
"command": "wechat-mcp"
}
}
}
// If using uv for development
{
"mcpServers": {
"wechat-mcp": {
"type": "stdio",
"command": "uv",
"args": [
"--directory",
"{path/to/wechat-mcp}",
"run",
"wechat-mcp"
],
}
}
}
</details>
<details>
<summary>Setup with Codex</summary>
# If installed via pip
codex mcp add wechat-mcp -- wechat-mcp
# If using uv for development
codex mcp add wechat-mcp -- uv --directory $(pwd) run wechat-mcp
</details>
⚠️ Important: Grant Accessibility permissions to your terminal:
# Run with default stdio transport
wechat-mcp --transport stdio
# Run with HTTP transport
wechat-mcp --transport streamable-http
# Run with SSE transport
wechat-mcp --transport sse
fetch_messages_by_chat - Get recent messages from a chatreply_to_messages_by_chat - Send a reply to a chatadd_contact_by_wechat_id - Add a new contact using a WeChat ID and send a friend requestpublish_moment_without_media - Publish a text-only Moments post (no photos or videos); optionally only prepare a draft without posting via publish=FalseSee detailed API documentation for full tool specifications.
This project includes 5 intellige...
No comments yet. Be the first to share your thoughts!