MCP Directory

JavaLens vs Serena

A side-by-side comparison of two Developer Tools servers — tools, transport, auth, maintenance, and copy-paste config for each.

 JavaLens

Compiler-accurate Java code analysis for AI agents, built on Eclipse JDT with 75 semantic tools.

Unverified
stdio (local)
No auth
Java
Serena

LSP-powered coding agent toolkit: semantic symbol search, references and structural edits.

Verified
stdio (local)
No auth
Python
CategoryDeveloper ToolsDeveloper Tools
LanguageJavaPython
Transportstdio (local)stdio (local)
AuthNoneNone
GitHub stars3112k
Last commit11 days ago23 days ago
Verified
Actively maintained
Installnpx -y javalens-mcpuvx --from git+https://github.com/oraios/serena serena start-mcp-server
RepoOpen Open

Verdict

Pick JavaLens if you need the broadest set of tools.

Pick Serena if you prefer the more popular, battle-tested option, and you want a verified, documented setup.

Add JavaLens

Install / run
npx -y javalens-mcp

Paste into ~/Library/Application Support/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "javalens": {
      "command": "npx",
      "args": [
        "-y",
        "javalens-mcp"
      ],
      "env": {
        "JAVA_PROJECT_PATH": "/path/to/your/java/project"
      }
    }
  }
}

Add Serena

Install / run
uvx --from git+https://github.com/oraios/serena serena start-mcp-server

Paste into ~/Library/Application Support/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "serena": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/oraios/serena",
        "serena",
        "start-mcp-server"
      ]
    }
  }
}

Requires `uv` (the Python package runner). Install it from https://docs.astral.sh/uv/ if `uvx` is not found.

FAQ

JavaLens or Serena — which is better?

Pick JavaLens if you need the broadest set of tools. Pick Serena if you prefer the more popular, battle-tested option, and you want a verified, documented setup.

Can I use both JavaLens and Serena?

Yes — MCP clients let you enable multiple servers at once. Add both configs to your client's mcpServers and use whichever tool fits the task.

Do JavaLens and Serena work with Claude, Cursor and Windsurf?

Both do. Copy the per-client config below into Claude Desktop, Cursor, or Windsurf.