# WeChat DevTools MCP Server

> Compile, preview, debug, and test WeChat Mini Programs from an editor AI.

- **URL**: https://followmcp.com/en/servers/wechat-devtools-mcp
- **Category**: Dev Tools
- **Origin**: Community
- **Stars**: 173
- **FMRS Score**: 54/100 (Grade D)
- **Source**: https://github.com/WaterTian/wechat-devtools-mcp
- **Transports**: stdio (local process)
- **Runtimes**: Node.js 18+, Python 3.10+
- **Auth**: No credential needed

## 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.

## 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
- 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.

## Client config (JSON)
```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"
      }
    }
  }
}
```

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