MCP Jenkins Server logo

MCP Jenkins Server

by walidcd

A Model Context Protocol (MCP) server that provides Jenkins integration tools. It allows users to interact with a Jenkins server to get information, manage jobs, and trigger builds.

View on GitHub

Last updated: N/A

What is MCP Jenkins Server?

This is an MCP server designed to facilitate interaction with a Jenkins server. It provides a set of tools to retrieve information, manage jobs, and trigger builds through a defined protocol.

How to use MCP Jenkins Server?

  1. Clone the repository.
  2. Install dependencies using pip install -r requirements.txt.
  3. Configure Jenkins credentials in a .env file (JENKINS_URL, JENKINS_USER, JENKINS_TOKEN).
  4. Configure the MCP server in your CLI (example provided in the README).

Key features of MCP Jenkins Server

  • Get Jenkins server information

  • List and inspect Jenkins jobs

  • Get recent builds and their summaries

  • Get build information and console output

  • Manage Jenkins views

  • Trigger job builds with parameters

Use cases of MCP Jenkins Server

  • Automating Jenkins job management

  • Integrating Jenkins build information into other systems

  • Triggering Jenkins builds from external applications

  • Monitoring Jenkins build status and console output programmatically

FAQ from MCP Jenkins Server

What is MCP?

MCP stands for Model Context Protocol. It's a protocol used for communication and interaction in this server.

What are the requirements to use this server?

You need Python 3.10+, a Jenkins server with API access, and a Jenkins API token for authentication.

How do I configure the Jenkins credentials?

Create a .env file with the following variables: JENKINS_URL, JENKINS_USER, JENKINS_TOKEN.

How do I trigger a job build?

Use the trigger_job_build tool, providing the job name and optional parameters.

How do I get the console output of a build?

Use the get_build_console_output tool, providing the job name and build number.