A Java MCP (Model Context Protocol) server that wraps JDTLS (Eclipse JDT Language Server) using LSP4J to provide Java IDE features to AI assistants like Claude.
Quick Install
Copy the config for your editor. Some servers may need additional setup — check the README.
Claude Desktop
Claude Code
Cursor
Add to claude_desktop_config.json:
{
"mcpServers": {
"lsp4j-mcp": {
"command": "npx",
"args": [
"-y",
"stephanj/LSP4J-MCP"
]
}
}
}
📋 Copy
Run in terminal:
claude mcp add lsp4j-mcp npx -y stephanj/LSP4J-MCP
📋 Copy
Add to .cursor/mcp.json:
{
"mcpServers": {
"lsp4j-mcp": {
"command": "npx",
"args": [
"-y",
"stephanj/LSP4J-MCP"
]
}
}
}
📋 Copy