Get the FREE Ultimate OpenClaw Setup Guide →

wechat-robot

微信机器人MCP服务端

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio hp0912-wechat-robot-mcp-server go run .

How to use

This MCP server is the WeChat robot MCP server. It is started with a Go runtime and exposes an HTTP-based robot interface that can send messages to a WeChat client. The README shows how to start the service using the typical Go workflow, and it provides an example of how to send a long text message to a WeChat client by posting to the client endpoint in the form: Post("http://client_<robot-code>:<port>/api/v1/robot/message/send/longtext"). The prefix client_ before the host indicates the conventional naming expected for the WeChat client endpoint in this setup. Once running, you can interact with the robot through the defined HTTP API to deliver messages to connected WeChat clients.

How to install

Prerequisites:

Install and run:

  1. Ensure you have Go installed and your GOPATH set up.
  2. Download or clone the MCP server repository containing wechat-robot-mcp-server.
  3. Navigate to the project directory in your terminal.
  4. To run the server in development mode: go run .
  5. To build a standalone binary: go build .
  6. Run the generated binary if you built it, for example: ./wechat-robot-mcp-server

Note: The README snippet shows the standard Go workflow (go run .) to start the server and go build . to compile a binary. Ensure any required environment variables or configuration are provided as needed by your deployment environment.

Additional notes

Tips and notes:

  • The example endpoint suggests the server interacts with a WeChat client via a REST API at an endpoint like /api/v1/robot/message/send/longtext.
  • The exact environment variables, ports, and client addressing depend on your deployment environment and network setup. If the server requires specific configuration, set them via environment variables or configuration files as per the project setup.
  • When deploying in production, consider sandboxing, proper authentication, and secure communication (HTTPS) for the HTTP API endpoints.
  • If you encounter issues starting the server, verify that you have Go installed and that you are running the server from the repository root where the main package is defined.

Related MCP Servers

Sponsor this space

Reach thousands of developers