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. The dejared mcp server wraps that behind the Model Context Protocol, so an assistant can use it through 14 defined tools rather than through you.

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.

Its toolset

Everything the assistant can do here goes through one of these:

  • macOS — ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows — %APPDATA%\Claude\claude_desktop_config.json
  • Command — npx -y dejared-mcp
  • Name — dejared
  • Transport — Stdio
  • Arguments — -y dejared-mcp
  • Linux — $XDG_CACHE_HOME/dejared-mcp (defaults to ~/.cache/dejared-mcp)
  • 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

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)

When to reach for it

This sits in the database access group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Dejared's toolset — macOS, Windows, Command and 11 more — is a fair guide to whether it matches your workflow. It is maintained by HuynhKhanh1402; worth a glance at recent repository activity before you build anything load-bearing on it.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

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.
  • With 14 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch Dejared.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the dejared mcp server does with a few real requests.

Available tools

ToolWhat it does
macOS~/Library/Application Support/Claude/claude_desktop_config.json
Windows%APPDATA%\Claude\claude_desktop_config.json
Commandnpx -y dejared-mcp
Namedejared
TransportStdio
Arguments-y dejared-mcp
Linux$XDG_CACHE_HOME/dejared-mcp (defaults to ~/.cache/dejared-mcp)
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

It connects Dejared to MCP-compatible AI assistants such as Claude and Cursor, exposing 14 tools (macOS, Windows, Command, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Dejared directly.