Java Index logo

Java Index

Java navigation for AI code review with shared indexing across editors, agents, dependencies, and worktrees.

Install Java Index

Run the project’s own setup commands, in order.

Setup steps from the project

java-index installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    brew tap slgobinath/java-index https://github.com/slgobinath/java-index
    
  2. 2. Run
    brew trust --formula slgobinath/java-index/java-index
    
  3. 3. Install
    brew install java-index
    

Overview

java-index provides Java code navigation for agents through MCP and for editors through LSP, using one shared index per repository. Its MCP tools expose APIs, callers, implementations, file outlines, type search, and Spring Boot or Quarkus configuration references. A single daemon serves multiple worktrees and avoids compiling or writing to the project. Reach for java-index when reviewing agent-written Java, especially across several worktrees, rather than when you need completion, refactoring, debugging, or compiler diagnostics.

Use cases

  • Review agent-written Java across multiple Git worktrees
  • Find callers and implementations of a Java method
  • Inspect dependency and JDK APIs from agent workflows
  • Trace Spring Boot or Quarkus configuration keys to Java consumers

Key features

  • MCP tools for Java APIs, callers, implementations, outlines, types, and configuration
  • Shared repository index across worktrees
  • LSP navigation for editors
  • Dependency, JDK, and generated-stub API inspection
  • Spring Boot and Quarkus configuration linking
  • Non-compiling index that avoids project build output

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

5/5 checks healthy over the last 19d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars9Stargazers on the source repository.
Last commit18d agoMost recent push to the default branch.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Java Index works

What java-index does

java-index focuses on reading and navigating Java source rather than editing or building it. It answers questions such as where a declaration is defined, which code calls a method, what implements a type, and which configuration key a Java component reads. Editors connect through LSP, while AI agents use MCP tools; both interfaces query the same repository index.

The index includes project sources, dependency source JARs, the JDK source archive, and generated stubs when available. It can also connect Spring Boot and Quarkus configuration files with the Java code that reads those keys. Supported patterns include @Value, @ConfigurationProperties, @ConfigProperty, @ConfigMapping, and getProperty(...).

How it works

Sources are parsed with Turbine into compact declaration summaries instead of being compiled. Method bodies are examined when a query needs information from inside them. One daemon serves all worktrees belonging to a repository, reusing unchanged files and storing only worktree-specific changes separately.

MCP responses return textual results with file and line locations. The available queries resolve declarations, receivers, signatures, type relationships, and call relationships where the index can establish them. When resolution is uncertain, java-index returns no result rather than guessing.

The project is designed for navigation and review. It does not write build output into the project, and it does not replace a full Java language server for authoring code.

Setup and configuration

On Apple Silicon macOS and Linux, installation uses the project's Homebrew tap:

sh
brew tap slgobinath/java-index https://github.com/slgobinath/java-index
brew trust --formula slgobinath/java-index/java-index
brew install java-index
jindex --version

The installation provides the jindex command, which starts a native relay and the daemon. It uses the OpenJDK supplied by Homebrew. Set JINDEX_JAVA to select another JDK; the selected JDK must be version 21 or newer.

Intel Macs, Windows users, and systems without Homebrew can use the JAR distributed through the project's releases. The MCP tools accept an optional worktree path, allowing an agent to query another worktree served by the same repository daemon.

Tools and capabilities

  • java_api shows the API of a class or member as resolved against project sources, dependency JARs, or the JDK.
  • java_callers finds calls, constructor uses, and field usages while distinguishing receiver types with the same method name.
  • java_implementations lists subtypes or method overrides.
  • java_outline returns a file's types and members, including resolved signatures and line numbers.
  • java_find_type searches for classes using names, camel-case segments, or qualified-name suffixes.
  • java_config reports Spring Boot or Quarkus configuration values by profile, Java consumers, and available library documentation.

The corresponding LSP functionality includes definitions, exact references, hover information, implementations, type and call hierarchies, symbols, signature help, inlay hints, import actions, deprecation diagnostics, and configuration navigation.

Limitations and notes

Turbine does not run Lombok or other annotation processors, so generated members from annotations such as @Getter, @Data, and @Builder are unavailable. Generated sources, including MapStruct, protobuf, and OpenAPI output, must exist before they can be indexed; a fresh checkout may need a build first.

Reflection and framework wiring are outside the index's view. Generic inference can fall back to bounds, and unresolved relationships are omitted. java-index cannot report compile errors, provide completion, perform general refactoring or formatting, debug applications, or run tests. It also does not cover the full authoring workflow provided by jdtls or an IDE.

Plain-text search remains useful for text matches. java-index is most useful for library API inspection, overloaded or common method names, and type hierarchies, but its navigation results should be treated as review guidance rather than proof when dynamic behavior is involved.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Java Index

java-index is an MCP server that connects AI agents to a shared Java code index for a repository and its worktrees. Its main tools inspect class and member APIs, find callers, list implementations, outline files, search for types, and trace Spring Boot or Quarkus configuration keys to Java usage.

Install java-index with Homebrew on Apple Silicon macOS or Linux by adding its tap, trusting the formula, and running `brew install java-index`. The package provides the `jindex` command. Intel Macs, Windows, and systems without Homebrew can use the JAR from the project's releases.

Yes, java-index supports multiple worktrees through one repository daemon. Files shared by worktrees are stored once, changed files are kept per worktree, and MCP tools accept an optional `worktree` path for querying another worktree.

No, java-index does not compile the project or report compiler errors. It parses sources with Turbine for navigation and leaves compilation and CI checks to the project's build tools.

No, Lombok and other annotation processors are not run by java-index. Members generated by annotations such as `@Getter`, `@Data`, and `@Builder` therefore cannot be resolved by the index.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

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 PreviewJava Index AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/java-index?style=directory)](https://allmcps.com/mcp/java-index)
HTML Embed
<a href="https://allmcps.com/mcp/java-index"><img src="https://allmcps.com/api/badge/java-index?style=directory" alt="Java Index on AllMCPs" /></a>