ChatGPT WeChat MCP Events Bridge
Integrates with ChatGPT Work event automations by delivering WeChat message events over MCP and exposing event-bound reply tools, enabling automations to generate and send responses back to WeChat.
Integrates with WeChat via iLink to receive messages from a dedicated account, expose them as MCP events, and send idempotent replies back to the original sender.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ChatGPT WeChat MCP Events BridgeCheck transport status and show any pending WeChat replies"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ChatGPT WeChat MCP Events Bridge
一个独立、无模型的微信 iLink transport:把专用微信号收到的消息转换为 MCP Event,交给 ChatGPT Work 自动化生成回复,再通过事件绑定的幂等工具发回微信。
非官方实验项目,与 OpenAI、腾讯或微信没有隶属关系。请仅在你有权使用的账号和环境中部署,并自行确认相关服务条款、隐私与合规要求。
架构
专用微信号
│ iLink getupdates / sendmessage
▼
本项目(无模型 transport)
├─ 持久化事件与订阅
├─ MCP 2.0 + OAuth DCR/PKCE
├─ Standard Webhooks 签名投递
├─ pending 队列与有限重试
└─ 事件绑定、幂等的回复工具
│
▼
ChatGPT Work 事件自动化
└─ 负责上下文、推理、工具调用与最终回复transport 本身不运行语言模型,也不接管 ChatGPT 的上下文或记忆。
Related MCP server: mcp-server-wechat-mp
主要能力
wechat.message.receivedMCP Event,支持channel_id和可选发送者过滤。get_transport_status:只读、脱敏的健康状态和计数。get_pending_wechat_messages:读取最早的未成功回复事件,不返回 iLinkcontext_token。send_wechat_reply:只能回复事件原发送者,使用reply:<event_id>幂等键。webhook 签名、回调地址校验、有限重试、重启后持久化。
入站去重、并发幂等写、机器人消息回环保护。
自然分片:按段落、列表与句末标点切分,单片上限 3,800 字符。
安全默认值
TRANSPORT_MODE=simulationTRANSPORT_POLLING_ENABLED=false仅监听
127.0.0.1运行状态、账号令牌、OAuth token、webhook secret 和消息上下文只存入被忽略的
runtime/测试全部使用 fake iLink 与 fake webhook,不访问真实微信
本地验证
需要 Node.js 22.13 或更高版本。
npm install
npm run check启动默认关闭真实网络访问的模拟服务:
.\scripts\start-simulation.ps1停止该脚本记录的本地进程:
.\scripts\stop-local.ps1真实账号与部署
真实模式必须显式完成专用账号登录,并主动设置:
TRANSPORT_MODE=real
TRANSPORT_ACCOUNT_ID=<dedicated-account-id>
TRANSPORT_POLLING_ENABLED=true不要提交 runtime/、.env、二维码、账号文件或任何 token。Linux systemd、HTTPS tunnel 和插件模板见 docs/DEPLOYMENT.md。ChatGPT 自动化规则见 docs/AUTOMATION.md。
重要语义
新订阅只接收订阅建立之后的新事件;创建订阅不会自动 replay 已有 pending。
pending 仅表示 transport 尚未记录成功回复,不代表 ChatGPT 会自动收到该事件。
ChatGPT 的事件自动化拥有自己的运行上下文;本项目不保证继承其他聊天的完整历史。
send_wechat_reply成功与用户手机端实际看到消息是两个不同证据层级。
License
This server cannot be deployed
Maintenance
Related MCP Connectors
WhatsMCP connects Claude and other MCP-compatible AI agents directly to WhatsApp. Send and receive text, images, documents, and voice notes; manage groups (create, add/remove members, promote admins); look up contacts and profiles; follow channels; and read call and message history — all through a standard MCP interface. For voice use cases, WhatsMCP offers SIP-based calling plans (inbound-only, or full inbound/outbound) so AI voice agents can answer and place WhatsApp calls, plus low-latency WebSocket integrations with voice agent providers like ElevenLabs. Multiple WhatsApp accounts can be paired and managed per workspace, with webhook support for real-time inbound message delivery to your own infrastructure.
Connect any AI agent to 1,000+ apps and 27,000+ actions through one remote MCP server (OAuth).
Let Claude or ChatGPT search, read and send your WhatsApp messages over MCP. OAuth sign-in.
- ZapierOAuthcom.zapier
Hosted MCP server connecting AI assistants to 9,000+ apps and 40,000+ actions via Zapier.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables to operate a WeChat Official Account via MCP tools, including searching and executing API workflows and uploading files.MIT
- AlicenseAqualityFmaintenanceEnables AI agents to publish articles to WeChat Official Account (微信公众号). Supports image upload, draft creation, and publishing via standardized MCP protocol.51ISC
- FlicenseAqualityDmaintenanceEnables AI agents to control WeChat through MCP protocol, including sending messages, managing contacts, and searching messages.10-
- FlicenseAqualityCmaintenanceEnables MCP clients like WorkBuddy to connect to the WeChat Official Account API, supporting connection checks, article bundle validation, image uploads, and draft creation and querying, while leaving publishing to the author.41-