← Back to directory
W

WeChat DevTools MCP Server

Community
Compile, preview, debug, and test WeChat Mini Programs from an editor AI.
Category
Dev Tools #239 of 751
Stars
★ 173 Very popular
Transport
stdio (local process)
Runtime
Node.js 18+ · Python 3.10+
Credentials
No credential needed
License
MIT
Last commit
Tools
7
54FMRS · D

This MCP service targets WeChat Mini Program development and provides 7 aggregated tools for builds, publishing, automation, logs, screenshots, navigation, and file reading. It requires local WeChat DevTools, absolute paths for the CLI and project, the service port enabled, and the companion Skill installed as described in the README.

Strongest · Setup experience 13/20 Weakest · Security and permissions 8/20

Reliability
10/20
Security and permissions
8/20
Maintenance
11/20
Documentation
12/20
Setup experience
13/20
Why each score
Reliability 10/20
The README lists seven aggregated tools, dependencies, timeout settings, common failures, and recovery steps, making the manual connection path plausible. The supplied material contains no CI, committed test, or MCP handshake evidence, so actual tool behavior and edge cases cannot be verified; under static calibration the score stays at or below 12.
Security and permissions 8/20
The manifest declares local stdio transport and non-secret configuration variables. The README discloses capabilities including arbitrary page JavaScript, wx API calls, uploads, and cache cleaning, and says the DevTools service port must be enabled. The material does not show permission isolation, sensitive-data flows, or confirmation controls for risky actions, leaving scope and side-effect controls unclear. No red-line risk is evidenced in the supplied material.
Maintenance 11/20
The material identifies version 0.9.25 as released on 2026-11-30, an MIT license, and an unarchived repository, which supports recent maintenance and clear licensing. It provides no commit history, issue-response evidence, dependency update policy, or security response channel, limiting confidence in maintenance maturity.
Documentation 12/20
The README provides installation steps, Windows and macOS configuration examples, environment variables, a tool and action overview, upgrade guidance, and troubleshooting. It also says the companion Skill is required. Detailed parameters depend on documentation not included here, and costs, data boundaries, permissions, and confirmation behavior are not fully explained, so the docs are useful but incomplete.
Setup experience 13/20
The README gives uv installation, DevTools service-port setup, mainstream client configuration examples, required paths, and a status self-check, with Windows and macOS coverage. Setup still depends on installing local WeChat DevTools, Node.js, and uv, plus manually enabling the service port. No reproducible execution evidence is included, so the static setup score remains at or below 15.

Static review · not runReviewed 2026-12-02

Read the FMRS scoring method →

Fit and risk

What it can accessReads local filesWrites / deletes local filesRuns commands or codeControls a browser

Best for

  • Developers building Mini Programs with WeChat DevTools who want to run build or debugging tasks from an MCP-enabled editor.
  • Teams that need the task workflows and operating guidance provided by the companion Skill.

Not for

  • Users who do not use WeChat DevTools or develop WeChat Mini Programs.
  • Cloud function or cloud database operations; the README recommends CloudBase MCP for those.
  • Workflows where the companion Skill cannot be installed; the README describes the Skill and server as a required pair.

Required permissions

  • Needs access to the configured WeChat DevTools CLI and Mini Program project directory to perform tool actions and read project files.
  • Requires the DevTools service port to be enabled for CLI operations.
  • Automation and inspection features interact with the running Mini Program or read its runtime information.

Risks and side effects

  • Automation can click, enter input, modify page data, call page methods, mock wx APIs, and execute JavaScript in the Mini Program, which can affect the current project state.
  • Build and upload actions operate on the configured Mini Program project; confirm the project path and intended action before use.
  • The CDP port may be occupied by another browser, causing log collection failures or logs from another page.
  • The README says some clients do not automatically refresh an older version cached by uvx; after upgrading, restart the editor and update the Skill.

Setup

Before you start

Runtime:Node.js 18+ · Python 3.10+

WECHAT_DEVTOOLS_CLI required Absolute path to the WeChat DevTools CLI; documented install locations are provided for macOS and Windows.
WECHAT_PROJECT_PATH required Absolute path to the Mini Program project root.
Other optional settings (4)
WECHAT_CLI_TIMEOUT optional CLI command timeout in seconds; defaults to 30.
NODE_PATH optional Path to the Node.js executable; defaults to node.
WECHAT_CDP_PORT optional CDP debugging port; defaults to 9222, or set to 9333 if occupied.
WECHAT_AUTOMATOR_READY_TIMEOUT optional Seconds to wait for the automator's first response; defaults to 45.

Requires WeChat DevTools 2.x or 1.06.x, Node.js 18 or later, and uv. Install with uv tool install wechat-devtools-mcp, then enable the service port in DevTools settings. Configure the editor's MCP client to launch uvx wechat-devtools-mcp and set the absolute paths for WECHAT_DEVTOOLS_CLI and WECHAT_PROJECT_PATH. The README also requires the companion Skill: npx -y skills add WaterTian/wechat-devtools-mcp/.agents/skills/wechat-devtools.

