MCP tools for pyobfus β the Python obfuscator for AI-assisted development.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
pyobfus (pronounced as "Python obfuscator") is a modern, AST-based python-obfuscator / code-obfuscator for developers who need to obfuscate before shipping while keeping failures diagnosable. Framework-aware presets, reverse stack-trace mapping, and a machine-readable JSON CLI let Claude Code, Cursor, GitHub Copilot, Codex, CodeBuddy, and any MCP-compatible AI agent help debug obfuscated stack traces. A transparent, open-source alternative to PyArmor.
A Python code obfuscator built with AST-based transformations. Supports Python 3.9 through 3.14. Provides reliable name mangling, string encoding, control-flow flattening, AES-256 string encryption, and β unique to pyobfus β a reverse-mapping workflow that lets you (or your AI coding assistant) debug obfuscated stack traces without giving up the protection.
π Pro Edition available β 6 patent-targeted protection mechanisms (Selective Opacity, forensic watermarking, Runtime String Vault, and more) layered on top of the free AST obfuscator, $45 one-time, no subscription. See Pro Edition below.
π What's new in v0.5.22 β
pyobfus --checknow emits a Python 3.14 remote-debug hardening advisory when a build both requests anti-debug protection and targets Python 3.14+: PEP 768 remote debugging can only be disabled at interpreter startup (-X disable_remote_debug/PYTHON_DISABLE_REMOTE_DEBUG=1), and the obfuscator's runtime anti-debug heuristics cannot switch it off. Informational only β detection, severity and exit codes are unchanged.
π Starring this repo doesn't notify you about new releases β GitHub only sends release notifications to people who explicitly Watch it. Click Watch β Custom β Releases (top of this page) to get a heads-up the moment a new version ships, without the noise of every commit/issue.
pyobfus-mcpThis repository ships two installable packages:
| Package | What it is | Install |
|---|---|---|
pyobfus | The Python obfuscator (CLI + library). | pip install pyobfus |
pyobfus-mcp | A Model Context Protocol (MCP) server that exposes pyobfus's tools to AI coding agents. | uvx pyobfus-mcp (zero-install) or pip install pyobfus-mcp |
The MCP server lives in pyobfus_mcp/ and is built on the official Model Context Protocol Python SDK (FastMCP). It registers eight MCP tools so Claude Desktop, Claude Code, Cursor, Windsurf, Zed, and Codex can call pyobfus directly from agent conversations β no shelling out:
| MCP tool | Implementation | Purpose |
|---|---|---|
protect_project | pyobfus_mcp/tools.py | One-call, self-verifying pipeline: scan β preset β obfuscate β byte-compile + import-smoke-test the output β return verified: true/false. The agent reports a green check instead of hoping the transform didn't break anything |
check_obfuscation_risks | pyobfus_mcp/tools.py | Pre-flight risk scan; pass verify_dependencies_online=true to check declared package names against public PyPI. |
generate_pyobfus_config | pyobfus_mcp/tools.py | Auto-detect framework β write a working pyobfus.yaml |
unmap_stack_trace | pyobfus_mcp/tools.py | Reverse obfuscated identifiers in a production stack trace |
list_presets | pyobfus_mcp/tools.py | Enumerate community / framework / Pro presets |
explain_preset | pyobfus_mcp/tools.py | Describe what a named preset changes |
recommend_tier | pyobfus_mcp/tools.py | Analyze a project and recommend community vs Pro tier, with reasoning |
start_pro_trial | pyobfus_mcp/tools.py | Return structured guidance for starting the 5-day Pro trial |
The server is registered in the official MCP Registry under io.github.zhurong2020/pyobfus-mcp. The transport is stdio. See pyobfus_mcp/README.md for per-client configuration snippets.
This repo is also a Claude Code plugin marketplace. The pyobfus-protect skill teaches an agent the full "protect Python before shipping β obfuscate and verify it still runs" workflow (MCP-first, CLI fallback):
See skills/ for the skill and install details. (This is distinct from templates/ai-integration/, which are copy-in rule files for your project.)
pyobfus is also on the VS Code Marketplace and Open VSX (publisher zhurong2020, same version on both β Open VSX covers VSCodium, Gitpod, Eclipse Theia and code-server) β the first obfuscation-focused extension in this category, since no competitor (PyArmor, Nuitka, Sourcedefender) has one. Inline obfuscation-risk diagnostics (pyobfus --check findings rendered via VS Code's native DiagnosticCollection API β squiggles + Problems panel, no separate linter to configure), a "Reverse Stack Trace" command, a status bar item showing your current tier with a one-click menu (Check Workspace / Generate Config / Start Trial / Unlock Pro), a "Generate pyobfus.yaml" command, and right-click "Obfuscate with pyobfus" from the Explorer or editor. Source and design rationale in vscode-extension/ and docs/VSCODE_EXTENSION_PLAN.md.
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/pyobfus-mcp)<a href="https://allmcps.com/mcp/pyobfus-mcp"><img src="https://allmcps.com/api/badge/pyobfus-mcp?style=directory" alt="Pyobfus MCP on AllMCPs" /></a>