CFR Decompiler

•
3
•

Decompile Java class and JAR files using CFR for source code analysis and integration into agent workflows.

This Python-based MCP (Model Context Protocol) server integrates the powerful CFR decompiler, enabling AI agents and LLMs to programmatically access and analyze the source code of compiled Java applications. It exposes a 'decompile' tool via an SSE (Server-Sent Events) transport, allowing clients to request decompilation of specific files or even methods, with options to fine-tune the output for clearer understanding or debugging. This server is ideal for enhancing agent capabilities in code comprehension, reverse engineering, and security analysis of Java binaries.

Key Features

01Encapsulates `cfr.jar` for robust Java decompilation
02Provides a 'decompile' tool with granular options (file path, method name, ignore exceptions, hide UTF-8, advanced CFR settings)
03Supports SSE (Server-Sent Events) for efficient communication
04Python-based MCP server implementation
050 GitHub stars
06Asynchronous execution of decompilation tasks in a thread pool to prevent blocking

Use Cases

01Empowering AI agents and LLMs with Java decompilation capabilities for code analysis
02Viewing the source code of compiled Java .class or .jar files programmatically
03Integrating decompilation into developer workflows or security auditing tools via an MCP-compatible client