Dejared MCP Server

Explore, analyze, and decompile Java JAR files via MCP

Local serverstdioGo

What is the Dejared MCP Server?

Explore, analyze, and decompile Java JAR files via MCP

What it actually does

A Model Context Protocol (MCP) server for exploring, analyzing, and decompiling Java JAR files. Designed for AI-powered development tools, dejared-mcp connects your IDE or CLI assistant to inspect package structures, search bytecode, and decompile classes using CFR, Vineflower, or Procyon.

dejared-mcp is a Java-based MCP server distributed as an npm package. It provides nine tools organized into three categories: discovery, hunting, and deep analysis. AI assistants use these tools to navigate JAR file structures, search for classes and string literals in bytecode, and decompile .class files back to readable Java source code.

Adding it to your client

dejared-mcp on npm is all you need. Most clients run it directly, so configuration is a few lines and a restart.

Configuration

You will need one environment variable: DEJARED_JAVA_PATH. Keep credentials in your client's env block or a secrets manager rather than in a file you might commit.

  • Node.js 18 or later - Java 17 or later (JRE is sufficient)

Caveats

  • 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.

Recorded tools

  • dejared_list_packages — List all packages with class counts
  • dejared_list_classes — List classes in a specific package
  • dejared_list_resources — List non-class resource files
  • dejared_read_resource — Read text resources (YAML, XML, properties, JSON, and others)
  • dejared_search_class — Search classes by name
  • dejared_search_string — Search string literals in bytecode (URLs, SQL, error messages)
  • dejared_get_metadata — Extract class metadata via ASM (fast, no decompilation)

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
dejared_list_packagesList all packages with class counts
dejared_list_classesList classes in a specific package
dejared_list_resourcesList non-class resource files
dejared_read_resourceRead text resources (YAML, XML, properties, JSON, and others)
dejared_search_classSearch classes by name
dejared_search_stringSearch string literals in bytecode (URLs, SQL, error messages)
dejared_get_metadataExtract class metadata via ASM (fast, no decompilation)

How to install the Dejared MCP Server

{
  "mcpServers": {
    "dejared": {
      "command": "npx",
      "args": ["-y", "dejared-mcp"]
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

  • Node.js 18 or later - Java 17 or later (JRE is sufficient)
VariableDescriptionRequired
DEJARED_JAVA_PATHFilesystem location the server is allowed to use.Optional

Example prompts to try

  • “Use Dejared to macOS.”
  • “Use Dejared to Windows.”
  • “Use Dejared to Command.”

Frequently asked questions

Explore, analyze, and decompile Java JAR files via MCP Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.