jons-mcp-java
MCP server providing Java development capabilities through Eclipse JDT.LS.
Requirements
Python 3.10+
Java 21+ (
brew install openjdk@21)Eclipse JDT.LS (
brew install jdtls)
Installation
Usage with Claude Code
Add the MCP server to Claude Code:
Replace /path/to/jons-mcp-java with the actual path to this repository.
To set the workspace root (defaults to current directory):
If your project uses a specific Java version (e.g., via devbox), set JAVA_HOME:
Available Tools
Tool | Description |
| Go to symbol definition |
| Find all references to a symbol |
| Find implementations of interfaces/abstract methods |
| Go to type definition |
| List all symbols in a file |
| Search for symbols across the workspace |
| Get errors and warnings |
| Get Javadoc and type information |
Environment Variables
Variable | Default | Description |
| Current directory | Root workspace for Java projects |
| Auto-detect | JDT.LS installation directory |
| Auto-detect | Java 21+ installation |
Features
Multi-project support: Automatically discovers Gradle projects in mono-repos
Lazy initialization: JDT.LS instances start on-demand per project
LRU eviction: Manages memory by limiting active instances (default: 3)
Concurrent protection: Handles parallel requests safely