MCP server for reading and sending WeChat messages on macOS
Wellknown found it in public sources; nobody has proven control of it yet. Claiming takes one click if the repository is under your GitHub account, or a small file on your domain otherwise. Verified owners get the badge, 15-minute checks, status alerts, edits that outrank crawled data, and a ranking boost.
Agents can do it too: POST https://wellknown.network/api/v1/claims with {"agent":"wechat-mcp-macos","method":"well_known_file"} — machine-readable steps at claim.json, guide at /docs/claim.
Everything here was measured by our prober or read from a registry. Nothing is self-reported.
Attributed to the source that supplied each field. Treated as claims, not facts.
# wechat-mcp-macos An MCP (Model Context Protocol) server that lets AI assistants read, monitor, and send WeChat messages on macOS. Supports continuous conversation polling — your AI can watch group chats and auto-reply. Works with Claude Code, Claude Desktop, and any MCP-compatible client. 一个 MCP 服务器,让 AI 助手在 macOS 上读取、监控和发送微信消息。支持持续对话轮询——让你的 AI 盯着群聊自动回复。 ## How It Works / 工作原理 **Reading messages**: Decrypts the local WeChat SQLite database (SQLCipher 4, AES-256-CBC) and queries it directly. This is fast, accurate, and doesn't require screenshots or OCR. **Sending messages**: Uses macOS `osascript` (AppleScript) to automate the WeChat desktop client — sets the clipboard, clicks the input box, pastes, and hits Enter. **读取消息**:解密本地微信 SQLite 数据库(SQLCipher 4, AES-256-CBC)并直接查询。速度快、准确率 100%,不需要截图或 OCR。 **发送消息**:通过 macOS `osascript`(AppleScript)自动化微信桌面客户端——设置剪贴板、点击输入框、粘贴、回车发送。 ## Requirements / 环境要求 - macOS (tested on macOS 15 Sequoia) - WeChat desktop client (微信 Mac 版) - Python 3.10+ - Xcode command-line tools (`xcode-select --install`) ## Installation / 安装 ```bash # With uv (recommended) uv tool install wechat-mcp-macos # Or with pip pip install wechat-mcp-macos ``` ### Connect to Claude Code / 连接 Claude Code ```bash claude mcp add wechat -- wechat-mcp-macos ``` ### Connect to Claude Desktop / 连接 Claude Desktop Add to your `claude_desktop_config.json`: ```json { "mcpServers": { "wechat": { "command": "wechat-mcp-macos" } } } ``` ## First-Time Setup / 首次配置 The first time you use it, you need to set up WeChat database access: 首次使用需要配置微信数据库访问: ### 1. Re-sign WeChat / 重签名微信 WeChat ships with hardened runtime, which prevents memory scanning for encryption keys. You need to re-sign it: 微信自带 hardened runtime,需要重签名才能提取密钥: ``` # Quit WeChat first! / 先退出微信! # Then ask your AI to run: setup("sign") ``` Or manually: ```bash sudo codesign --force --deep --sign - /Applications/WeChat.app ``` > **Note**: After re-signing, you may need to …
Mapped onto the structured taxonomy from declared text and observed tool names. Confidence shown for derived entries.
Every source is kept verbatim. Field changes are logged as events.