Skip to main content
AllMCPs
BrowseBestCategoriesStackCompareToolsGuidesBlog
Log in Submit MCP

Stay in the loop

Get new MCP servers and top picks in your inbox.

AllMCPs

The open directory for discovering and installing Model Context Protocol servers.

AllMCPs on GitHub (opens in a new tab)
Launched onTiny Startupstinystartups.com
Explore
  • Browse servers
  • Best MCP servers
  • Categories
  • MCP clients
  • Agent prompts
  • Stack Builder
  • Compare servers
  • Random discovery New
  • Submit a server
  • Pricing & Boost Boost
Learn
  • Guides hub
  • What is MCP?
  • Install guide
  • Build an MCP server
  • Deploy an MCP server
  • Security guide
  • Troubleshooting
  • MCP for SEO & AEO
  • Protocol versioning
  • Blog & updates
Tools
  • All developer tools
  • Config generator
  • Config validator
  • Config auditor
  • MCP playground
  • Token calculator
  • OpenAPI β†’ MCP
  • Badge generator
For agents
  • REST API docs
  • Trust & traffic Live
  • Remote MCP server SSE β†— (opens in a new tab)
  • llms.txt β†— (opens in a new tab)
  • Catalog JSON β†— (opens in a new tab)
Company
  • About
  • Advertise Sponsor
  • Contact
  • GitHub β†— (opens in a new tab)
  • Terms
  • Privacy
AllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZoneAllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZone
Β© 2026 Jackalope Digital LLC. All rights reserved.
  1. Home
  2. πŸ“Š Monitoring
  3. Javalens MCP
Javalens MCP logo
Health: ActiveRecent health check succeeded.Last checked 9/11/2026, 1:16:09 PM

Javalens MCP

User RatingsBe the first to rate and review this MCP server!
View Repository38 GitHub StarsTotal stargazers on GitHub for the source repository (38 stars).Visit Website
javacode-analysisrefactoringdeveloper-tools

Java MCP server for compiler-accurate semantic analysis, navigation, refactoring, and metrics using Eclipse JDT.

Quick Install

Automated & IDE Setup

Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β€” or use 1-click editor setup below.

Add to CursorAdd to VS Code
Not yet automatically verified

We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β€” we're steadily working through the catalog.

Manual Client & Custom JSON ConfigExpand JSON β–Ύ

Client Config & Setup

Choose your client or environment
Target File:~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "pzalutski-pixel-javalens-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "javalens-mcp"
      ]
    }
  }
}

πŸ’‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.

Install Tool Schemas (75) Directory Badge Claim listing AlternativesπŸ“Š More in Monitoring

Overview

JavaLens provides semantic analysis for Java codebases through Eclipse JDT, including symbol navigation, reference searches, call hierarchies, refactoring, and code metrics. Use it when text search or basic language-server navigation cannot reliably resolve inheritance, overloads, generics, or access types. It supports Java source from versions 1.1 through 25 and requires Java 21 or later to run.

Use cases

β€’Find references to a specific Java method or field
β€’Trace method call hierarchies and implementations
β€’Apply symbol renames and extract methods safely
β€’Identify field reads, writes, casts, annotations, and instantiations
β€’Measure complexity and detect unused or unreachable code

Key features

β€’Compiler-accurate Eclipse JDT semantic resolution
β€’Reference searches with fine-grained reference types
β€’Inheritance, overload, generic, and import resolution
β€’Call hierarchy, implementation, and test coverage analysis
β€’AST-based refactoring operations
β€’Code metrics and issue detection

Capabilities & Tool Schemas (75) ~1.2k tokensApproximate context cost of this server’s tool schemas (~4 chars/token), before any tool is called. Actual usage depends on your client and model.Self-reported Self-reportedParsed from the repository README, not verified against a live server β€” may be incomplete or out of date.

Inspect callable tools, capabilities, and parameters exposed to AI agents by Javalens MCP.

search_symbols

Search types, methods, fields by glob pattern

go_to_definition

Navigate to symbol definition

find_references

Find all usages of a symbol

find_implementations

Find interface/class implementations

get_type_hierarchy

Get inheritance chain

