explaingit

whitenightshadow/wx-mp-mcp

Analysis updated 2026-05-18

59JavaScriptAudience · developerComplexity · 5/5Setup · moderate

TLDR

An AI-assisted reverse engineering tool for authorized WeChat mini-programs that decrypts packages, captures traffic, and recreates API signature logic as a standalone script.

Mindmap

mindmap
  root((wx-mp-mcp))
    What it does
      Unpacks packages
      Captures traffic
      Cracks signatures
    Tech stack
      JavaScript
      Node.js
      MCP
    Use cases
      Authorized security analysis
      API reproduction
    Audience
      Developers
      Security researchers

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Reverse engineer the API signature algorithm of your own authorized WeChat mini-program.

USE CASE 2

Capture and inspect a mini-program's network requests for security analysis.

USE CASE 3

Reproduce a mini-program's API signing logic in a standalone Node.js script.

USE CASE 4

Integrate with a mini-program's backend API outside of WeChat for authorized testing.

What is it built with?

JavaScriptNode.jsMCPmitmproxy

How does it compare?

whitenightshadow/wx-mp-mcpandrewrk/mcserveangais/fable5-mc
Stars595959
LanguageJavaScriptJavaScriptJavaScript
Last pushed2013-04-10
MaintenanceDormant
Setup difficultymoderatemoderateeasy
Complexity5/53/52/5
Audiencedeveloperops devopsdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Traffic capture requires installing mitmproxy separately and configuring a phone's WiFi proxy.

In plain English

wx-mp-mcp is a tool that plugs into AI coding assistants like Claude Code or Cursor through the Model Context Protocol, and automates the process of reverse engineering WeChat mini-programs. A mini-program is a small app that runs inside the WeChat messaging app. The README states clearly that this is meant only for security analysis of a person's own or explicitly authorized mini-programs, not for unauthorized access or bypassing someone else's security. The tool works in three stages. First it reads the encrypted mini-program package files already stored on a computer's disk and decrypts them into readable source code, without needing WeChat to be running or touching its process in memory. Second, it can capture the mini-program's real network requests using a proxy tool called mitmproxy, saving each request along with its signature parameters. Third, an AI reads the decrypted source code to locate the signing or encryption algorithm, works out the exact formula through analysis or by running the code in an isolated sandbox, and produces a small standalone script that can reproduce that signature outside of WeChat entirely. The project ships as twelve tools grouped into unpacking and analysis, traffic capture, signature cracking, and an offline code sandbox for running extracted modules safely. Most mini-programs without extra obfuscation can be handled by a single one-step analysis command, more heavily protected ones need the additional capture and cracking steps. The README stresses that the tool avoids attaching to or modifying the live WeChat application, since injecting into a running WeChat process carries a risk of the user's account being flagged or banned, which is the exact approach this project avoids. It works on both macOS and Windows and requires Node.js.

Copy-paste prompts

Prompt 1
Explain how the mp_analyze tool locates a mini-program's signature algorithm.
Prompt 2
Walk me through setting up mitmproxy to capture traffic for this tool.
Prompt 3
How does the offline sandbox safely run extracted mini-program modules?
Prompt 4
What steps does this project avoid to keep from tripping WeChat's anti-cheat detection?

Frequently asked questions

What is wx-mp-mcp?

An AI-assisted reverse engineering tool for authorized WeChat mini-programs that decrypts packages, captures traffic, and recreates API signature logic as a standalone script.

What language is wx-mp-mcp written in?

Mainly JavaScript. The stack also includes JavaScript, Node.js, MCP.

How hard is wx-mp-mcp to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is wx-mp-mcp for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.