WeChat Robot
微信机器人MCP服务端
What is WeChat Robot?
WeChat Robot is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to 微信机器人mcp服务端
微信机器人MCP服务端
This server falls under the Communication category on MCPgee, the world's largest MCP server directory with 33,000+ servers.
Features
- 微信机器人MCP服务端
Use Cases
Maintainer
Works with
Installation
Manual Installation
npx wechat-robotConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
How to Set Up and Use WeChat Robot
WeChat Robot MCP Server is a Go-based server that bridges AI assistants to a running WeChat client instance, enabling automated long-text message sending and bot interactions through the Model Context Protocol. It communicates with the WeChat client over a local HTTP endpoint using a configured robot code and client port, making it suitable for automating WeChat messaging workflows from Claude or other MCP-compatible AI clients.
Prerequisites
- Go 1.18+ installed (for building from source)
- A running WeChat client instance accessible on the local network
- Configured robot code (RobotCode) identifying the bot account
- WeChat client port number (WeChatClientPort) where the client HTTP API listens
- Basic familiarity with Go build tooling
Clone the repository
Clone the wechat-robot-mcp-server repository from GitHub to your local machine.
git clone https://github.com/hp0912/wechat-robot-mcp-server.git
cd wechat-robot-mcp-serverBuild the server binary
Compile the Go source into a production binary. For development you can use go run instead.
go build -o wechat-robot-mcp-server .
# or for development:
go run .Configure the robot code and client port
The server reads RobotCode and WeChatClientPort from its configuration. Set these values to match your WeChat client setup. The server constructs its endpoint as http://client_{RobotCode}:{WeChatClientPort}/api/v1/robot/message/send/longtext.
Register the server with your MCP client
Add the compiled binary to your Claude Desktop or Claude Code MCP configuration. Point the command to the built binary.
{
"mcpServers": {
"wechat-robot": {
"command": "/absolute/path/to/wechat-robot-mcp-server"
}
}
}Verify connectivity to the WeChat client
Ensure the WeChat client instance is running and the HTTP endpoint is reachable before sending messages through the MCP server.
curl http://client_<RobotCode>:<WeChatClientPort>/api/v1/robot/message/send/longtextWeChat Robot Examples
Client configuration
Example claude_desktop_config.json entry for the WeChat Robot MCP server using the compiled Go binary.
{
"mcpServers": {
"wechat-robot": {
"command": "/Users/yourname/wechat-robot-mcp-server/wechat-robot-mcp-server"
}
}
}Prompts to try
After connecting, use prompts like these to automate WeChat messaging through the robot bot.
- "Send a long text message to my WeChat group saying: 'Meeting starts in 10 minutes'"
- "Use the WeChat robot to notify the team channel about today's deployment"
- "Send a formatted status update to the WeChat bot"Troubleshooting WeChat Robot
Server fails to connect to the WeChat client endpoint
Verify the WeChat client is running and the RobotCode and WeChatClientPort values are correct. The server constructs the URL as http://client_{RobotCode}:{WeChatClientPort}/api/v1/robot/message/send/longtext — confirm this endpoint responds before starting the MCP server.
go build fails with missing dependencies
Run 'go mod tidy' in the repository root to resolve and download all Go module dependencies, then retry the build.
MCP client cannot find the binary
Use the absolute path to the compiled binary in the MCP configuration, not a relative path. Run 'pwd' in the build directory to get the full path.
Frequently Asked Questions about WeChat Robot
What is WeChat Robot?
WeChat Robot is a Model Context Protocol (MCP) server that 微信机器人mcp服务端 It connects AI assistants to external tools and data sources through a standardized interface.
How do I install WeChat Robot?
Follow the installation instructions on the WeChat Robot GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.
Which AI clients work with WeChat Robot?
WeChat Robot works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.
Is WeChat Robot free to use?
Yes, WeChat Robot is open source and available under the MIT license. You can use it freely in both personal and commercial projects.
WeChat Robot Alternatives — Similar Communication Servers
Looking for alternatives to WeChat Robot? Here are other popular communication servers you can use with Claude, Cursor, and VS Code.
Slack
★ 86.1kEnables interaction with Slack workspaces through comprehensive channel management, messaging, user management, file uploads, and Block Kit formatting. Features secure credential storage via macOS Keychain and supports all major Slack operations incl
LibreChat
★ 37.3kEnhanced ChatGPT Clone: Features Agents, MCP, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenA
Note Gen
★ 11.9kA cross-platform Markdown AI note-taking software.
DeepChat
★ 5.8k🐬DeepChat - A smart assistant that connects powerful AI to your personal world
WhatsApp MCP
★ 5.7kConnects AI assistants to the official Meta WhatsApp Cloud API for managing conversations and sending various message types through natural language. It provides tools for media management, template messages, and real-time webhook processing without
Apple
★ 3.1kEnables interaction with Apple apps like Messages, Notes, and Contacts through the MCP protocol to send messages, search, and open app content using natural language.
Browse More Communication MCP Servers
Explore all communication servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.
Set Up WeChat Robot in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
Ready to use WeChat Robot?
Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.