get_document_symbols

Get all symbols in a file

Documentation Overview

JavaLens: AI-First Code Analysis for Java

GitHub release License: MIT Java 21

An MCP server providing 75 semantic analysis tools for Java, built directly on Eclipse JDT for compiler-accurate code understanding.

Built for AI Agents

JavaLens exists because AI systems need compiler-accurate insights that reading source files cannot provide. When an AI uses grep or Read to find usages of a method, it cannot distinguish:

  • A method call from a method with the same name in an unrelated class
  • A field read from a field write
  • An interface implementation from an unrelated class
  • A cast to a type from other references to that type

This leads to incorrect refactorings, missed usages, and incomplete understanding of code behavior.

Compiler-Accurate Analysis

JavaLens provides compiler-accurate code analysis through Eclipse JDTβ€”the same engine that powers Eclipse IDE. Unlike text search, JDT understands:

  • Type resolution across inheritance hierarchies
  • Method overloading and overriding
  • Generic type arguments
  • Import resolution and classpath dependencies
  • Java source from version 1.1 through Java 25 (markdown Javadoc, module imports, compact source files, flexible constructor bodies)
  • Lombok-generated members β€” a bundled agent makes @Data accessors and the like resolve, so code using them is not flagged as undefined

Example: Finding all places where UserService.save() is called:

ApproachResult
grep "save("Returns 47 matches including orderService.save(), saveButton, comments
find_referencesReturns exactly 12 calls to UserService.save()

AI Training Bias Warning

⚠️ Important for AI developers and users

AI models may exhibit trained bias toward native tools (Grep, Read, LSP) over MCP server tools, even when semantic analysis provides better results. This happens because:

  1. Training data contains extensive grep/text-search patterns
  2. Native tools are "always available" in the model's experience
  3. The model may not recognize when semantic analysis is superior

To get the best results:

Add guidance to your project instructions or system prompt (e.g., CLAUDE.md for Claude Code):

markdown
## Code Analysis Preferences

For Java code analysis, prefer JavaLens MCP tools over text search:
- Use `find_references` instead of grep for finding usages
- Use `find_implementations` instead of text search for implementations
- Use `analyze_type` to understand a class before modifying it
- Use refactoring tools (rename_symbol, extract_method) for safe changes

Semantic analysis from JDT is more accurate than text-based search,
especially for overloaded methods, inheritance, and generic types.

What is JavaLens?

JavaLens is an MCP server that gives AI assistants deep understanding of Java codebases. It provides semantic analysis, navigation, refactoring, and code intelligence tools that go beyond simple text search.

Why Not LSP?

Language Server Protocol was designed for IDE autocomplete and basic navigationβ€”not for AI agent workflows that require deep semantic analysis.

CapabilityNative LSPJavaLens
Find all @Annotation usagesβŒβœ…
Find all new Type() instantiationsβŒβœ…
Find all casts to a typeβŒβœ…
Distinguish field reads from writesβŒβœ…
Detect circular package dependenciesβŒβœ…
Calculate cyclomatic complexityβŒβœ…
Find unused private methodsβŒβœ…
Detect possible null pointer bugsβŒβœ…
Project-wide dead-code reachability from entry pointsβŒβœ…
Find the tests that exercise a symbol, transitivelyβŒβœ…

JavaLens wraps Eclipse JDT Core directly via OSGi, providing:

  • Fine-grained reference types: Find specifically casts, annotations, throws clauses, catch blocks, instanceof checks, method references, type arguments
  • Read vs write access distinction: Track where fields are mutated vs just read
  • Indexed search: JDT pre-builds an index at load time, so symbol/reference queries do not walk source files
  • Full AST access: Direct manipulation for complex refactorings

Installation

Prerequisites

  • Java 21 or later (must be on PATH or set JAVA_HOME) β€” required for both install paths.
  • Node.js 18+ β€” required only if you use the npm/npx install path below. Skip if you use the direct-download path.

JavaLens is an analytical server, not a compiler. It uses Eclipse JDT 2025-12 to parse and understand Java source code from version 1.1 through 25. Java 21 is required only as the server runtime.

Install from GitHub Releases (recommended β€” Java only)

