WeChat Robot

v1.0.0Communicationstable

微信机器人MCP服务端

wechat-robotmcpai-integration
Share:
11
Stars
0
Downloads
0
Weekly
0/5

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

Automate WeChat messaging and bot interactions.
hp0912

Maintainer

LicenseMIT
Languagego
Versionv1.0.0
UpdatedMay 11, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx wechat-robot

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

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
1

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-server
2

Build 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 .
3

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.

4

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"
    }
  }
}
5

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/longtext

WeChat 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.

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.

Quick Config Preview

{ "mcpServers": { "wechat-robot": { "command": "npx", "args": ["-y", "wechat-robot"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

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.

33,000+ ServersFree & Open SourceStep-by-Step Guides