MCP Server - Build Tools

by thepragmatik

255 downloads Not rated yet Apache-2.0 license
GitHub

About

An Model Context Protocol based Server for build tools for the JVM.

Details

License
Apache-2.0 license

Explore

- Simple to use: Set this up with any MCP client and LLM of your choice to invoke builds using natural language. No need to remember plugins, goals and arguments! and
- Supports Apache Maven: For now it only support Apache Maven. We might extend it for other build tools if there is interest.

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name MCP Server - Build Tools
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

List the software and tools needed before installing the project:
- Java 21 or later
- Maven
- MCP Client (Claude, Goose etc)
- optionally, a local LLM if you are using MCP client like Goose

1. Add this MCP server to Claude:

Locate the claude_desktop_config.json file under Claude installation directory

For MacOs, this is at:

~/Library/Application\ Support/Claude/claude_desktop_config.json

Then, add something like the following to it (replace the placeholders):

    {
"mcpServers": {
"maven-tools": {
"command": "<path-to-java-home-directory>/bin/java",
"args": [
"-jar",
"-Dmaven.home=<path-to-maven-home-directory>",
"<path-to-the-mcp-maven-server.jar>"
]
}
}
}

2. You may need to restart the Claude client. This will start the MCP server for build tools.

3. You should now be ready to interact with Maven via the MCP server using the Claude desktop. Go ahead submit a task in natural language to build a project.

A brief overview of what the project does and its purpose.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "mcp server - build tools": {
            "maven-tools": {
                "command": "<path-to-java-home-directory>/bin/java",
                "args": [
                    "-jar",
                    "-Dmaven.home=<path-to-maven-home-directory>",
                    "<path-to-the-mcp-maven-server.jar>"
                ]
            }
        }
    }
}

McpServers

{
    "maven-tools": {
        "command": "<path-to-java-home-directory>/bin/java",
        "args": [
            "-jar",
            "-Dmaven.home=<path-to-maven-home-directory>",
            "<path-to-the-mcp-maven-server.jar>"
        ]
    }
}

A brief overview of what the project does and its purpose.

Table of Contents

- Overview - Prerequisites - Features - Installation - Usage - Contributing - License

Overview

Describe the project, its goals, and any background context. For example: This project is to demonstrate an MCP server that enables users to interact with Maven (for now) using natural language. It aims to showcase how build tools can be exposed via MCP and offer a natural, intuitive way of building projects.

Prerequisites

List the software and tools needed before installing the project: - Java 21 or later - Maven - MCP Client (Claude, Goose etc) - optionally, a local LLM if you are using MCP client like Goose

Features

- Simple to use: Set this up with any MCP client and LLM of your choice to invoke builds using natural language. No need to remember plugins, goals and arguments! and - Supports Apache Maven: For now it only support Apache Maven. We might extend it for other build tools if there is interest.

Installation (For Claude Desktop)

1. Add this MCP server to Claude:

Locate the claude_desktop_config.json file under Claude installation directory

For MacOs, this is at:

~/Library/Application\ Support/Claude/claude_desktop_config.json

Then, add something like the following to it (replace the placeholders):

    {
"mcpServers": {
"maven-tools": {
"command": "<path-to-java-home-directory>/bin/java",
"args": [
"-jar",
"-Dmaven.home=<path-to-maven-home-directory>",
"<path-to-the-mcp-maven-server.jar>"
]
}
}
}

2. You may need to restart the Claude client. This will start the MCP server for build tools.

3. You should now be ready to interact with Maven via the MCP server using the Claude desktop. Go ahead submit a task in natural language to build a project.

Contributing

1. Use Github Issues to open issues or feature requests.

License

This repo is licensed under the Apache License. See the LICENSE file for details
No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.