mcp -wechat
实现pc端微信的mcp服务功能
claude mcp add --transport stdio interiv-mcp-server-wechat python D:\PythonCode\mcp-wechat\mcp-wechat\main.py \ --env PYTHONUNBUFFERED="1"
How to use
This MCP server endpoint provides a WeChat integration for PC environments. The server is driven by a Python script (main.py) inside a virtual environment. After starting, it exposes the MCP-compatible interfaces which can be consumed by MCP clients or tooling to perform WeChat-related automation and data exchange. The configuration shown in the readme demonstrates how a user would point the MCP launcher to the Python interpreter and the main script, enabling auto-approval for the 'wechat' capability. To use the server, ensure your environment has the required dependencies installed in a virtual environment, then run the configured command so the MCP framework can connect to the WeChat service layer. Tools and capabilities exposed are based on what the Python script implements (for example, sending messages, managing contacts, or automating chats) as part of the MCP protocol.
How to install
Prerequisites:
- Python (3.x) installed on your system
- A working Python virtual environment (recommended)
- Access to the WeChat-related Python project files (main.py and dependencies)
Install and setup steps:
- Create a virtual environment and activate it
- Windows (PowerShell): python -m venv .venv ..venv\Scripts\Activate.ps1
- macOS/Linux (bash): python3 -m venv .venv source .venv/bin/activate
- Install project dependencies (from the project directory where main.py resides)
- Using pip inside the activated venv: pip install -r requirements.txt
- If no requirements file is provided, install the needed packages listed by the project (e.g., wechat-sdk, requests, etc.)
- Place the main script and ensure proper paths
- Ensure your main.py path is accessible, e.g. D:\PythonCode\mcp-wechat\mcp-wechat\main.py
- Create the MCP launcher configuration (as shown in readme) ensuring the Python interpreter path and main script path are correct for your environment
- Start the server via the MCP launcher by loading the mcp-wechat configuration
Example commands (adjust paths to your setup):
- Create and activate venv (Windows): python -m venv .venv ..venv\Scripts\activate
- Install dependencies: pip install -r requirements.txt
- Run (through MCP configuration): use the provided command mapping to run main.py
Additional notes
Tips and common issues:
- Ensure the Python virtual environment matches the architecture (32/64-bit) of your Python installation and dependencies.
- If the MCP launcher cannot find main.py, double-check the path in the configuration and adjust accordingly.
- If dependencies fail to install, explicitly install required packages listed by the project (e.g., requests, wechat-sdk) inside the virtual environment.
- Set PYTHONUNBUFFERED=1 to ensure logs appear in real time, which helps with debugging MCP interactions.
- The configuration snippet mentions an autoApprove setting for 'wechat'—ensure this aligns with your MCP client expectations to streamline connection approvals.
- On Windows, ensure backslashes are escaped in JSON strings or use raw path conventions compatible with your launcher.
Related MCP Servers
mcp-vegalite
MCP server from isaacwasserman/mcp-vegalite-server
github-chat
A Model Context Protocol (MCP) for analyzing and querying GitHub repositories using the GitHub Chat API.
nautex
MCP server for guiding Coding Agents via end-to-end requirements to implementation plan pipeline
pagerduty
PagerDuty's official local MCP (Model Context Protocol) server which provides tools to interact with your PagerDuty account directly from your MCP-enabled client.
futu-stock
mcp server for futuniuniu stock
mcp -boilerplate
Boilerplate using one of the 'better' ways to build MCP Servers. Written using FastMCP