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.
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 (handlesjdt://URIs).
Requirements
- Node.js: v16 or higher.
- JDTLS: Eclipse JDT Language Server must be installed on your machine and the
jdtlsexecutable must be available in your system'sPATH.
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
jdtlsprocesses automatically per workspace. - The processes will gracefully shut down after 30 minutes of inactivity to save resources.
- Required
workspacePatharguments should be absolute paths to the root of the target Java project.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。