Command Palette

Search for a command to run...

Home / Servers

pyobfus

by zhurong2020

pyobfus β€” the Python obfuscator

<p align="center"> <img src="https://raw.githubusercontent.com/zhurong2020/pyobfus/main/docs/assets/logo.jpeg" alt="pyobfus Logo" width="200"> </p>

pyobfus (pronounced as "Python obfuscator") is a modern, AST-based python-obfuscator / code-obfuscator with framework-aware presets, reverse stack-trace mapping for AI-assisted debugging, and a machine-readable JSON CLI designed for Claude Code, Cursor, Codex, and MCP agents. A transparent, open-source alternative to PyArmor.

PyPI version PyPI downloads Documentation Status License Python OpenSSF Best Practices DOI pyobfus MCP server Code style: black

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.

πŸ”§ What's new in v0.5.6 β€” Fixed a CLI bug where running any preset the normal, documented way (--preset fastapi/django/flask/pydantic/click/sqlalchemy/ml/safe, no extra flags) could silently override the preset's own choices: parameter names got mangled despite preserve_param_names=True, and docstrings got stripped despite --preset safe's core promise to keep them. Both now behave as documented. Full details in the CHANGELOG; see Pro Edition below.

πŸ”Œ Companion MCP server: pyobfus-mcp

This repository ships two installable packages:

PackageWhat it isInstall
pyobfusThe Python obfuscator (CLI + library).pip install pyobfus
pyobfus-mcpA 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 toolImplementationPurpose
protect_projectpyobfus_mcp/tools.pyOne-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_riskspyobfus_mcp/tools.pyPre-flight risk scan (eval/exec, dynamic attribute, framework reflection)
generate_pyobfus_configpyobfus_mcp/tools.pyAuto-det

Related servers

n8n

Updated today

by n8n-io

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

NOASSERTIONβ˜… 199,059

mcp-server-fetch

OfficialUpdated today

by modelcontextprotocol

A Model Context Protocol server providing tools to fetch and convert web content for usage by LLMs

β˜… 89,138

@modelcontextprotocol/server-filesystem

OfficialUpdated today

by modelcontextprotocol

MCP server for filesystem access

SEE LICENSE IN LICENSEβ˜… 89,138

@modelcontextprotocol/server-everything

OfficialUpdated today

by modelcontextprotocol

MCP server that exercises all the features of the MCP protocol

β˜… 89,138