Gradle-accurate JVM classpath; fetch Java source, signatures, and class structure for agents.
registry version 1.16.0
npm
npx -y jvmsrcnpm
npx -y jvmsrc@1.16.0
Pick your client — the config below is generated for this server (local stdio). Copy respects the “Pin version” switch above.
claude_desktop_config.json
{
"mcpServers": {
"jvmsrc": {
"command": "npx",
"args": [
"-y",
"jvmsrc"
]
}
}
}{
"mcpServers": {
"jvmsrc": {
"command": "npx",
"args": [
"-y",
"jvmsrc@1.16.0"
]
}
}
}Format verified against the official Claude Desktop docs ↗.
terminal
claude mcp add jvmsrc -- npx -y jvmsrc
claude mcp add jvmsrc -- npx -y jvmsrc@1.16.0
Format verified against the official Claude Code docs ↗.
.cursor/mcp.json
{
"mcpServers": {
"jvmsrc": {
"command": "npx",
"args": [
"-y",
"jvmsrc"
]
}
}
}{
"mcpServers": {
"jvmsrc": {
"command": "npx",
"args": [
"-y",
"jvmsrc@1.16.0"
]
}
}
}Format verified against the official Cursor docs ↗.
.vscode/mcp.json
{
"servers": {
"jvmsrc": {
"command": "npx",
"args": [
"-y",
"jvmsrc"
]
}
}
}{
"servers": {
"jvmsrc": {
"command": "npx",
"args": [
"-y",
"jvmsrc@1.16.0"
]
}
}
}Format verified against the official VS Code docs ↗.
mcp_config.json
{
"mcpServers": {
"jvmsrc": {
"command": "npx",
"args": [
"-y",
"jvmsrc"
]
}
}
}{
"mcpServers": {
"jvmsrc": {
"command": "npx",
"args": [
"-y",
"jvmsrc@1.16.0"
]
}
}
}Format verified against the official Windsurf docs ↗.
Defined in the server's official registry manifest. Required secrets are shown as <YOUR_…> placeholders in the configs above.
JVMSRC_ALLOWED_ROOTS — Optional comma-separated absolute paths; only these project roots are allowed.JVMSRC_CACHE_ROOT — Optional absolute path for resolution and decompile caches (default: OS cache dir).JVMSRC_LOG_DIR — Optional absolute path for failure diagnostic logs.JVMSRC_MAX_SOURCE_OUTPUT_CHARS — Max characters returned for full-file source (default 524288).JVMSRC_GRADLE_TIMEOUT_MS — Gradle resolution subprocess timeout in milliseconds.JVMSRC_CFR_PATH — Optional path to a custom CFR JAR for decompilation.⭐ 4 stars · 最近更新于 23 天前 · MIT license
jvmsrc — Give your coding agent a Java IDE An MCP server and CLI that gives your coding agent the one thing it's missing on JVM codebases: the actual classpath . The Problem You use an IDE to write Java. Your coding agent doesn't have one. When your agent hits an unfamiliar…
Summary from the project README — github.com/Sintexer/jvm-source-lens
Distributed as npm, listed under Developer Tools. Review our MCP security guide before granting access to real data.
jvmsrc — Give your coding agent a Java IDE An MCP server and CLI that gives your coding agent the one thing it's missing on JVM codebases: the actual classpath . The Problem You use an IDE to write Java. Your coding agent doesn't have one. When your agent hits an unfamiliar
Run the install command shown above, then paste the config for your client (Claude Desktop, Claude Code, Cursor, VS Code or Windsurf) into its MCP settings and restart the client.
The MCP server itself is free to install. The source is public on https://github.com/Sintexer/jvm-source-lens. Any third-party service it calls may require its own API key and account.
Any MCP-compatible client can use it, including Claude Desktop, Claude Code, Cursor, VS Code, Windsurf and custom agents.
Publish this server? Link back with a badge on your README or site — copy either snippet.
Markdown
[](https://mcpnav.net/server/jvmsrc/)
HTML
<a href="https://mcpnav.net/server/jvmsrc/"><img src="https://mcpnav.net/badge/jvmsrc.svg" alt="Listed on MCPNav" height="20"></a>