This is the simplest path if you already have Java 21 and don't have Node.js. Download from Releases:

PlatformFile
All platformsjavalens.zip or javalens.tar.gz

Extract to a location of your choice (e.g., /opt/javalens or C:\javalens). Then point your MCP client at the bundled jar β€” see Configure MCP Client below.

Install via npm (requires Node.js 18+)

If you already have Node.js, npx will download and cache the JavaLens distribution (~23 MB) on first run:

config.json
{
  "mcpServers": {
    "javalens": {
      "command": "npx",
      "args": ["-y", "javalens-mcp"],
      "env": {
        "JAVA_PROJECT_PATH": "/path/to/your/java/project"
      }
    }
  }
}

Configure MCP Client

Add to your MCP configuration (e.g., .mcp.json for Claude Code):

config.json
{
  "mcpServers": {
    "javalens": {
      "command": "java",
      "args": ["-jar", "/path/to/javalens/javalens.jar", "-data", "/path/to/javalens-workspaces"]
    }
  }
}

The -data argument specifies where JavaLens stores its workspace metadata. See How Workspaces Work below.

Auto-Load a Project

Set JAVA_PROJECT_PATH to auto-load a project when the server starts:

config.json
{
  "mcpServers": {
    "javalens": {
      "command": "java",
      "args": ["-jar", "/path/to/javalens/javalens.jar", "-data", "/path/to/javalens-workspaces"],
      "env": {
        "JAVA_PROJECT_PATH": "/path/to/your/java/project"
      }
    }
  }
}

Note: Project loading happens asynchronously in the background. The MCP server responds immediately while the project loads. Use health_check to monitor loading statusβ€”it will show "project.status": "loading" until complete, then "loaded" when ready.

How Workspaces Work

Unlike in-memory code models, Eclipse JDT requires a workspace directory to store:

  • Search indexes for fast symbol lookup
  • Compilation state and caches
  • Project metadata

Workspaces Are Outside Your Source

JavaLens creates its workspace outside your source project to keep your codebase clean:

Code
Your Java Project (unchanged)
β”œβ”€β”€ src/main/java/
β”œβ”€β”€ pom.xml
└── (no Eclipse files added)

JavaLens Workspace (specified by -data)
└── {session-uuid}/
    β”œβ”€β”€ .metadata/          <- JDT indexes and state
    └── javalens-project/   <- Links to your source (not copies)

Why this matters:

  1. No pollution: Your source tree stays cleanβ€”no .project or .classpath files
  2. No conflicts: Works alongside any build system without interference
  3. Session isolation: Each MCP session gets its own workspace, enabling concurrent analysis

Session Lifecycle

  1. JavaLens starts and creates a unique workspace: {base}/{uuid}/
  2. load_project creates linked folders pointing to your source
  3. JDT builds indexes in the workspace (not in your project)
  4. When the session ends, the workspace is cleaned up

Tools

Navigation (10 tools)

ToolDescription
search_symbolsSearch types, methods, fields by glob pattern
go_to_definitionNavigate to symbol definition
find_referencesFind all usages of a symbol
find_implementationsFind interface/class implementations
get_type_hierarchyGet inheritance chain
get_document_symbolsGet all symbols in a file
get_symbol_infoGet detailed symbol information at position
get_type_at_positionGet type details at cursor
get_method_at_positionGet method details at cursor
get_field_at_positionGet field details at cursor

Fine-Grained Reference Search (9 tools)

These use JDT's unique reference type constantsβ€”not available through LSP:

ToolDescription
find_annotation_usagesFind all @Annotation usages
find_type_instantiationsFind all new Type() calls
find_castsFind all (Type) expr casts
find_instanceof_checksFind all x instanceof Type
find_throws_declarationsFind all throws Exception in signatures
find_catch_blocksFind all catch(Exception e) blocks
find_method_referencesFind all Type::method expressions
find_type_argumentsFind all List<Type> usages
find_reflection_usageFind Class.forName(), Method.invoke(), and other reflection calls

Analysis (20 tools)

Read the full README β†’View source on GitHub β†’

Related MCP Servers

