Connections & Capabilities
Connects To
Capabilities
Quickstart
Config
{
"mcpServers": {
"gradle-mcp-server": {
"command": "java",
"args": [
"-jar",
"<absolute_path_to_home>/mcp-servers/gradle-mcp-server/gradle-mcp-server-all.jar"
],
"env": {},
"disabled": false,
"autoApprove": []
}
}
}Exposed MCP Tools (3)
get_gradle_project_infoRetrieves structured information about a Gradle project, including build structure, tasks, environment, and project details.
Read-only operation with no side effects.
execute_gradle_taskExecutes specified Gradle tasks with custom arguments, JVM arguments, and environment variables.
Executes arbitrary Gradle tasks, potentially leading to code execution.
run_gradle_testsExecutes Gradle test tasks and returns structured results in a hierarchical JSON format.
Executes test tasks; failure output is filtered/truncated, but arbitrary code execution is still possible.
Safety Assessment
The Gradle MCP server is relatively safe for read-only operations like project inspection. However, executing tasks carries inherent risks due to the potential for arbitrary code execution within the Gradle environment. Exercise caution when using task execution tools, especially with untrusted projects.
- Limited internet exposure (primarily stdio-based)
- No built-in authentication mechanism
- Clear separation of read and write operations via distinct tools
- Test execution results are structured and filtered by default
- Executes arbitrary Gradle tasks, potentially leading to code execution
- Relies on the security of the underlying Gradle project
- No explicit sandboxing for task execution
- Can expose project information and build environment details
