wxauto MCP Server

wxauto MCP Server

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.

Category
访问服务器

README

wxauto MCP Server

微信自动化 MCP (Model Context Protocol) 服务器,为 AI 开发工具提供微信自动化能力。

Python Version License MCP

系统要求

  • Windows 11/10
  • Python 3.9+
  • 微信已登录
  • wxautox4 激活

快速安装

pip install wxauto-mcp

使用

一键自动安装(推荐)

wxauto-mcp --install

这将自动配置 MCP Server 到 Claude DesktopClaude Code,无需手动编辑配置文件。

生成配置文件(手动配置)

如果需要手动配置,运行:

# 生成配置文件到默认目录 (./mcp-configs)
wxauto-mcp --config

# 生成配置文件到指定目录
wxauto-mcp --config /path/to/configs

wxauto-mcp --config mcp-configs

然后将生成的配置文件内容添加到 AI 应用中:

Claude Desktop 配置文件位置:

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Claude Code 配置文件位置:

  • %USERPROFILE%\.claude.json

Cursor:在 Settings 的 MCP 配置中添加

可用工具(27个)

系统工具(6个)

  • wechat_initialize - 初始化微信连接
  • wechat_status - 获取微信运行状态
  • wechat_activate - 激活 wxautox4
  • wechat_check_activation - 检查激活状态
  • wechat_list_tools - 列出所有可用工具
  • get_my_info - 获取我的微信账号信息

消息工具(6个)

  • send_message - 发送文本消息
  • send_url_card - 发送链接卡片
  • get_messages - 获取当前聊天消息
  • get_history - 获取历史消息
  • get_next_new_message - 获取下一个聊天窗口的新消息
  • send_bulk_messages - 批量发送消息

联系人工具(3个)

  • get_friends - 获取好友列表
  • get_chat_info - 获取当前聊天信息
  • switch_chat - 切换聊天窗口

会话工具(4个)

  • get_sessions - 获取会话列表
  • get_recent_groups - 获取最近群聊
  • filter_sessions - 筛选会话列表
  • get_unread_sessions - 获取有未读消息的会话

文件工具(4个)

  • send_files - 发送文件
  • send_image - 发送图片
  • send_directory_files - 发送整个目录的文件
  • check_file_exists - 检查文件是否存在

好友请求工具(3个)

  • get_new_friends - 获取新的好友请求列表
  • accept_new_friend - 接受新的好友请求
  • add_friend - 添加新好友

界面工具(1个)

  • switch_to_contact - 切换到联系人页面

常见问题

1. 激活

wxautox4 需要激活使用。请访问 https://docs.wxauto.org 获取激活密钥,然后:

# 设置环境变量
set WECHAT_LICENSE_KEY=your-license-key

# 或调用激活工具
wxauto-mcp-http
# 然后调用 wechat_activate 工具

2. 权限问题

确保 Python 有访问微信进程的权限,建议以管理员身份运行。

3. 微信窗口

某些操作需要微信窗口在前台可见,请确保微信窗口未被最小化。

4. 配置文件位置

不同 AI 工具的配置文件位置:

Claude Desktop:

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Claude Code:

  • Windows: %USERPROFILE%\.claude.json

Cursor:

  • 在 Settings → MCP 中添加配置

联系方式

  • GitHub Issues: louxinghao@gmail.com

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选
mcp-server-qdrant

mcp-server-qdrant

这个仓库展示了如何为向量搜索引擎 Qdrant 创建一个 MCP (Managed Control Plane) 服务器的示例。

官方
精选
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选