← Back to wxauto MCP Server

Install wxauto MCP Server

Pick your client, copy the command, done.

1

Add it to Claude Code

claude mcp add -e "WECHAT_LICENSE_KEY=${WECHAT_LICENSE_KEY}" wxauto-mcp -- wxauto-mcp
Required:WECHAT_LICENSE_KEY

Environment Variables

Set these before running wxauto MCP Server.

VariableDescriptionRequired
WECHAT_LICENSE_KEYLicense key required for wxautox4 activation.Yes

Available Tools (6)

Once configured, wxauto MCP Server gives your AI agent access to:

wechat_initializeInitialize the WeChat connection.
send_messageSend a text message to a contact or group.
tomessage
get_messagesRetrieve current chat messages.
get_friendsRetrieve the list of WeChat friends.
send_filesSend files to a contact.
tofile_path
get_sessionsRetrieve the list of active chat sessions.

Try It Out

After setup, try these prompts with your AI agent:

Check my WeChat for any unread messages and summarize them.
Send a message to my colleague saying the project report is ready.
Get my friend list and find the contact information for 'John Doe'.
Send the file located at C:\reports\summary.pdf to the 'Team Lead' chat session.
Prerequisites & system requirements
  • An MCP-compatible client (Claude Code, Cursor, Windsurf, Claude Desktop, or Codex)
  • Python 3.8+ with pip installed
  • WECHAT_LICENSE_KEY — License key required for wxautox4 activation.
Alternative installation methods

Automatic

wxauto-mcp --install

Keep this setup from going cold

Save the docs, env vars, and workflow around wxauto MCP Server in Conare so Claude Code, Codex, and Cursor remember it next time.

Remember this setup