jdtls-mcp

jdtls-mcp

Wraps the Eclipse JDT Language Server to enable AI assistants to understand Java codebases, search symbols, navigate definitions/references, and read third-party .class files.

Category
Visit Server

README

JDTLS MCP Server

A Model Context Protocol (MCP) server that provides Java language support by wrapping the Eclipse JDT Language Server (JDTLS).

This server allows AI assistants to understand Java codebases, search symbols, navigate code (definition, references, implementations), and read third-party .class files natively.

Features

This server exposes the following MCP tools:

  • java_workspace_symbols: Search for classes, interfaces, and methods across the entire workspace.
  • java_document_symbols: Get the hierarchical outline of a specific file.
  • java_definition: Find the definition of a symbol at a specific location.
  • java_references: Find usages of a symbol at a specific location.
  • java_implementations: Find implementations of a symbol at a specific location.
  • java_hover: Get Javadoc and type signature for a symbol.
  • java_class_content: Fetch the source code for a class located inside a third-party jar (handles jdt:// URIs).

Requirements

  1. Node.js: v16 or higher.
  2. JDTLS: Eclipse JDT Language Server must be installed on your machine and the jdtls executable must be available in your system's PATH.

Installation

We recommend building and linking the package globally. This makes the jdtls-mcp command available everywhere and makes future updates easy.

# Clone the repository
git clone https://github.com/Kicey/jdtls-mcp.git
cd jdtls-mcp

# Install dependencies
npm install

# Build the TypeScript code
npm run build

# Link the package globally
npm link

To update the server later, simply run git pull followed by npm run build in the repository folder.


Usage & Configuration Examples

Below are configuration examples for adding this MCP server to various AI coding assistants now that it is linked globally.

Claude Desktop

Add the following to your claude_desktop_config.json file:

{
  "mcpServers": {
    "jdtls": {
      "command": "jdtls-mcp",
      "args": []
    }
  }
}

Cursor

To use with Cursor, open Settings > Features > MCP Servers and add a new server:

  • Type: command
  • Name: jdtls
  • Command: jdtls-mcp

Claude Code (CLI)

If you are using the official claude CLI, you can add the server by running:

claude mcp add jdtls -- jdtls-mcp

Codex / Cline / Roo Code (VS Code Extensions)

For VS Code extensions that support MCP (like Roo Code / Cline), configure the server in your MCP settings file (typically cline_mcp_settings.json):

{
  "mcpServers": {
    "jdtls": {
      "command": "jdtls-mcp",
      "args": []
    }
  }
}

Architecture Notes

  • The server manages jdtls processes automatically per workspace.
  • The processes will gracefully shut down after 30 minutes of inactivity to save resources.
  • Required workspacePath arguments should be absolute paths to the root of the target Java project.

Recommended Servers

playwright-mcp

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.

Official
Featured
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

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.

Official
Featured
TypeScript
Kagi MCP Server

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.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

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.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured