WeChat

Messaging and email

WeChat-MCP: let Openclaw/Claude/ChatGPT and other AI assistants read and reply to WeChat for you.

Your AI app calls the WeChat MCP server, which does the work through tools like fetch_messages_by_chat and reply_to_messages_by_chat and sends the result back to the chat.

About WeChat

WeChat is a community MCP server from BiboyQG, filed in our directory under messaging and email. WeChat-MCP: let Openclaw/Claude/ChatGPT and other AI assistants read and reply to WeChat for you.

The README for WeChat lists tools such as fetch_messages_by_chat, reply_to_messages_by_chat, add_contact_by_wechat_id and publish_moment_without_media, which your AI app can call once the server is connected.

At a glance

Publisher
BiboyQG (community)
Runs
See the README for setup
Written in
Python
License
MIT
GitHub stars
310

Tools WeChat gives your AI app

  • fetch_messages_by_chatGet recent messages from a chat.
  • reply_to_messages_by_chatSend a reply to a chat.
  • add_contact_by_wechat_idAdd a new contact using a WeChat ID and send a friend request.
  • publish_moment_without_mediaPublish a text-only Moments post (no photos or videos); optionally only prepare a draft without posting via publish=False.

Tool names as the WeChat README lists them. Your AI app shows the live list once WeChat is connected.

How to set up WeChat

  1. Follow the install steps in the WeChat README; it is written in Python, so have that toolchain ready.
  2. Check the WeChat README for keys or settings; the registry lists none that WeChat requires.
  3. Add WeChat to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the WeChat tools to confirm the connection.
  5. Run one read-only task with WeChat first, such as a call to fetch_messages_by_chat, before you allow anything that writes or sends.

WeChat compared with similar servers

  • VRCX 0 by Map1en has fewer GitHub stars than WeChat (305 against 310); both are community servers, and both run locally.
  • Workopia, Job Search by workopia has more GitHub stars than WeChat (313 against 310); both are community servers, and Workopia, Job Search runs as a remote server and WeChat runs on your own machine.
  • Claude Code Teams by cs50victor has fewer GitHub stars than WeChat (284 against 310); both are community servers, and both run locally.

Before you connect WeChat

  • Give WeChat its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each WeChat tool call until you trust what it does with them.
  • Treat text that WeChat fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for WeChat on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for WeChat

How marketing and sales teams put WeChat to work, by company size. Pick the size closest to yours and start WeChat on one use case.

Small business

  • A small team can have WeChat summarize the inbox or channel each morning, so nothing from a customer waits until the afternoon.
  • Owners can draft replies and follow-ups with WeChat and send them only after a read, keeping the personal tone customers expect.
  • WeChat runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Marketing teams can use WeChat to turn long launch threads into decisions, owners and dates that land in the project tracker.
  • Sales and success teams can connect WeChat so an agent drafts follow-ups after every customer call, ready to edit and send.
  • Start with fetch_messages_by_chat and reply_to_messages_by_chat, the tools WeChat lists first, and add more once the team trusts the results.

Enterprise

  • Enterprises can deploy WeChat with retention and data loss rules intact, so agents summarize conversations without moving data outside policy.
  • Internal comms teams can use WeChat to find what employees ask most across channels and answer it once, in the right place.
  • WeChat is a community server, so have security review the code and pin a version before WeChat touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

WeChat README

From BiboyQG/WeChat-MCP on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

WeChat MCP Server

中文 | English

An MCP server that automates WeChat on macOS using the Accessibility API and screen capture. It enables LLMs to interact with WeChat chats programmatically.

Features

  • 📨 Fetch recent messages from any chat (contact or group)
  • ✍️ Send automated replies based on chat history
  • 📷 Publish text-only Moments posts, with optional draft-only mode
  • 👥 Add contacts using WeChat ID with configurable privacy
  • 🔍 Smart chat search with exact name matching
  • 🤖 5 specialized Claude Code sub-agents for smart WeChat automation

Quick Start

Installation
pip install wechat-mcp-server
Setup with Claude Code
# 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
Setup with Claude Desktop
// 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"
      ],
    }
  }
}
Setup with Codex
# 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
macOS Permissions

⚠️ Important: Grant Accessibility permissions to your terminal:

  1. Open System Settings → Privacy & Security → Accessibility
  2. Add your terminal application (Terminal.app, iTerm2, etc.)
  3. Ensure WeChat is running before using the server

Usage

Basic Commands
# 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
Available MCP Tools
  • fetch_messages_by_chat - Get recent messages from a chat
  • reply_to_messages_by_chat - Send a reply to a chat
  • add_contact_by_wechat_id - Add a new contact using a WeChat ID and send a friend request
  • publish_moment_without_media - Publish a text-only Moments post (no photos or videos); optionally only prepare a draft without posting via publish=False

See detailed API documentation for full tool specifications.

Claude Code Sub-Agents

This project includes 5 intelligent sub-agents designed specifically for WeChat automation. They enable natural language control of WeChat through Claude Code.

Available Sub-Agents
  1. Chat-summarizer - Summarize chat history and extract key information
  2. Auto-replier - Auto-generate and send appropriate replies
  3. Message-searcher - Search chat history for specific content
  4. Multi-chat-checker - Monitor multiple chats and prioritize messages
  5. Chat-insights - Analyze relationship dynamics and communication patterns

📖 View complete sub-agents guide

Development

Local Setup with uv
# Install uv
curl -LsSf https://astral.sh/uv/install.sh | sh

# Clone and setup
git clone https://github.com/yourusername/WeChat-MCP.git
cd WeChat-MCP
uv sync

# Run locally
uv run wechat-mcp --transport stdio

Documentation

Requirements

  • macOS (uses Accessibility API)
  • WeChat for Mac installed and running
  • Python 3.12+
  • Accessibility permissions for terminal

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT License - see LICENSE file for details

Questions about WeChat

What is the WeChat MCP server?

WeChat-MCP: let Openclaw/Claude/ChatGPT and other AI assistants read and reply to WeChat for you. WeChat is maintained by BiboyQG on GitHub at BiboyQG/WeChat-MCP, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the WeChat MCP server?

WeChat doesn't publish a one-line install in the MCP registry, so follow the setup steps in its README on GitHub (BiboyQG/WeChat-MCP). Like most servers, WeChat ends with a command or URL you paste into your AI app's MCP config.

Does WeChat need an API key?

The registry lists no required keys for WeChat. Check the WeChat README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is WeChat an official MCP server?

No. WeChat is a community server maintained by BiboyQG. Community servers can be excellent; read the code and the open issues before you give WeChat access to company data.

What license is WeChat under?

WeChat is released under the MIT license, according to its GitHub repository. The license covers the code of WeChat; the service it connects to has its own terms.