weicyruc/claude-weixin-channel
🤖 将 Claude Code 接入微信私信 | Connect Claude Code to WeChat via official iLink API
Platform-specific configuration:
{
"mcpServers": {
"claude-weixin-channel": {
"command": "npx",
"args": [
"-y",
"claude-weixin-channel"
]
}
}
}Add the config above to .claude/settings.json under the mcpServers key.
<div align="center">
将 Claude AI 接入微信私信 — 官方 iLink API · 零中间层 · 开箱即用
[](LICENSE) [](https://bun.sh) [](https://www.typescriptlang.org) [](https://modelcontextprotocol.io) [](https://ilinkai.weixin.qq.com)
---
> 让你的微信私信直接对话 Claude Code,扫码登录,5 分钟上线。
</div>
---
| 功能 | 说明 | |------|------| | 🔐 扫码登录 | 使用微信官方 iLink API,扫一下二维码即完成授权,无需抓包或第三方框架 | | ⚡ 零中间层 | MCP Server 直连微信 iLink 后端,消息延迟极低 | | 🛡️ 访问控制 | 内置 Pairing(配对码)/ Allowlist 双模式,防止陌生人滥用 | | 📨 长轮询 | 后台持续轮询,消息实时送达 Claude Code | | 🔄 自动分段 | 超 4000 字的回复自动拆分发送,微信不截断 | | 📜 消息历史 | 内存维护最近 50 条对话记录,支持 fetch_messages 回溯 | | 🎯 MCP Channel 协议 | 原生对接 Claude Code --channels 标志,与 Discord 插件同等地位 |
---
┌──────────────┐ 微信私信 ┌─────────────────────────┐
│ 微信用户 │ ──────────────▶ │ WeChat iLink API │
│ (手机端) │ │ ilinkai.weixin.qq.com │
└──────────────┘ └────────────┬────────────┘
│ 长轮询 (getupdates)
▼
┌─────────────────────────┐
│ server.ts (Bun) │
│ MCP Channel Server │
│ │
│ • 访问控制 Loading reviews...