WeChat Readonly MCP
Provides strictly read-only local access to Windows WeChat 4.x chats and messages, group members, received documents, encrypted images, voice messages with offline transcription, favorites, official-account articles, moments, and aggregate stats.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
WeChat Readonly MCP (wechat-readonly-mcp)
A local-first, strictly read-only MCP server & Antigravity plugin for Windows WeChat 4.x — giving AI agents real-time access to chats, received documents (PDF/Office/ZIP/code), V2/WXGF decrypted images, offline SenseVoiceSmall voice transcription, favorites, official accounts, and moments without screenshots or copy-pasting.
Disclaimer: Intended strictly for reading your own local WeChat data on your own machine to assist personal productivity. Zero network upload, zero message sending, zero UI automation, zero client modification.
Why This Exists
When working with AI coding/research agents (Antigravity, Claude Code, Codex, Cursor), critical context constantly arrives inside WeChat: project requirements in group chats, PDFs/Excel sheets sent by collaborators, screenshots stored as encrypted .dat files, and 40-second voice notes.
Instead of manually screenshotting, exporting files, or transcribing voice memos by hand, WeChat Readonly MCP exposes a strictly read-only, real-time local MCP bridge covering text + files + images + voice end-to-end.
Related MCP server: weflow
Key Features (v1.1.0)
Real-time incremental SQLCipher 4 WAL sync: Tracks
mtime+ WAL salts and incrementally patches only new WAL frames instead of re-decrypting hugemessage_*.dbshards on every message.Automatic WeChat 4.2 V2 &
WXGF(HEVC) image decryption:Supports Legacy XOR, V1 AES, V2 AES+XOR, and Tencent's proprietary
wxgf(HEVC-wrapped) image container.Derives per-account V2 image keys 100% offline from
kvcommstatistic filenames (zero memory scan needed, with read-only live fallback) and transcodesWXGF-> standard JPEG in memory viaPyAV/ffmpeg.
100% offline SILK v3 voice-to-text transcription:
Reads
SILK v3voice blobs directly frommessage/media_0.db, decodes to 16 kHz PCM in memory (silk-python), and transcribes locally viasherpa-onnx+SenseVoiceSmall int8(zh/en/ja/ko/yue+ punctuation).Caches transcripts per
(chat_id, local_id)locally so repeated reads are instantaneous and automatically inline intowechat_get_messages.
Full-format received document reader:
Directly extracts text from PDF (PyMuPDF / pypdf), DOCX (paragraphs + tables), XLSX (all sheets), PPTX (slides + speaker notes), TXT / MD / JSON / CSV / HTML / source code, and ZIP archives (with Windows CP437 -> GB18030 Chinese filename repair).
15 strictly read-only MCP tools over lightweight JSON-RPC 2.0
stdio(supports both LSPContent-Lengthand newline framing; no heavyweight MCP SDK required).Antigravity Plugin Ready: Ships with
plugin.json,mcp_config.json,rules/AGENTS.md(proactive auto-query rule), andskills/wechat-readonly/SKILL.md.
15 Read-Only MCP Tools
Tool | Capability |
| List recent DMs & group chats with unread counts, timestamps, and last message |
| Fuzzy-match contact remark, nickname, alias, or group name to exact |
| Read paginated chat messages by period ( |
| Keyword search inside one chat or globally across all chats (handles |
| Fetch N messages before and after any |
| List group owner and all members of a |
| Browse/filter received files on disk ( |
| Extract full text from PDF, DOCX, XLSX, PPTX, ZIP (list or read inner entries), HTML, and source code |
| Decrypt |
| Extract SILK v3 voice messages from |
| Browse or search WeChat Favorites (收藏) |
| Browse or search Official Account (公众号) articles and pushes |
| Browse or search Moments (朋友圈) posts |
| Aggregate message counts, type breakdown, and top senders |
| Inspect unlocked DBs, ASR readiness, cache stats, and trigger |
Quick Start (Windows WeChat 4.x)
Prerequisites: Windows 10/11, WeChat 4.x (tested on 4.2.0.53), Python 3.10+.
Option 1: One-Click Antigravity Plugin Install
git clone https://github.com/Sereneoned/wechat-readonly-mcp.git
cd wechat-readonly-mcp
python scripts/install.py --install-deps --download-asr--install-depsinstalls Python dependencies fromrequirements.txt.--download-asrdownloads the ~160 MB offlineSenseVoiceSmall int8model into~/.wechat-readonly-mcp/asr_models/(skip this flag if you don't need voice transcription).Keep WeChat logged in, restart Antigravity, and ask naturally: "Check my unread WeChat messages" or "Summarize the latest PDF received on WeChat".
Option 2: Generic MCP Client (Claude Code / Codex / Cursor)
pip install -r requirements.txtAdd to your client's MCP config:
{
"mcpServers": {
"wechat-readonly": {
"command": "python",
"args": ["-u", "/absolute/path/to/wechat-readonly-mcp/server/mcp_server.py"]
}
}
}Security & Privacy Guarantees
Zero write / zero send surface: Only read-only SQLite URI connections (
?mode=ro) and read-onlyOpenProcess(0x0410)/ReadProcessMemorycalls for key derivation; no message-sending or UI-control APIs exist anywhere in the codebase.100% local execution: Database decryption, image decoding, document parsing, and SenseVoiceSmall ASR all run locally — no data is sent to any third-party cloud service.
Prompt-injection hygiene: Every tool output is wrapped with an explicit
UNTRUSTED_WECHAT_DATAframing notice, and all tools declarereadOnlyHint: true,destructiveHint: false.Never commit local state: Local keys (
all_keys.json,media_keys.json), decrypted DB caches, decoded images, and voice caches live exclusively under${PLUGIN_DATA}/~/.wechat-readonly-mcp/outside the repository.
Architecture & Credits
See docs/architecture.md for the internal pipeline diagram and THIRD_PARTY_NOTICES.md for open-source acknowledgements.
Licensed under the MIT License.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Your Telegram, WhatsApp, Instagram, mail and calendar in Claude or ChatGPT. Never sends messages.
Read and search folders on your own computer with explicit consent. Files are never uploaded.
Read-only context from your desktop activity, so your AI assistant knows what you worked on.
Let AI agents securely read the text messages on your phone.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceProvides AI clients read-only access to WeChat chat history by extracting and decrypting the local Mac database, enabling search, summary, and analysis of messages.1-
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to read local WeChat chat records, sessions, contacts, and group members through WeFlow's local HTTP API, keeping all data on localhost.MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to query local WeChat chat data through read-only MCP tools, including sessions, messages, contacts, search, and statistics, with everything processed locally.7MIT
- AlicenseNot gradedqualityCmaintenanceEnables an AI assistant to search the WeChat message history and files stored locally on a Mac, answering queries like finding a specific message or attachment. It is read-only and fully local, so it cannot send messages or contact any cloud service.3MIT