AcademyMCP serversDevelopment

JavaLens MCP for Java Code Analysis

Java development teams and architects who review code, plan refactorings or measure code quality.

  • Recommendedour rating
  • 43gitHub stars
  • MITlicence
  • 4 months agolast update
claude mcp add javalens -e JAVA_PROJECT_PATH=/path/to/your/java/project -- npx -y javalens-mcp
README.md

Loading the file...

What it does

JavaLens is an MCP server with 75 analysis tools for Java, built on Eclipse JDT. It returns compiler-accurate results for navigation, find references, call hierarchy, refactoring and code metrics, so results reflect how the compiler resolves the code and not only matching text. It handles overloading, overriding, generics and imports, and supports Java source up to Java 25.

Use cases

  1. 01Finding every real call to a method before changing it
  2. 02Reviewing call hierarchies in a large Java service
  3. 03Measuring code metrics during a code review

Questions about
JavaLens MCP for Java Code Analysis.

What is JavaLens MCP for Java Code Analysis used for?

Java development teams and architects who review code, plan refactorings or measure code quality. JavaLens is an MCP server with 75 analysis tools for Java, built on Eclipse JDT. It returns compiler-accurate results for navigation, find references, call hierarchy, refactoring and code metrics, so results reflect how the compiler resolves the code and not only matching text. It handles overloading, overriding, generics and imports, and supports Java source up to Java 25.

How do I install JavaLens MCP for Java Code Analysis?

Run this in your terminal: claude mcp add javalens -e JAVA_PROJECT_PATH=/path/to/your/java/project -- npx -y javalens-mcp

Is JavaLens MCP for Java Code Analysis open source?

Yes. The code is on GitHub (pzalutski-pixel/javalens-mcp) under the MIT licence.

Is JavaLens MCP for Java Code Analysis safe to use?

It passed our automatic scan for credential theft, hidden instructions and risky install commands. Third party open source software. Sabemos AI does not maintain it. Check the code and permissions before you connect it to company data.