PluginBench
MCP Server

JavaLens MCP Server

io.github.pzalutski-pixel/javalens

What is the JavaLens MCP server?

63 semantic Java analysis tools via Eclipse JDT: navigation, refactoring, code intelligence.

How to install JavaLens

Copy-paste configuration for popular MCP clients.

transport: stdio
Config generated by PluginBench — verify against the source before use.
Environment / auth
  • JAVA_PROJECT_PATH

    Auto-load project on startup

  • JAVALENS_TIMEOUT_SECONDS

    Operation timeout in seconds

  • JAVALENS_LOG_LEVEL

    Log level: TRACE, DEBUG, INFO, WARN, ERROR

Claude Desktop
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "javalens": {
      "command": "npx",
      "args": [
        "-y",
        "javalens-mcp"
      ],
      "env": {
        "JAVA_PROJECT_PATH": "<YOUR_JAVA_PROJECT_PATH>",
        "JAVALENS_TIMEOUT_SECONDS": "<YOUR_JAVALENS_TIMEOUT_SECONDS>",
        "JAVALENS_LOG_LEVEL": "<YOUR_JAVALENS_LOG_LEVEL>"
      }
    }
  }
}
Cursor
~/.cursor/mcp.json
{
  "mcpServers": {
    "javalens": {
      "command": "npx",
      "args": [
        "-y",
        "javalens-mcp"
      ],
      "env": {
        "JAVA_PROJECT_PATH": "<YOUR_JAVA_PROJECT_PATH>",
        "JAVALENS_TIMEOUT_SECONDS": "<YOUR_JAVALENS_TIMEOUT_SECONDS>",
        "JAVALENS_LOG_LEVEL": "<YOUR_JAVALENS_LOG_LEVEL>"
      }
    }
  }
}
Windsurf
~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "javalens": {
      "command": "npx",
      "args": [
        "-y",
        "javalens-mcp"
      ],
      "env": {
        "JAVA_PROJECT_PATH": "<YOUR_JAVA_PROJECT_PATH>",
        "JAVALENS_TIMEOUT_SECONDS": "<YOUR_JAVALENS_TIMEOUT_SECONDS>",
        "JAVALENS_LOG_LEVEL": "<YOUR_JAVALENS_LOG_LEVEL>"
      }
    }
  }
}
VS Code
.vscode/mcp.json
{
  "servers": {
    "javalens": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "javalens-mcp"
      ],
      "env": {
        "JAVA_PROJECT_PATH": "<YOUR_JAVA_PROJECT_PATH>",
        "JAVALENS_TIMEOUT_SECONDS": "<YOUR_JAVALENS_TIMEOUT_SECONDS>",
        "JAVALENS_LOG_LEVEL": "<YOUR_JAVALENS_LOG_LEVEL>"
      }
    }
  }
}
Claude Code
claude mcp add javalens --env JAVA_PROJECT_PATH=<YOUR_JAVA_PROJECT_PATH> --env JAVALENS_TIMEOUT_SECONDS=<YOUR_JAVALENS_TIMEOUT_SECONDS> --env JAVALENS_LOG_LEVEL=<YOUR_JAVALENS_LOG_LEVEL> -- npx -y javalens-mcp

Related MCP servers

15 semantic GDScript analysis tools via Godot's built-in LSP: navigation, references, rename.

View repository →

67 semantic C#/.NET analysis tools via Roslyn: navigation, refactoring, codegen, audit.

View repository →