Skip to content
Cursor

JavaLens for Cursor

io.github.pzalutski-pixel/javalens

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

client:Cursor transport:stdio runtime:npm

Install JavaLens in Cursor

~/.cursor/mcp.json · windows: %USERPROFILE%\.cursor\mcp.json

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "javalens": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "javalens-mcp"
      ],
      "env": {
        "JAVA_PROJECT_PATH": "<JAVA_PROJECT_PATH>",
        "JAVALENS_TIMEOUT_SECONDS": "<JAVALENS_TIMEOUT_SECONDS>",
        "JAVALENS_LOG_LEVEL": "<JAVALENS_LOG_LEVEL>"
      }
    }
  }
}

Use .cursor/mcp.json in a project root instead to scope it to that project. Cursor merges both. Cursor docs

JavaLens in other clients