Skip to main content
Glama
Christian-Carminati

MCP Maven Server

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MCP_JAVA_HOMENoOverride JDK path
MCP_MAVEN_TIMEOUT_MSNoBuild timeout in milliseconds300000
MCP_MAVEN_CACHE_ENABLEDNoEnable/disable build cachingtrue
MCP_MAVEN_MAX_LOG_LINESNoMax stdout lines to keep500
MCP_MAVEN_DEFAULT_PROFILENoDefault Maven profile
MCP_MAVEN_SPRING_RING_BUFFERNoSpring Boot log ring buffer size500
MCP_MAVEN_SPRING_STARTUP_TIMEOUTNoMax wait for Spring Boot startup120000

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
compileProjectB

Compile the Maven project and return structured compilation errors

getCompilationErrorsC

Run compile and return only the structured error list (no success noise)

runTestsA

Run all tests (mvn test) and return structured results

runSingleTestB

Run a single test class and return structured results

runSingleMethodB

Run a single test method and return structured results

getFailedTestsA

Read test reports and return only failed/errored tests without re-running

getTestReportsA

Read test reports from disk without running tests again

verifyProjectB

Run mvn verify — compile, test, and integration-check the project

packageProjectC

Package the project as JAR/WAR (skip tests by default)

cleanProjectC

Clean the project (mvn clean)

executeMavenCommandB

Execute an arbitrary Maven command with custom arguments. Output is parsed for errors.

getProjectInfoA

Detect the current Maven project structure: root, modules, Java version

getJavaInfoA

Detect which JDK is being used — from JAVA_HOME, mvn --version, or PATH

getMavenInfoA

Get Maven version and path from mvn --version

pingA

Health check — verify the MCP server is alive and responding

springBootRunB

Start the Spring Boot application. Captures logs and detects port/startup.

springBootStopA

Stop the Spring Boot application gracefully (actuator shutdown first, SIGTERM fallback)

springBootStatusB

Get the current status of the Spring Boot application (port, PID, uptime, health)

springBootRestartC

Restart the Spring Boot application (stop then start)

springBootLogsC

Get the most recent log lines from the running Spring Boot application

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Christian-Carminati/mcp-maven-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server