wxapkg-mcp
Provides tools for inspecting, decrypting, and extracting WeChat Mini Program packages (.wxapkg files).
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@wxapkg-mcp List my WeChat Mini Program apps."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
wxapkg-mcp
Small MCP server for local .wxapkg inspection, decryption, and extraction.
This project was generated entirely by AI.
Use only on packages you own or are authorized to analyze. Do not commit or redistribute third-party Mini Program packages or extracted source code.
By default on Windows, the tool searches:
%APPDATA%\Tencent\xwechat\radium\users\*\applet\packagesThat keeps user-specific IDs such as 8e7b2... out of the code and lets each teammate run it on their own machine.
Install
cd $env:USERPROFILE\Desktop\wxapkg-mcp
python -m venv .venv
.\.venv\Scripts\python -m pip install -e .Related MCP server: wechat-miniapp-engineering-mcp
Project Layout
wxapkg-mcp/
|-- README.md
|-- pyproject.toml
|-- setup.py
|-- requirements.txt
|-- src/
| `-- wxapkg_mcp/
| |-- __init__.py
| |-- main.py
| |-- server.py
| |-- cli.py
| `-- core.py
|-- tests/
| `-- test_core.py
`-- .gitignoreCLI
.\.venv\Scripts\wxapkg-tool roots
.\.venv\Scripts\wxapkg-tool apps
.\.venv\Scripts\wxapkg-tool appid wx87ceadd15865a6fb "C:\out\wx87ceadd15865a6fb"
.\.venv\Scripts\wxapkg-tool inspect "C:\path\to\__APP__.wxapkg"
.\.venv\Scripts\wxapkg-tool decrypt "C:\path\to\__APP__.wxapkg" "C:\out\__APP__.wxapkg" --appid wx...
.\.venv\Scripts\wxapkg-tool extract "C:\out\__APP__.wxapkg" "C:\out\extracted"
.\.venv\Scripts\wxapkg-tool batch "C:\path\to\packages\wx...\13" "C:\out" --appid wx...MCP config
After installation, add this to your MCP client configuration:
{
"mcpServers": {
"wxapkg": {
"command": "wxapkg-mcp"
}
}
}Note: This assumes you have already run pip install -e . to install the package and make the command available.
Alternative: Using Python module directly
If you prefer to run it as a Python module without installing:
{
"mcpServers": {
"wxapkg": {
"command": "python",
"args": ["-m", "wxapkg_mcp.server"]
}
}
}Exposed tools:
find_wechat_package_rootslist_wechat_appsinspect_wxapkgdecrypt_wxapkgextract_wxapkgdecrypt_and_extract_dirdecrypt_and_extract_appid
For most agent workflows, call list_wechat_apps first, then decrypt_and_extract_appid with the chosen AppID. The server chooses the latest local version by default; pass version only when you need a specific version.
Available Tools
7 toolsdecrypt_and_extract_appidB
Find an AppID locally, choose the latest version by default, then decrypt and extract it.
Inputs: appid (required), output_dir (required), version, package_root. Returns: object
decrypt_and_extract_dirB
Decrypt and extract every .wxapkg file in a package version directory.
Inputs: base_path (required), output_dir (required), appid. Returns: result
decrypt_wxapkgC
Decrypt a local V1MMWX wxapkg file. AppID can be derived from wx... paths.
Inputs: input_path (required), output_path (required), appid. Returns: object
extract_wxapkgC
Extract a decrypted wxapkg file into output_dir.
Inputs: output_dir (required), wxapkg_path (required). Returns: object
find_wechat_package_rootsB
Find local WeChat Mini Program package roots for the current Windows user.
Inputs: search_roots. Returns: result
inspect_wxapkgC
Inspect a local wxapkg file and report whether it is encrypted or extractable.
Inputs: path (required). Returns: object
list_wechat_appsC
List discovered AppIDs and their latest local package versions.
Inputs: package_root. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Tools have distinct purposes, though 'decrypt_and_extract_appid' and 'decrypt_and_extract_dir' both combine decrypt and extract, potentially confusing an agent that only wants one step. Overall, the set is well-separated.
All tool names follow a consistent verb_noun pattern in snake_case, such as 'decrypt_wxapkg' and 'list_wechat_apps', making them predictable.
With 7 tools, the server is well-scoped for its domain—covering listing, inspection, decryption, and extraction without being overly numerous or sparse.
The tool set covers the full workflow for WeChat Mini Program packages: finding, listing, inspecting, decrypting, and extracting. No obvious gaps for the stated purpose.
Maintenance
Related MCP Connectors
MCP server for hex.pm and hexdocs.pm: search, inspect, compare, and audit Elixir packages
Publish and discover MCP servers via the official MCP Registry. Powered by HAPI MCP server.
MCP server for accessing curated awesome list documentation
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA Python MCP server that decompiles Android APK/XAPK/JAR/AAR files and extracts HTTP APIs used by the app.8Apache 2.0
- AlicenseBqualityCmaintenanceA Chinese-friendly, locally running MCP server for WeChat Mini Program engineering, helping developers break down ideas into actionable tasks, inspect projects, generate blueprints, and perform security scans.258 npm1MIT
- AlicenseNot gradedqualityDmaintenanceA WeChat Mini Program decompilation MCP server that enables scanning, decompiling, and analyzing local WeChat mini program packages through MCP clients like Cherry Studio.5GPL 3.0
- FlicenseCqualityDmaintenanceMCP server for reading local WeChat data, enabling AI assistants to query chat history, contacts, sessions, and more via MCP tools.209-