WeChat MCP Enhanced

WeChat MCP Enhanced

An MCP server that enables file transmission, voice message processing, and voice call management through the WeChat PC client. It provides tools for automated communication including audio format conversion and call status tracking within the Model Context Protocol framework.

Category
Visit Server

README

WeChat MCP Enhanced

微信MCP增强版,支持文件发送、语音接收/发送、语音通话功能。

功能特性

  • 📁 文件发送 - 支持发送各类文件给微信好友/群聊
  • 🎙️ 语音收发 - 支持发送和接收语音消息(自动格式转换)
  • 📞 语音通话 - 支持发起和接听微信语音通话
  • 🤖 MCP协议 - 符合Model Context Protocol标准

安装

# 克隆仓库
git clone https://github.com/mikewangmax/wechat-mcp-enhanced.git
cd wechat-mcp-enhanced

# 安装依赖
pip install -r requirements.txt

# Windows额外依赖(语音通话需要)
# 需要安装微信PC版并登录

配置

  1. 复制配置模板:
cp config/settings.example.py config/settings.py
  1. 编辑 config/settings.py,填入你的配置

使用

启动服务器

python src/server.py

MCP Tools

文件相关

  • send_file(target_user, file_path) - 发送文件
  • receive_file(message_id, save_path) - 接收文件

语音相关

  • send_voice(target_user, audio_path) - 发送语音消息
  • receive_voice(message_id, save_path) - 接收语音消息
  • convert_audio(input_path, output_format) - 音频格式转换

通话相关

  • start_voice_call(target_user) - 发起语音通话
  • end_voice_call(call_id) - 结束语音通话
  • get_call_status(call_id) - 获取通话状态

技术架构

wechat-mcp-enhanced/
├── src/
│   ├── server.py              # MCP服务器主入口
│   ├── wechat_client.py       # 微信客户端封装
│   └── handlers/
│       ├── file_handler.py    # 文件处理
│       ├── voice_handler.py   # 语音处理
│       └── call_handler.py    # 通话处理
├── config/
│   └── settings.py            # 配置文件
└── tests/                     # 测试用例

注意事项

  1. Windows环境:语音通话功能需要Windows系统和微信PC版
  2. 登录状态:使用前需要确保微信PC版已登录
  3. 权限:部分功能可能需要管理员权限

License

MIT License

贡献

欢迎提交Issue和PR!

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured