{
"mcpServers": {
"wechat": {
"args": [
"mcp-wechat-server"
],
"command": "bunx"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
Is it safe?
No package registry to scan.
No authentication — any process on your machine can connect.
License not specified.
Is it maintained?
Last commit 17 days ago. 76 stars.
Will it work with my client?
Transport: stdio, sse, http. Works with Claude Desktop, Cursor, Claude Code, and most MCP clients.
No automated test available for this server. Check the GitHub README for setup instructions.
No known vulnerabilities.
This server is missing a description. Tools and install config are also missing.If you've used it, help the community.
Add informationHave you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Persistent memory using a knowledge graph
Privacy-first. MCP is the protocol for tool access. We're the virtualization layer for context.
Pre-build reality check. Scans GitHub, HN, npm, PyPI, Product Hunt — returns 0-100 signal.
Monitor browser logs directly from Cursor and other MCP compatible IDEs.
MCP Security Weekly
Get CVE alerts and security updates for Mcp Wechat Server and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
基于 MCP(Model Context Protocol)的微信机器人服务器,让任何 AI Agent 都能收发微信消息。
在 claude_desktop_config.json 中添加:
{
"mcpServers": {
"wechat": {
"command": "bunx",
"args": ["mcp-wechat-server"]
}
}
}
在 opencode.json 中添加:
{
"mcp": {
"wechat": {
"type": "local",
"command": ["bunx", "mcp-wechat-server"],
"enabled": true
}
}
}
{
"command": "bunx",
"args": ["mcp-wechat-server"]
}
bunx会自动从 npm 下载并运行,无需手动安装。
AI Agent 调用 login_qrcode 生成二维码,你可以通过以下方式扫码:
cat ~/.mcp-wechat-server/qrcode.txt 查看二维码~/.mcp-wechat-server/qrcode.png提示:如果手机扫码后页面一直加载,请切换到移动数据网络(关闭 WiFi)。
Agent 调用 check_qrcode_status 确认登录状态。
登录成功后,Agent 会自动执行以下流程:
get_messages 轮询新消息send_typing 显示"正在输入..."send_text_message 回复send_typing 取消打字状态
| 工具 | 说明 |
|------|------|
| login_qrcode | 生成微信登录二维码 |
| check_qrcode_status | 检查二维码是否已扫码确认 |
| logout | 退出登录并清除凭证 |
| get_messages | 拉取新消息(wait=true 阻塞等待直到收到消息) |
| send_text_message | 发送文本消息 |
| send_typing | 发送或取消"正在输入"状态 |
所有数据保存在 ~/.mcp-wechat-server/ 目录下:
| 文件 | 说明 |
|------|------|
| account.json | Bot Token 和用户 ID(权限 600) |
| state.json | 消息游标和上下文 Token |
| qrcode.png | 生成的二维码图片 |
| qrcode.txt | 生成的终端二维码文本 |
git clone https://github.com/Howardzhangdqs/mcp-wechat-server.git
cd mcp-wechat-server
bun install
bun run dev
MIT