Gradle Class Finder MCP Server

一个基于 Model Context Protocol (MCP) 的 Gradle 项目类查找服务,帮助在 Gradle 项目依赖中查找指定的类并获取其源代码。

Local serverstdio

What is the Gradle Class Finder MCP MCP server?

一个基于 Model Context Protocol (MCP) 的 Gradle 项目类查找服务,帮助在 Gradle 项目依赖中查找指定的类并获取其源代码。. Exposed over MCP by the gradle class finder mcp mcp server, that capability becomes something an assistant can invoke while it works, not something you go and do afterwards.

Its toolset

Everything the assistant can do here goes through one of these:

  • workspace_dir — /path/to/gradle/project
  • class_name — com.example.MyClass
  • jar_path — /path/to/library.jar
  • JAVA_OPTS — JVM 参数设置(例如:-Xmx512m -Xms256m)

Adding it to your client

Setup follows the usual MCP pattern — install or clone the server, register it in your client's configuration file, restart the client. The configuration blocks on this page cover the common clients.

When to reach for it

Among the developer tooling options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Gradle Class Finder MCP's toolset — workspace_dir, class_name, jar_path and 1 more — is a fair guide to whether it matches your workflow. It is maintained by touwaeriol; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against Gradle Class Finder MCP's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Caveats

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • MCP clients confirm each tool call by default. Leave that on until you have watched what the gradle class finder mcp mcp server does with a few real requests.

Available tools

ToolWhat it does
workspace_dir/path/to/gradle/project
class_namecom.example.MyClass
jar_path/path/to/library.jar
JAVA_OPTSJVM 参数设置(例如:-Xmx512m -Xms256m)

How to install the Gradle Class Finder MCP MCP server

{
  "mcpServers": {
    "gradle-class-finder": {
      "command": "java",
      "args": ["-jar", "/path/to/gradle-class-finder-mcp.jar"]
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Example prompts to try

  • Use Gradle Class Finder MCP to workspace dir.
  • Use Gradle Class Finder MCP to class name.
  • Use Gradle Class Finder MCP to jar path.

Frequently asked questions

It connects Gradle Class Finder MCP to MCP-compatible AI assistants such as Claude and Cursor, exposing 4 tools (workspace_dir, class_name, jar_path, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Gradle Class Finder MCP directly.