Jenkins API MCP Server logo

Jenkins API MCP Server

by ProgrammerAgua

This is a MCP Server service based on Spring AI for Jenkins Rest API calls. It provides common operation interfaces for Jenkins jobs.

View on GitHub

Last updated: N/A

What is Jenkins API MCP Server?

The Jenkins API MCP Server is a service built on Spring AI that provides a simplified interface for interacting with the Jenkins REST API. It offers common operations for managing and interacting with Jenkins jobs.

How to use Jenkins API MCP Server?

To use the server, you need to build the project using Maven, configure the mcp.json file with your Jenkins server URI, username, and token, and then run the generated JAR file. The server exposes APIs for job management, building, information retrieval, and configuration.

Key features of Jenkins API MCP Server

  • Job Management (Create, delete, enable/disable, rename)

  • Job Building (Trigger builds, build with parameters, stop builds)

  • Job Information (Get job info, build info, build logs)

  • Job Configuration (Get and update job configurations)

Use cases of Jenkins API MCP Server

  • Automating Jenkins job creation and management

  • Integrating Jenkins build triggers into other systems

  • Retrieving build information and logs programmatically

  • Programmatically updating Jenkins job configurations

FAQ from Jenkins API MCP Server

What is the minimum JDK version required?

JDK 17 or higher is required.

What is the purpose of JENKINS_API_SERVER_URI?

It specifies the address of your Jenkins server.

How do I enable the Remote Access API in Jenkins?

You need to enable it in Jenkins settings.

What is the purpose of the mcp.json file?

It's a configuration file that contains the command to run the jar file and the environment variables used by the server.

What technologies are used to build this server?

Spring Boot 3.3.6, Jenkins REST API Client, and Spring AI MCP Server