← Back to directory
微

微信小程序逆向 MCP

Community
Analyze WeChat Mini Program APIs and generate standalone local signing scripts.
Category
Dev Tools #498 of 751
Stars
★ 330 Popular
Transport
stdio (local process)
Runtime
Node.js 18+
Credentials
No credential needed
License
Apache-2.0
Last commit
Tools
12
47FMRS · D

The README describes a workflow from local Mini Program package analysis and request capture to offline signing-script export, and lists 12 tools plus Node.js, mitmproxy, and cache-access requirements. The server path is the repository root; no separate manifest was provided.

Strongest · Setup experience 12/20 Weakest · Security and permissions 6/20

Reliability
8/20
Security and permissions
6/20
Maintenance
9/20
Documentation
12/20
Setup experience
12/20
Why each score
Reliability 8/20
The README lists 12 tools, dependencies, and an expected workflow, and identifies mitmproxy as an extra dependency for capture. However, there is no manifest, CI, committed test evidence, or verifiable server startup and tool-list handshake. The complex unpacking, proxy, signing analysis, and sandbox paths also lack verifiable error-handling evidence, so this static review deducts conservatively.
Security and permissions 6/20
The README says the server reads package files from disk, passively captures proxy traffic, and runs extracted code in a Node sandbox; it also limits use to owned or authorized mini programs. But the workflow involves local WeChat caches, HTTPS traffic, and signature reproduction. The documentation does not specify data retention and boundaries, proxy and certificate security details, or confirmation for sensitive operations. The supplied material does not establish a red-line issue, so no red-line score is applied.
Maintenance 9/20
The repository description lists an Apache-2.0 license, the README records several version updates, and it provides a feedback contact; the description also reports one open issue. There is no commit history, release dating, dependency update evidence, security response process, or verifiable maintainer information, so evidence of sustained maintenance is limited.
Documentation 12/20
The README includes a feature overview, tool list, workflow, installation and client configuration examples, a sample invocation, platform notes, and some troubleshooting guidance. Deductions reflect the missing manifest, limited detail on parameter schemas, permissions, and data handling, and insufficient verifiable runtime evidence or documented limitations; the stated capabilities cannot be confirmed from these static materials.
Setup experience 12/20
The documentation gives clone, dependency installation, and build steps, Cursor and Claude Code configuration examples, a Node.js version requirement, and an optional capture dependency. Setup still requires a local path and, for capture, a separate mitmproxy installation plus user-configured proxy and certificates. There is no verifiable CI or key-path test evidence, so the static setup score remains below the maximum.

Static review · not runReviewed 2026-11-29

Read the FMRS scoring method →

Fit and risk

What it can accessReads local filesWrites / deletes local filesRuns commands or codeUses the network

Best for

  • Developers and security researchers working on Mini Programs they own or are authorized to assess.
  • Users who can access the local WeChat Mini Program cache and have Node.js available.
  • Workflows that reproduce authorized API signing logic in a local script.

Not for

  • Unauthorized access to Mini Programs, bypassing another party's security, or violating service terms.
  • Users seeking cloud-hosted or remote analysis.
  • Scenarios that require injecting into or debugging the WeChat process.

Required permissions

  • Needs to read wxapkg files in the local WeChat cache; macOS may require Full Disk Access for the program running the MCP, or use of a cache copy.
  • Packet capture requires local mitmproxy installation and user-configured proxy and certificates.
  • Requires a local Node.js runtime; the README specifies Node.js 18 or later.

Risks and side effects

  • Unpacking, signature analysis, and sandbox results depend on the package and samples; the README does not guarantee recovery for every obfuscated or runtime-encrypted case.
  • Proxy capture requires HTTPS proxy and certificate configuration; a misconfiguration may affect local network requests.
  • Analyze only Mini Programs you own or are authorized to assess, and follow applicable service terms.

Setup

Before you start

Runtime:Node.js 18+

Other optional settings (1)
WXAPKG_ROOT optional Optional; sets the wxapkg cache directory. A cache copy in the project's wxapkg-cache/ directory can also be discovered automatically.