.mcp.json
{
  "mcpServers": {
    "wechat-devtools-mcp": {
      "command": "uvx",
      "args": ["wechat-devtools-mcp"],
      "env": {
        "WECHAT_DEVTOOLS_CLI": "/Applications/wechatwebdevtools.app/Contents/MacOS/cli",
        "WECHAT_PROJECT_PATH": "/Users/you/Projects/mini-app"
      }
    }
  }
}

Shown for Claude Code. Other clients may use a different file or key (VS Code uses "servers") — the configurator below converts it.

.vscode/mcp.json
{
  "servers": {
    "wechat-devtools-mcp": {
      "command": "uvx",
      "args": [
        "wechat-devtools-mcp"
      ],
      "env": {
        "WECHAT_DEVTOOLS_CLI": "/Applications/wechatwebdevtools.app/Contents/MacOS/cli",
        "WECHAT_PROJECT_PATH": "/Users/you/Projects/mini-app"
      }
    }
  }
}

Goes in your project's .vscode/mcp.json (VS Code uses a "servers" key).

~/.codex/config.toml
[mcp_servers.wechat-devtools-mcp]
command = "uvx"
args = ["wechat-devtools-mcp"]

[mcp_servers.wechat-devtools-mcp.env]
WECHAT_DEVTOOLS_CLI = "/Applications/wechatwebdevtools.app/Contents/MacOS/cli"
WECHAT_PROJECT_PATH = "/Users/you/Projects/mini-app"

Append to ~/.codex/config.toml (OpenAI Codex CLI uses TOML).

Terminal
claude mcp add wechat-devtools-mcp -e WECHAT_DEVTOOLS_CLI=/Applications/wechatwebdevtools.app/Contents/MacOS/cli -e WECHAT_PROJECT_PATH=/Users/you/Projects/mini-app -- uvx wechat-devtools-mcp

Run it in a terminal; replace any <…> placeholders with your own values first.

Check that it works

Confirm the client lists the seven wechat tools, then call wechat_ide with the status action and check the CLI, project, Node.js, and service port status.

Troubleshooting

  1. For CLI_TIMEOUT errors, check that the DevTools service port is enabled.
  2. Verify that `WECHAT_DEVTOOLS_CLI` and `WECHAT_PROJECT_PATH` are valid absolute paths.
  3. Check that Node.js 18 or later is available.
  4. If another browser occupies the CDP port, set `WECHAT_CDP_PORT` to `9333`.
  5. Check that the server and Skill versions match; after upgrading, restart the editor and reinstall the Skill.
  6. If a macOS desktop editor cannot find uvx or node, the README suggests using absolute paths and setting PATH in the configuration.

Things to try

Once connected, you can ask your AI assistant things like:

  • Open the Mini Program project and check the DevTools status.
  • Compile the current Mini Program and generate a preview QR code.
  • Open the Mini Program, tap the login button, and inspect the page data.
  • Capture a full-page screenshot of the current page.

Tools 7

wechat_ide writes
Manage the DevTools lifecycle and diagnose the environment.
wechat_build writes
Compile, preview, upload, build npm, and clean the cache.
wechat_automator writes
Automate interactions, inspect runtime data, call page methods, and mock wx APIs.
wechat_inspector read-only
Collect Console and CDP runtime logs.
wechat_screenshot read-only
Scroll and stitch full-page screenshots.
wechat_navigate writes
Navigate to a page and collect CDP logs.
wechat_file read-only
Read project information, page lists, and project files.

Use cases

Compile, preview, upload, and build npm for a WeChat Mini Program from an editor.
Automate taps and input, read or write page data, call page methods, or mock wx APIs.
Collect runtime logs, navigate between pages, and capture stitched full-page screenshots.
Read project pages and files to support development and troubleshooting.

Supported clients

Claude Code
Claude Desktop
Cursor
VS Code
Codex
Antigravity
Kiro
Trae

Listed from the project's documentation, not tested by this site.

Overview

WeChat DevTools MCP Server wraps the WeChat DevTools CLI as an MCP service with 7 aggregated tools for Mini Program builds, publishing, automated interaction, runtime logs, full-page screenshots, navigation, and project file reading. The project also provides a companion Skill with task workflows and operating guidance; the README says to install it alongside the server. Windows and macOS are supported.

Similar servers

Source revision d611a6e3f1c4 Data synced 2026-12-05 Read the FMRS scoring method Markdown

Maintainer badge: embed FMRS score

Paste this Markdown into your repository README to display a live score badge:

README.md
[![FollowMCP](https://followmcp.com/badges/wechat-devtools-mcp.svg)](https://followmcp.com/en/servers/wechat-devtools-mcp)