loading…
Search for a command to run...
loading…
Provides WeChat automation capabilities for AI development tools via the Model Context Protocol. It enables users to send messages, manage contacts, and handle
Provides WeChat automation capabilities for AI development tools via the Model Context Protocol. It enables users to send messages, manage contacts, and handle file transfers through AI assistants like Claude and Cursor.
微信自动化 MCP (Model Context Protocol) 服务器,为 AI 开发工具提供微信自动化能力。
pip install wxauto-mcp
wxauto-mcp --install
这将自动配置 MCP Server 到 Claude Desktop 和 Claude Code,无需手动编辑配置文件。
如果需要手动配置,运行:
# 生成配置文件到默认目录 (./mcp-configs)
wxauto-mcp --config
# 生成配置文件到指定目录
wxauto-mcp --config /path/to/configs
wxauto-mcp --config mcp-configs
然后将生成的配置文件内容添加到 AI 应用中:
Claude Desktop 配置文件位置:
%APPDATA%\Claude\claude_desktop_config.jsonClaude Code 配置文件位置:
%USERPROFILE%\.claude.jsonCursor:在 Settings 的 MCP 配置中添加
wechat_initialize - 初始化微信连接wechat_status - 获取微信运行状态wechat_activate - 激活 wxautox4wechat_check_activation - 检查激活状态wechat_list_tools - 列出所有可用工具get_my_info - 获取我的微信账号信息send_message - 发送文本消息send_url_card - 发送链接卡片get_messages - 获取当前聊天消息get_history - 获取历史消息get_next_new_message - 获取下一个聊天窗口的新消息send_bulk_messages - 批量发送消息get_friends - 获取好友列表get_chat_info - 获取当前聊天信息switch_chat - 切换聊天窗口get_sessions - 获取会话列表get_recent_groups - 获取最近群聊filter_sessions - 筛选会话列表get_unread_sessions - 获取有未读消息的会话send_files - 发送文件send_image - 发送图片send_directory_files - 发送整个目录的文件check_file_exists - 检查文件是否存在get_new_friends - 获取新的好友请求列表accept_new_friend - 接受新的好友请求add_friend - 添加新好友switch_to_contact - 切换到联系人页面wxautox4 需要激活使用。请访问 https://docs.wxauto.org 获取激活密钥,然后:
# 设置环境变量
set WECHAT_LICENSE_KEY=your-license-key
# 或调用激活工具
wxauto-mcp-http
# 然后调用 wechat_activate 工具
确保 Python 有访问微信进程的权限,建议以管理员身份运行。
某些操作需要微信窗口在前台可见,请确保微信窗口未被最小化。
不同 AI 工具的配置文件位置:
Claude Desktop:
%APPDATA%\Claude\claude_desktop_config.jsonClaude Code:
%USERPROFILE%\.claude.jsonCursor:
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"wxauto-mcp-server": {
"command": "npx",
"args": []
}
}
}