Config is the same across clients — only the file and path differ.
{
"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.
基于 MCP(Model Context Protocol)的微信机器人服务器,让任何 AI Agent 都能收发微信消息。
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in communication
Asynchronous coordination layer for AI coding agents: identities, inboxes, searchable threads, and advisory file leases over FastMCP + Git + SQLite
An MCP server that securely interfaces with your iMessage database via the Model Context Protocol (MCP), allowing LLMs to query and analyze iMessage conversations. It includes robust phone number validation, attachment processing, contact management, group chat handling, and full support for sending and receiving messages.
Email & SMS infrastructure for AI agents — send and receive real email and text messages programmatically
A Model Context Protocol (MCP) server for interacting with Microsoft 365 and Office services through the Graph API
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