← MCP Java Decompiler Server

MCP Java Decompiler Server 1.2.4

npm · @idachev/mcp-javadc · current release

3
Tools
0
Resources
0
Templates
0
Prompts

Observation

Observed 2026-08-14T07:44:04.875Z using mcpSecurity-inventory. Status: succeeded. Negotiated protocol: 2025-06-18.

Server capabilities
{
  "tools": {}
}

Tools 3

ToolCategoryAnnotationsRisk
decompile-from-jarDecompiles a Java class from a JAR file # Using mcp_javadc with Maven Repository When you need to decompile Java classes from dependencies in the M2 repository, follow these steps: ## Step 1: Find the JAR file location First, search for the dependency JAR in the local Maven repository: ```bash find ~/.m2 -name "*dependency-name*jar" | grep -v source | grep -v javadoc ``` Notes: - Replace dependency-name with the artifact name - Filter out source and javadoc JARs using grep - Look for the correct version based on the project's POM file ## Step 2: Use the correct mcp_javadc function Once you have the JAR path, use this function: For specific class decompilation: - jarFilePath: The absolute path to the JAR (from Step 1) - className: Fully qualified class name to decompile For contextual exploration: If needed, first try to find all available classes in the JAR: `jar tf /path/to/the.jar | grep .class | sort` Example workflow: 1. Read the POM file to identify dependency version 2. Search the M2 repository for the JAR 3. Use mcp_javadc to decompile relevant classes 4. If multiple versions exist, select the one matching the project's version requirement
Input schema
{
  "type": "object",
  "properties": {
    "jarFilePath": {
      "type": "string",
      "description": "The absolute path to the JAR file"
    },
    "className": {
      "type": "string",
      "description": "Fully qualified class name to decompile from the JAR (e.g., \"com.example.MyClass\")"
    }
  },
  "required": [
    "jarFilePath",
    "className"
  ]
}
— · —
decompile-from-packageDecompiles a Java class from a package name
Input schema
{
  "type": "object",
  "properties": {
    "packageName": {
      "type": "string",
      "description": "Fully qualified Java package and class name"
    },
    "classpath": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Array of classpath directories to search"
    }
  },
  "required": [
    "packageName"
  ]
}
— · —
decompile-from-pathDecompiles a Java .class file from a given file path
Input schema
{
  "type": "object",
  "properties": {
    "classFilePath": {
      "type": "string",
      "description": "The absolute path to the .class file"
    }
  },
  "required": [
    "classFilePath"
  ]
}
— · —

Resources 0

Resource templates 0

Prompts 0

Let’s talk about MCP security.

Share your details and our security team will contact you.