Skip to content
Grok

JavaLens for Grok

io.github.pzalutski-pixel/javalens

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

client:Grok transport:stdio runtime:npm

Install JavaLens in Grok

.mcp.json (in your project root)

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>"
      }
    }
  }
}

Grok Build reads Claude Code's .mcp.json and Claude Desktop's config unchanged, so a server you have already set up there needs nothing new. The Grok web app and X integration do not take custom servers. Grok docs

JavaLens in other clients