Koskamo

JavaLens MCP

JavaLens is an MCP server that provides 75 semantic analysis tools for Java, built on Eclipse JDT. It enables AI agents to perform compiler-accurate code understanding, including navigation, refactoring, search, and metrics, overcoming the limitations of text-based search by resolving type hierarchies, method overloading, and generic types.

Package and access

Local package with source-attributed installation metadata. Koskamo does not execute packages during review.

JavaLens MCP logo, by pzalutski-pixelCommunity listingLocal stdioSource reviewed; not executedPublished by pzalutski-pixel
Vendor documentation

What you can do with it

  • Find all references to a specific method call accurately
  • Refactor code using semantic understanding of type hierarchies
  • Analyze class types and dependencies before modification
  • Resolve Lombok-generated members and generic type arguments

Source and maintenance

Community listingRegistry 1.5.3
Maintenance checked

Packages and installation

Source-provided package data. Koskamo has not executed or live-probed this package.

javalens-mcp 1.5.3

npmnpx
javalens-mcp package definition
{
  "version": "1.5.3",
  "transport": "stdio",
  "identifier": "javalens-mcp",
  "runtimeHint": "npx",
  "registryType": "npm",
  "environmentVariables": [
    {
      "name": "JAVA_PROJECT_PATH",
      "format": "string",
      "description": "Auto-load project on startup"
    },
    {
      "name": "JAVALENS_TIMEOUT_SECONDS",
      "format": "number",
      "description": "Time limit on each tool call in seconds (5-300); unset means no limit"
    },
    {
      "name": "JAVALENS_LOG_LEVEL",
      "format": "string",
      "default": "INFO",
      "description": "Log level: TRACE, DEBUG, INFO, WARN, ERROR"
    }
  ]
}

Tools

Reported by the attributed source; not independently observed by Koskamo.

No tool definitions available.

Connect from your client

Each snippet configures the same source-provided package; replace placeholders before use.

This server is operated by the named third party. Listing and endpoint checks are not an endorsement or a security audit. Review the operator's permissions, terms, and data handling before connecting. How listings are checked and corrected.

Cursor

Merge this local stdio configuration, replace every placeholder environment value, and restart Cursor. Koskamo has not executed this package.
Cursor configuration
{
  "mcpServers": {
    "javalens-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "javalens-mcp@1.5.3"
      ],
      "env": {
        "JAVA_PROJECT_PATH": "<YOUR_JAVA_PROJECT_PATH>",
        "JAVALENS_TIMEOUT_SECONDS": "<YOUR_JAVALENS_TIMEOUT_SECONDS>",
        "JAVALENS_LOG_LEVEL": "<YOUR_JAVALENS_LOG_LEVEL>"
      }
    }
  }
}

Cline

Merge this local stdio configuration, replace every placeholder environment value, and restart Cline. Koskamo has not executed this package.
Cline configuration
{
  "mcpServers": {
    "javalens-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "javalens-mcp@1.5.3"
      ],
      "env": {
        "JAVA_PROJECT_PATH": "<YOUR_JAVA_PROJECT_PATH>",
        "JAVALENS_TIMEOUT_SECONDS": "<YOUR_JAVALENS_TIMEOUT_SECONDS>",
        "JAVALENS_LOG_LEVEL": "<YOUR_JAVALENS_LOG_LEVEL>"
      }
    }
  }
}

VS Code

Merge this local stdio configuration, replace every placeholder environment value, and restart VS Code. Koskamo has not executed this package.
VS Code configuration
{
  "servers": {
    "javalens-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "javalens-mcp@1.5.3"
      ],
      "env": {
        "JAVA_PROJECT_PATH": "<YOUR_JAVA_PROJECT_PATH>",
        "JAVALENS_TIMEOUT_SECONDS": "<YOUR_JAVALENS_TIMEOUT_SECONDS>",
        "JAVALENS_LOG_LEVEL": "<YOUR_JAVALENS_LOG_LEVEL>"
      }
    }
  }
}

Claude Desktop

Merge this local stdio configuration, replace every placeholder environment value, and restart Claude Desktop. Koskamo has not executed this package.
Claude Desktop configuration
{
  "mcpServers": {
    "javalens-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "javalens-mcp@1.5.3"
      ],
      "env": {
        "JAVA_PROJECT_PATH": "<YOUR_JAVA_PROJECT_PATH>",
        "JAVALENS_TIMEOUT_SECONDS": "<YOUR_JAVALENS_TIMEOUT_SECONDS>",
        "JAVALENS_LOG_LEVEL": "<YOUR_JAVALENS_LOG_LEVEL>"
      }
    }
  }
}

Let your agent find its tools

Find servers like JavaLens MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.