Skip to content
appsgit

Wechat Devtools MCP

Wechat Devtools MCP is an MCP server that adds tools to AI assistants such as Claude Desktop, Claude Code and Cursor. MCP Server for WeChat DevTools CLI - Automate development & testing with 7 aggregated APIs. It has 150 GitHub stars, is released under the MIT license and runs locally with uvx wechat-devtools-mcp.

github.com/WaterTian/wechat-devtools-mcp (opens in a new tab)

Install Wechat Devtools MCP

Generated from the server's MCP registry entry. Replace your-value with your own values.

Claude Desktop

claude_desktop_config.json
{
  "mcpServers": {
    "wechat-devtools-mcp": {
      "command": "uvx",
      "args": [
        "wechat-devtools-mcp"
      ],
      "env": {
        "WECHAT_DEVTOOLS_CLI": "your-value",
        "WECHAT_PROJECT_PATH": "your-value"
      }
    }
  }
}

Settings > Developer > Edit Config. macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\. Restart Claude Desktop afterwards.

Claude Code

claude mcp add --env WECHAT_DEVTOOLS_CLI=your-value --env WECHAT_PROJECT_PATH=your-value --transport stdio wechat-devtools-mcp -- uvx wechat-devtools-mcp

Cursor

.cursor/mcp.json
{
  "mcpServers": {
    "wechat-devtools-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "wechat-devtools-mcp"
      ],
      "env": {
        "WECHAT_DEVTOOLS_CLI": "your-value",
        "WECHAT_PROJECT_PATH": "your-value"
      }
    }
  }
}

Project file; use ~/.cursor/mcp.json to enable it in every project.

VS Code

.vscode/mcp.json
{
  "servers": {
    "wechat-devtools-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "wechat-devtools-mcp"
      ],
      "env": {
        "WECHAT_DEVTOOLS_CLI": "your-value",
        "WECHAT_PROJECT_PATH": "your-value"
      }
    }
  }
}

Config formats checked against the official docs on Oct 7, 2026: modelcontextprotocol.io (opens in a new tab), code.claude.com (opens in a new tab), cursor.com (opens in a new tab), code.visualstudio.com (opens in a new tab).

Environment variables

Variables the server reads at startup.

NameRequiredDescription
WECHAT_DEVTOOLS_CLIYes微信开发者工具 CLI 路径。Windows: C:\Program Files (x86)\Tencent\微信web开发者工具\cli.bat;macOS: /Applications/wechatwebdevtools.app/Contents/MacOS/cli
WECHAT_PROJECT_PATHYes默认小程序项目绝对路径,例如 D:\Projects\MyMiniApp
WECHAT_CLI_TIMEOUTNoCLI 命令超时时间(秒)
NODE_PATHNoNode.js 可执行文件路径

About Wechat Devtools MCP

把微信开发者工具封装为 MCP 服务,让编辑器里的 AI 直接完成小程序的编译、预览、调试、自动化测试闭环。Windows / macOS,已上架官方 MCP Registry。 微信开发者工具 2.x 自 2026-08-18 起为官方 Stable(1.06 已下架),IDE 内建 MCP Server(47 个原子工具)。两者互补,不是替代:

FAQ

Wechat Devtools MCP FAQ

Still curious? Email info@appsgit.com.

What is Wechat Devtools MCP?

Wechat Devtools MCP is an MCP server that adds tools to AI assistants such as Claude Desktop, Claude Code and Cursor. MCP Server for WeChat DevTools CLI - Automate development & testing with 7 aggregated APIs. It has 150 GitHub stars, is released under the MIT license and runs locally with uvx wechat-devtools-mcp. The source code is at github.com/WaterTian/wechat-devtools-mcp.

How do I install the Wechat Devtools MCP MCP server?

Add the command uvx wechat-devtools-mcp to your MCP client: put it in claude_desktop_config.json for Claude Desktop, run claude mcp add for Claude Code, or add it to .cursor/mcp.json (Cursor) or .vscode/mcp.json (VS Code). The snippets on this page are ready to paste.

Is Wechat Devtools MCP free?

The server is open source under the MIT license, so running it is free. It does not declare any required API key.

Is Wechat Devtools MCP actively maintained?

The most recent commit was on Sep 4, 2026. The latest release is v0.9.18, published Sep 4, 2026. appsgit only lists MCP servers with a commit in the last six months and re-checks every server daily.