# Dejared

> Dejared is an open-source MCP server for security. Java decompiler MCP server for exploring and decompiling JAR, WAR, EAR and AAR files. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, self-hosted, Linux, macOS, Windows
- **Repository:** https://github.com/hqkh4nh/dejared-mcp
- **MCP Registry name:** io.github.hqkh4nh/dejared
- **Categories:** [security](https://ai-powered.com/categories/security), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-18

## About

Dependencies without sources are the target: an agent can open an archive, list what is inside, search bytecode for classes and string literals, and turn any class back into Java using the CFR, Vineflower or Procyon engines. The README suggests it for reading what a third-party library really does, recovering an application.yml or MANIFEST.MF, following a stack trace into library code, or inspecting an obfuscated plugin or mod.

It offers nine tools in three groups: discovery, hunting and deep analysis. The npm package is a thin wrapper that downloads and caches the server JAR on first run and starts it over stdio, so it needs Node.js 20 and Java 17 (a JRE is enough). A pure Java route runs the release JAR directly. Spring Boot fat-jars work too.

A Claude Code and Codex plugin bundles a jar-analysis skill that tells the agent when to prefer these tools over jar tf, unzip or javap. Setup snippets are given for many clients, including Cursor, VS Code, Gemini CLI and JetBrains.

## Features

- **Package and class listing:** Lists packages with class counts and classes within a package.
- **Resource reading:** Reads YAML, XML, properties and JSON files embedded in an archive.
- **Bytecode search:** Searches inside JARs for classes and string literals.
- **Three decompilers:** Decompiles with CFR, Vineflower or Procyon.
- **Skill bundle:** Optional plugin skill routes JAR questions to the right tool.
- **Java-only option:** Run the release JAR directly without Node.js.

## Good for

- Read what a closed-source library does
- Recover config files from inside a JAR
- Trace a stack trace into a dependency
- Inspect an obfuscated plugin or mod

## Install

### Claude Code (Terminal)

```sh
claude mcp add dejared -- npx -y dejared-mcp
```

### Claude Desktop (claude_desktop_config.json)

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

### Cursor (~/.cursor/mcp.json)

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

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "dejared": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "dejared-mcp"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

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

### Other clients (your client's MCP settings (most use this shape))

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

## 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 such as YAML, XML, properties and JSON

## FAQ

### What do I need installed?

Node.js 20 or later and Java 17 or later; a JRE is sufficient.

### Which archives work?

Any ZIP-based Java archive: JAR, WAR, EAR, AAR and Spring Boot fat-jars.

### Can I point it at a particular Java?

Yes, set DEJARED_JAVA_PATH.

### Which clients are supported?

Claude Code, Codex, Cursor, VS Code, Gemini CLI, JetBrains and others with a standard MCP config.

### Is Dejared free?

Yes. Dejared is open source, so you can use and self-host it for free.

### How do I add Dejared to Claude Code?

Run this command in your terminal: claude mcp add dejared -- npx -y dejared-mcp

### What are the best alternatives to Dejared?

The closest alternatives to Dejared are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/dejared-2
