{"repo":"panxingfeng/mcp_server_wechat","free":true,"listed":false,"github":"https://github.com/panxingfeng/mcp_server_wechat","clone":"git clone https://github.com/panxingfeng/mcp_server_wechat.git","description":"基于MCP技术，操作微信发送消息和获取历史记录","language":"Python","stars":111,"topics":[],"license":"MIT","category":"mcp-servers","readme_excerpt":"MCP Server WeChat 基于MCP技术的微信聊天记录获取和消息发送功能的服务器，使用pywechat工具实现微信自动化操作。 功能特点 此服务器提供以下主要功能： - 获取微信聊天记录（指定日期） - 发送单条消息给单个好友 - 发送多条消息给单个好友 - 发送消息给多个好友 可用工具 - wechat get chat history - 获取特定日期的微信聊天记录 - 必需参数: - to user (string): 好友或群聊备注或昵称 - target date (string): 目标日期，格式为YY/M/D，如25/3/22 - wechat send message - 向单个微信好友发送单条消息 - 必需参数: - to user (string): 好友或群聊备注或昵称 - message (string): 要发送的消息 - wechat send multiple messages - 向单个微信好友发送多条消息 - 必需参数: - to user (string): 好友或群聊备注或昵称 - messages (array): 要发送的消息列表 (用英文逗号分隔的字符串输入) - wechat send to multiple friends - 向多个微信好友发送单条或者多条消息 - 必需参数: - to user (array): 好友或群聊备注或昵称列表 (用英文逗号分隔的字符串输入) - message (string/array): 要发送的消息 (单条消息会发给所有好友；多条消息用英文逗号分隔且数量与好友数相同时，将分别发送给对应好友) 安装方法 stdio版 sse版/Streamable HTTP版 使用示例 配置为 MCP 服务 在您的 MCP 配置中添加： stdio版 sse版 启动命令 Streamable HTTP版 启动命令 调用示例 1. 获取聊天记录: 2. 发送单条消息: 3. 发送多条消息: 4. 发送给多个好友(单条消息): 调试 您可以使用 MCP inspector 来调试服务器: 实际效果展示 inspector的测试 基于我自己UI(仿Cherry Studio) 的测试 基于 Cherry Studio 的Streamable HTTP 的测试 注意事项 - 使用本工具需要保持微信桌面版处于登录状态 - 获取聊天记录和发送消息需要确保微信窗口能够被正常操作 - 在使用过程中，请勿手动操作微信窗口，以免干扰自动化操作 - 请勿使用此工具进行任何违反微信服务协议的行为 许可证 mcp server wechat 使用 MIT 许可证。这意味着您可以自由使用、修改和分发此软件，但需遵守 MIT 许可证的条款和条件。详情请参阅项目仓库中的 LICENSE 文件。","default_branch":null,"files":null,"tree":[],"storefront":"/r/panxingfeng","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/panxingfeng/mcp_server_wechat/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}