Pyobfus MCP Server

A Python code obfuscator built with AST-based transformations. **Supports Python 3.9 through 3.14**. Provides reliable name mangling, string

Local serverstdioPython

What is the Pyobfus MCP server?

If you already use Pyobfus, the pyobfus mcp server is the piece that lets your assistant work with it directly. 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.

Available tools

The toolset is worth reading before you wire it up, because it tells you what the integration is really for:

  • Installation — The Installation tool exposed by this server
  • Example — patient_age = 55 patient_score = 150 risk = calculate_risk(patient_age, patient_score) print(f"Risk score: {risk}")
  • Setup — The Setup tool exposed by this server
  • Testing — The Testing tool exposed by this server
  • Recommendations — The Recommendations tool exposed by this server

Credentials and setup notes

Configuration is passed through the environment: SECRET_KEY. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

Installation

Installation goes through your MCP client rather than a global install: point it at pyobfus-mcp on PyPI and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.

Where it fits

Among the developer tooling options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Pyobfus's toolset — Installation, Example, Setup and 2 more — is a fair guide to whether it matches your workflow. It is maintained by zhurong2020; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Worth knowing first

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
InstallationThe Installation tool exposed by this server.
Examplepatient_age = 55 patient_score = 150 risk = calculate_risk(patient_age, patient_score) print(f"Risk score: {risk}")
SetupThe Setup tool exposed by this server.
TestingThe Testing tool exposed by this server.
RecommendationsThe Recommendations tool exposed by this server.

How to install the Pyobfus MCP server

{
  "mcpServers": {
    "pyobfus": {
      "command": "uvx",
      "args": ["pyobfus-mcp"],
      "env": {
        "SECRET_KEY": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
SECRET_KEYCredential the server authenticates with.Yes

Example prompts to try

  • Use Pyobfus to Installation.
  • Use Pyobfus to Example.
  • Use Pyobfus to Setup.

Frequently asked questions

It connects Pyobfus to MCP-compatible AI assistants such as Claude and Cursor, exposing 5 tools (Installation, Example, Setup, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Pyobfus directly.