Skip to content
watertian avatar

Wechat Devtools Mcp

watertian/wechat-devtools-mcp

Dev-automation MCP for WeChat DevTools: compile, preview, screenshot, and CDP logs for mini-programs.

CCM score
83 of 100
GitHub stars
172
tools
7
auth
Required
transport
STDIO
env vars
6
last updated
Dec 1, 2026
View on GitHub

Own this MCP server? Claim it

What it does

  • Runs build and automation through wechat_build, wechat_automator, and wechat_ide, covering compile, preview, upload, tap, input, and storage calls
  • Captures long-page screenshots with wechat_screenshot and CDP logs with wechat_inspector and wechat_navigate; reads project files via wechat_file
  • Requires WeChat DevTools 2.x or 1.06.x with its service port enabled, plus a companion skill installed alongside the server
  • Designed for mini-program developers who want an AI assistant to compile, preview, and debug inside the editor

Tools

7 tools

Public tool metadata for what this MCP can expose to an agent.

wechat_ideIDE 生命周期与环境诊断

IDE 生命周期与环境诊断

No parameter schema in public metadata yet.

wechat_build构建与发布

构建与发布

No parameter schema in public metadata yet.

wechat_automator自动化交互与运行时查询

自动化交互与运行时查询

No parameter schema in public metadata yet.

wechat_inspector运行时日志采集

运行时日志采集

No parameter schema in public metadata yet.

wechat_screenshot长图拼接截图

长图拼接截图

No parameter schema in public metadata yet.

wechat_navigate跳转并采集 CDP 日志

跳转并采集 CDP 日志

No parameter schema in public metadata yet.

wechat_file项目文件读取

项目文件读取

No parameter schema in public metadata yet.

Configuration

WECHAT_DEVTOOLS_CLI*

微信开发者工具 CLI 路径。Windows: C:\Program Files (x86)\Tencent\微信web开发者工具\cli.bat;macOS: /Applications/wechatwebdevtools.app/Contents/MacOS/cli

WECHAT_PROJECT_PATH*

默认小程序项目绝对路径,例如 D:\Projects\MyMiniApp

WECHAT_CLI_TIMEOUTdefault: 30

CLI 命令超时时间(秒)

NODE_PATHdefault: node

Node.js 可执行文件路径

WECHAT_CDP_PORTdefault: 9222

CDP 调试端口默认值;9222 被 Chrome 占用时设为 9333

WECHAT_AUTOMATOR_READY_TIMEOUTdefault: 45

automator start 等待首次应答的秒数

Readme

微信开发者工具 MCP Server (v0.9.22)

PyPI version MCP Registry License: MIT English

wechat-devtools-mcp:让编辑器里的 AI 直接编译、预览、调试、自动化测试小程序

把微信开发者工具封装为 MCP 服务,让编辑器里的 AI 直接完成小程序的编译、预览、调试、自动化测试闭环。Windows / macOS,已上架官方 MCP Registry。

[!IMPORTANT] 「瘦 MCP + 胖 Skill」:MCP Server 只提供 7 个聚合工具,操作流程与最佳实践都在配套的 wechat-devtools Skill 里。两者必须一起装。


🤝 与官方能力的关系

微信开发者工具 2.x 自 2026-08-18 起为官方 Stable(1.06 已下架),IDE 内建 MCP Server(49 个原子工具,其中 2 个已废弃;Stable 2.02.2609250 内置 skill 0.3.11)。两者互补,不是替代:


View the full README on GitHub

Details

Repository
github.com/watertian/wechat-devtools-mcp
Categories
Mobile Apps, Developer Tools
Package
wechat-devtools-mcp
Transport
STDIO
Auth
Required
Registry
MCP registry, active

Questions

What can an AI agent do with the wechat-devtools-mcp server?

It lets an agent drive WeChat DevTools to compile, preview, debug and run automated tests on WeChat mini programs. The server exposes seven aggregated tools covering IDE lifecycle, build and release, automation, runtime log capture, long-image screenshots, navigation with CDP logs, and project file reading.

How do I install the wechat-devtools-mcp server?

Install it with uv using the command uv tool install wechat-devtools-mcp, then enable the service port in WeChat DevTools under settings and security. Set the WECHAT_DEVTOOLS_CLI and WECHAT_PROJECT_PATH environment variables before connecting it to your agent.

What environment variables does wechat-devtools-mcp need?

WECHAT_DEVTOOLS_CLI and WECHAT_PROJECT_PATH are required. WECHAT_CLI_TIMEOUT, NODE_PATH, WECHAT_CDP_PORT and WECHAT_AUTOMATOR_READY_TIMEOUT are optional and have defaults.

Where does wechat-devtools-mcp rank among mobile app MCP servers?

It is in the Mobile Apps category and ranks in the top 25 on that category page. Other servers listed alongside it in the category include Mobile Mcp, Xcodebuildmcp and iOS Simulator.

Similar to Wechat Devtools Mcp

More Mobile Apps