View all in Monitoring View all alternatives
  • Roslyn Codelens MCP logoRoslyn Codelens MCP

    ⃣ 🏠 🍎 πŸͺŸ 🐧 - Roslyn-based MCP server with 22 semantic code intelligence tools for .NET. Type hierarchies, call graphs, DI registrations, diagnostics, code fixes, complexity metrics, and more. Sub-millisecond lookups via pre-built indexes.

    πŸ“Š Monitoring3 views
    Compare vs Roslyn Codelens MCP β†’
  • Langfuse MCP Java logoLangfuse MCP Java

    Query Langfuse traces, debug exceptions, analyze sessions, scores, datasets, schema, observations and manage prompts. Full observability toolkit for LLM applications. (https://github.com/langfuse/langfuse)

    πŸ“Š Monitoring3 views
    Compare vs Langfuse MCP Java β†’
  • Fastmcp Sonarqube Metrics logoFastmcp Sonarqube Metrics

    A Model Context Protocol (MCP) server that provides a set of tools for retrieving information about SonarQube projects like metrics (actual and historical), issues, health status.

    πŸ“Š Monitoring8 views
    Compare vs Fastmcp Sonarqube Metrics β†’
  • Opik MCP logoOpik MCP

    Use natural language to explore LLM observability, traces, and monitoring data captured by Opik.

    πŸ“Š Monitoring1 views
    Compare vs Opik MCP β†’

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks β€” not a rating.

GitHub stars
38
Stargazers on the source repository.
Last commit
2mo ago
Most recent push to the default branch.
Tools exposed
75
Callable tools this server registers over MCP.
Directory activity
1 views
Config copies, upvotes, and views on AllMCPs.

Reviews

No reviews yet β€” be the first to share how this listing worked for you.

Frequently Asked Questions about Javalens MCP

Java 21 or later must be available on PATH or configured through JAVA_HOME.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewJavalens MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/pzalutski-pixel-javalens-mcp?style=directory)](https://allmcps.com/mcp/pzalutski-pixel-javalens-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/pzalutski-pixel-javalens-mcp"><img src="https://allmcps.com/api/badge/pzalutski-pixel-javalens-mcp?style=directory" alt="Javalens MCP on AllMCPs" /></a>

Technical Specs & Signals

CategoryπŸ“ŠMonitoring
PricingFree
More technical detailsExpand β–Ύ
TransportSTDIO
RuntimeNode.js
AuthNo auth required
LicenseMIT
Last updatedAug 10, 2026
3/6 checks healthy over the last 32d
Views1
Unique ViewsTotal visits recorded for this listing page on AllMCPs.
Installs0
Installs & Copy ActionsTotal times users copied install commands or configuration snippets for this server.
GitHub stars38
GitHub Star CountTotal stargazers on GitHub representing community popularity (38 stars).
Last commit2mo ago
Last Repository CommitThe most recent commit or push recorded for this server's GitHub repository.Last commit on Jun 16, 2026
57Quality signal: Good Β· 57/100How this signal is calculated β–Ύ
Server availabilityNot measured

Not scored for repo-hosted servers β€” we can't reach the running server, only its GitHub page. Hosted MCP endpoints are health-checked live.

Verified ownership10/20
Documentation & tools28/30
Adoption & activity5/15
Community engagement0/10

A guidance signal from public completeness & health data β€” not a user rating. New listings start lower and rise as they add docs, get verified, and grow adoption. Signals we can't observe for a listing are skipped, not counted against it.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 27d ago via OSV.dev Β· javalens-mcp (npm)

β˜… Spotlight Slot

Feature Your MCP Server

Get maximum visibility for your server across our directory, search results, and detail pages.

Spotlight Your Server

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to unlock edit access and the Official badge β€” proof is checked automatically, then reviewed by our team.

Free dofollow backlink: add your website and place the AllMCPs badge on it β€” no claim needed. We detect it automatically and keep it verified as long as the badge stays live.

Claim & get free dofollow

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.

Explore more

More in πŸ“Š Monitoring β†’Best MCP servers for Monitoring & Observability β†’Alternatives to Javalens MCP β†’Install in Claude DesktopInstall in CursorInstall in VS Code