pyobfus — Python Obfuscator
@zhurong2020
About pyobfus — Python Obfuscator
Obfuscate Python & reverse-map stack traces from your agent. AST-based, no phone-home. PyArmor alt.
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"pyobfus": {
"command": "uvx",
"args": [
"pyobfus-mcp"
]
}
}
}Tools
No tools detected
Fetch the live tool list by running this server in a temporary sandbox using the button above.
Overview
What is pyobfus — Python Obfuscator?
pyobfus is an AST-based Python obfuscator MCP server that lets AI agents (Claude Code, Cursor, Windsurf, Zed) protect Python source code end-to-end from a conversation. It serves as an open-source, no-phone-home alternative to PyArmor.
How to use pyobfus — Python Obfuscator?
Install via uvx pyobfus-mcp or pip install pyobfus-mcp. No API key is required. Once installed, an AI agent can call any of the 8 built-in tools to obfuscate projects, scan risks, generate configs, or reverse obfuscated tracebacks.
Key features of pyobfus — Python Obfuscator
- AST-based obfuscation with no phone-home.
- 8 tools including
protect_project,check_obfuscation_risks, andunmap_stack_trace. - All tools return structured JSON with
ai_hintandnext_toolfor deterministic chaining. - Preflight risk scanning for
eval/exec, dynamic attributes, and framework reflection. - Auto‑generates
pyobfus.yamlbased on detected framework. - Open‑source alternative to PyArmor with no API key required.
Use cases of pyobfus — Python Obfuscator
- Obfuscate a complete Python project and verify it still runs in one MCP call.
- Scan a project for obfuscation risks before applying protection.
- Auto‑generate configuration files tuned to the project’s framework.
- Debug deobfuscated stack traces from obfuscated code during development.
FAQ from pyobfus — Python Obfuscator
How does pyobfus compare to PyArmor?
pyobfus is an open-source, AST-based obfuscator that does not phone home, making it a transparent alternative to PyArmor.
Does pyobfus require an API key?
No, pyobfus does not require any API key.
How do I install pyobfus?
Install using uvx pyobfus-mcp or pip install pyobfus-mcp.
What tools does pyobfus provide?
It provides 8 tools: protect_project, check_obfuscation_risks, generate_pyobfus_config, unmap_stack_trace, list_presets, explain_preset, recommend_tier, and start_pro_trial.
What format do the tools return?
All tools return structured JSON that includes an ai_hint and a next_tool field for deterministic chaining of operations.
Frequently asked questions
How does pyobfus compare to PyArmor?
pyobfus is an open-source, AST-based obfuscator that does not phone home, making it a transparent alternative to PyArmor.
Does pyobfus require an API key?
No, pyobfus does not require any API key.
How do I install pyobfus?
Install using `uvx pyobfus-mcp` or `pip install pyobfus-mcp`.
What tools does pyobfus provide?
It provides 8 tools: `protect_project`, `check_obfuscation_risks`, `generate_pyobfus_config`, `unmap_stack_trace`, `list_presets`, `explain_preset`, `recommend_tier`, and `start_pro_trial`.
What format do the tools return?
All tools return structured JSON that includes an `ai_hint` and a `next_tool` field for deterministic chaining of operations.
Basic information
More Other MCP servers
XcodeBuildMCP
cameroncookeA Model Context Protocol (MCP) server and CLI that provides tools for agent use when working on iOS and macOS projects.
MCP Registry
modelcontextprotocolA community driven registry service for Model Context Protocol (MCP) servers.
Activepieces
activepiecesAI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
Inbox Zero AI
elie222The world's best AI personal assistant for email. Open source app to help you reach inbox zero fast.
Reactive Resume
amruthpillaiA one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
Comments