Clone the repository, then run npm install and npm run build in the project directory. Configure the client to run node with args pointing to the absolute path of dist/index.js. Packet capture additionally requires mitmproxy; users configure proxy access and certificates for their environment. On macOS, if the WeChat cache is inaccessible, grant Full Disk Access to the program running the MCP or copy the package directory to a discoverable location such as wxapkg-cache; WXAPKG_ROOT can also specify a directory.

.cursor/mcp.json
{"mcpServers":{"wx-mp-mcp":{"command":"node","args":["/绝对路径/wx-mp-mcp/dist/index.js"]}}}

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

.vscode/mcp.json
{
  "servers": {
    "wx-mp-mcp": {
      "command": "node",
      "args": [
        "/绝对路径/wx-mp-mcp/dist/index.js"
      ]
    }
  }
}

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

~/.codex/config.toml
[mcp_servers.wx-mp-mcp]
command = "node"
args = ["/绝对路径/wx-mp-mcp/dist/index.js"]

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

Terminal
claude mcp add wx-mp-mcp -- node '/绝对路径/wx-mp-mcp/dist/index.js'

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

Check that it works

Confirm that wx-mp-mcp tools, such as mp_list_apps, appear in your client's MCP tool list. Calling the tool should return the mini programs cached locally by WeChat.

Troubleshooting

  1. If the cache is empty or packages cannot be found, check the cache path for the installed WeChat version and macOS TCC permissions; copy the wxapkg directory or set WXAPKG_ROOT.
  2. On Windows, check the cache path for either newer xwechat or older WeChat Files installations.
  3. If capture tools fail, confirm mitmproxy is installed and proxy and certificate settings match the capture environment.
  4. Check that Node.js is version 18 or later, dependencies are installed, and the build produced dist/index.js.

Things to try

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

  • List the WeChat mini programs cached on this computer.
  • Analyze a cached mini program, locate its signing algorithm, and generate reproduction code.
  • Import an existing HAR capture and try to crack its signature.
  • List the modules in a mini program bundle and export a standalone signing script.

Tools 12

mp_list_apps read-only
List Mini Programs in the local WeChat cache, including appid, version, and package count.
mp_decrypt writes
Decrypt and extract one wxapkg, finding the latest cached package by appid or using a supplied file path.
mp_analyze writes
Unpack a Mini Program and analyze signatures, encryption, and APIs, producing reproduction code and a report.
mp_analyze_all writes
Analyze all Mini Programs found in the local cache.
mp_capture_start writes
Start mitmproxy capture and save requests as structured JSONL, with optional URL filtering.
mp_capture_list read-only
View captured requests and identify fields such as sign and token.
mp_capture_stop writes
Stop capture and return the output file path and request count.
mp_capture_import writes
Import HAR, cURL, JSON request bodies, or JSONL captures and normalize them to JSONL.
Show 4 more tools
mp_sign_crack read-only
Try to infer a signing formula from request samples by enumerating parameter subsets and listed algorithms, and generate reproduction code; it can also consume candidate information from an analysis report.
mp_sandbox_modules read-only
List bundle modules to help locate the signing SDK module.
mp_sandbox_run read-only
Load app-service.js in an offline Node.js sandbox and execute JavaScript.
mp_sandbox_export writes
Extract required modules and export a standalone .mjs signing script.

Use cases

Analyze API signatures and encrypted parameters for a Mini Program you own or are authorized to assess.
Unpack a locally cached Mini Program and extract APIs and an analysis report.
Import existing capture samples or passively capture requests through mitmproxy.
Validate signing functions in an offline sandbox and export a standalone Node.js script.

Supported clients

Cursor
Claude Code
CodexPartial support

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

Overview

WeChat Mini Program Reverse Engineering MCP is an MCP server for AI coding tools. It decrypts and analyzes Mini Program packages, captures or imports HTTPS request samples, analyzes signatures, and exports code from an offline sandbox. The project says it reads encrypted packages from disk, passively captures traffic through a proxy, and runs unpacked code copies in a Node.js sandbox; it does not attach to the WeChat process, modify its memory, or open a debug port.

Similar servers

Source revision ab627d334f5b 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/wx-mp-mcp.svg)](https://followmcp.com/en/servers/wx-mp-mcp)