Skip to main content
Glama
Kicey
by Kicey

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).

Related MCP server: jons-mcp-java

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.

Install Server
F
license - not found
B
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    -
    quality
    F
    maintenance
    Runs a language server and provides tools for communicating with it. Language servers excel at tasks that LLMs often struggle with, such as precisely understanding types, understanding relationships, and providing accurate symbol references.
    1,570
    BSD 3-Clause
  • A
    license
    B
    quality
    A
    maintenance
    Provides Java development capabilities through Eclipse JDT.LS, enabling symbol navigation, code diagnostics, workspace searching, and Javadoc access across Java projects.
    10
    MIT
  • A
    license
    -
    quality
    C
    maintenance
    Exposes Eclipse JDT Language Server to AI agents via MCP. Embedded OSGi architecture runs jdtls in the same JVM — no subprocess, no network hop. Tools: hover, definition, references, completion, diagnostics, document & workspace symbols.
    3
    Eclipse Public 2.0
  • A
    license
    -
    quality
    D
    maintenance
    Provides AI agents with language-aware code analysis through the Language Server Protocol, enabling tasks like getting code insights and diagnostics.
    20
    192
    MIT

View all related MCP servers

Related MCP Connectors

  • A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…

  • An MCP server that gives your AI access to the source code and docs of all public github repos

  • Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Kicey/jdtls-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server