bym1heng· 1 MCP server
WeChat (微信) channel plugin for Claude Code — receive and reply to WeChat messages directly in your terminal.
$git clone https://github.com/m1heng/claude-plugin-weixinInstalls into the current project.
Install claude-plugin-weixin by running `git clone https://github.com/m1heng/claude-plugin-weixin`, then use it for the current task and follow its documentation at https://github.com/m1heng/claude-plugin-weixin.
| 1 | # claude-channel-weixin |
| 2 | |
| 3 | WeChat (微信) channel plugin for [Claude Code](https://claude.com/claude-code) — receive and reply to WeChat messages directly in your terminal. |
| 4 | |
| 5 | Uses the WeChat iLink Bot API with HTTP long-poll. No public webhook needed. |
| 6 | |
| 7 | ## Prerequisites |
| 8 | |
| 9 | - [Claude Code](https://claude.com/claude-code) v2.1.80+ |
| 10 | - [Bun](https://bun.sh) runtime |
| 11 | |
| 12 | ## Install |
| 13 | |
| 14 | ```bash |
| 15 | # Add the marketplace (one-time) |
| 16 | claude plugin marketplace add m1heng/claude-plugins |
| 17 | |
| 18 | # Install the plugin |
| 19 | claude plugin install weixin@m1heng-plugins |
| 20 | ``` |
| 21 | |
| 22 | ## Configure |
| 23 | |
| 24 | ### Login with QR code |
| 25 | |
| 26 | In Claude Code, run: |
| 27 | |
| 28 | ``` |
| 29 | /weixin:configure login |
| 30 | ``` |
| 31 | |
| 32 | This will fetch a QR code from the WeChat iLink Bot API. Scan it with WeChat and confirm on your phone. Credentials are saved automatically. |
| 33 | |
| 34 | ### Start with channels |
| 35 | |
| 36 | ```bash |
| 37 | claude --dangerously-load-development-channels plugin:weixin@m1heng-plugins |
| 38 | ``` |
| 39 | |
| 40 | > The `--dangerously-load-development-channels` flag is required during the [channels research preview](https://code.claude.com/docs/en/channels-reference#test-during-the-research-preview) for non-official plugins. |
| 41 | |
| 42 | ### Pair your WeChat account |
| 43 | |
| 44 | 1. Send a message to the bot on WeChat — it replies with a pairing code |
| 45 | 2. In Claude Code, run `/weixin:access pair <code>` to approve |
| 46 | |
| 47 | ## Skills |
| 48 | |
| 49 | | Skill | Description | |
| 50 | |---|---| |
| 51 | | `/weixin:configure` | QR code login, check channel status | |
| 52 | | `/weixin:access` | Manage pairing, allowlists, DM policy | |
| 53 | |
| 54 | ## How it works |
| 55 | |
| 56 | The plugin runs a local MCP server that long-polls the WeChat iLink Bot API for new messages. No public URL or webhook needed — everything runs locally. Messages from allowed senders are forwarded to your Claude Code session; Claude replies back through the same API. |
| 57 | |
| 58 | ### Key difference from Telegram/Feishu |
| 59 | |
| 60 | WeChat requires a `context_token` to be passed back when replying. This token comes from the inbound message and is automatically included in the channel notification metadata. Claude passes it back through the reply tool. |
| 61 | |
| 62 | ## License |
| 63 | |
| 64 | MIT |