jons-mcp-java
Provides Java development capabilities through Eclipse JDT.LS, enabling symbol navigation, code diagnostics, workspace searching, and Javadoc access across Java projects.
README
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
cd /path/to/jons-mcp-java
uv sync
Usage with Claude Code
Add the MCP server to Claude Code:
claude mcp add jons-mcp-java -- uv run --project /path/to/jons-mcp-java jons-mcp-java
Replace /path/to/jons-mcp-java with the actual path to this repository.
To set the workspace root (defaults to current directory):
claude mcp add jons-mcp-java -e JONS_MCP_JAVA_WORKSPACE=/path/to/workspace -- uv run --project /path/to/jons-mcp-java jons-mcp-java
If your project uses a specific Java version (e.g., via devbox), set JAVA_HOME:
claude mcp add jons-mcp-java \
-e JAVA_HOME=/opt/homebrew/opt/openjdk@21/libexec/openjdk.jdk/Contents/Home \
-e JONS_MCP_JAVA_WORKSPACE=/path/to/workspace \
-- uv run --project /path/to/jons-mcp-java jons-mcp-java
Available Tools
| Tool | Description |
|---|---|
definition |
Go to symbol definition |
references |
Find all references to a symbol |
implementation |
Find implementations of interfaces/abstract methods |
type_definition |
Go to type definition |
document_symbols |
List all symbols in a file |
workspace_symbols |
Search for symbols across the workspace |
diagnostics |
Get errors and warnings |
hover |
Get Javadoc and type information |
Environment Variables
| Variable | Default | Description |
|---|---|---|
JONS_MCP_JAVA_WORKSPACE |
Current directory | Root workspace for Java projects |
JDTLS_HOME |
Auto-detect | JDT.LS installation directory |
JAVA_HOME |
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
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
E2B
Using MCP to run code via e2b.