Jenkins Mcp

by WinJayX

1 stars
353 downloads
Not rated
GitHub

About

Jenkins Mcp is a Model Context Protocol (MCP) server that provides Jenkins integration tools. It allows AI assistants to interact with a Jenkins server – retrieving job information, build details, console output, views, and triggering builds – using Jenkins API authentication.

Details

Author
WinJayX
GitHub stars
1
Downloads
353
Categories
Other, Infrastructure

- Retrieve Jenkins server information
- List and inspect Jenkins jobs
- Get recent builds and build summaries
- View build details and console output
- List and manage Jenkins views
- Trigger job builds with optional parameters

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 Jenkins Mcp
    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

Install dependencies with pip install -r requirements.txt, then configure credentials in a .env file (JENKINS_URL, JENKINS_USER, JENKINS_TOKEN) or via environment variables in the MCP client configuration. Add the server to your MCP client (e.g., Claude Desktop) by editing claude_desktop_config.json with the command and environment variables. Once connected, any MCP‑compatible assistant can call the exposed tools by name.

Claude Desktop / Cursor

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

{
    "mcpServers": {
        "jenkins mcp": {
            "mcp-jenkins-server": {
                "command": "/Users/username/.local/bin/uv -> //uv full path",
                "args": [
                    "--directory",
                    "/Users/username/Desktop/mcp-jenkins-server -> //project path ",
                    "run",
                    "server.py"
                ],
                "env": {
                    "JENKINS_URL": "http://localhost:8080",
                    "JENKINS_USERNAME": "xx",
                    "JENKINS_PASSWORD": "xx"
                },
                "disabled": false,
                "autoApprove": []
            }
        }
    }
}

McpServers

{
    "mcp-jenkins-server": {
        "command": "/Users/username/.local/bin/uv -> //uv full path",
        "args": [
            "--directory",
            "/Users/username/Desktop/mcp-jenkins-server -> //project path ",
            "run",
            "server.py"
        ],
        "env": {
            "JENKINS_URL": "http://localhost:8080",
            "JENKINS_USERNAME": "xx",
            "JENKINS_PASSWORD": "xx"
        },
        "disabled": false,
        "autoApprove": []
    }
}

MCP Jenkins Server

A Model Context Protocol (MCP) server that provides Jenkins integration tools.

Features

- 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

Requirements

- Python 3.10+ - Jenkins server with API access - Jenkins API token for authentication

Installation

1. Clone this repository 2. Install dependencies: ``bash pip install -r requirements.txt `

Configuration

Create a
.env file with your Jenkins credentials: `ini JENKINS_URL=https://your-jenkins-server JENKINS_USER=your-username JENKINS_TOKEN=your-api-token `

CLI Configuration

To add this MCP server to your CLI, use the following configuration: Change 'Support/Claude/claude_desktop_config.json' file content to :
`json { "mcpServers": { "mcp-jenkins-server": { "command": "/Users/username/.local/bin/uv -> //uv full path", "args": [ "--directory", "/Users/username/Desktop/mcp-jenkins-server -> //project path ", "run", "server.py" ], "env": { "JENKINS_URL": "http://localhost:8080", "JENKINS_USERNAME": "xx", "JENKINS_PASSWORD": "xx" }, "disabled": false, "autoApprove": [] } } } `

Available Tools

This MCP server provides the following tools:

get_jenkins_info

Get Jenkins server information

list_jobs

List all Jenkins jobs

get_job_info

Get information about a specific job - Parameters: - job_name: Name of the job to inspect

get_last_builds

Get a summary of the most recent builds for a job - Parameters: - job_name: Name of the job - count (optional): Number of recent builds to retrieve (default: 3)

get_build_info

Get detailed information about a specific build - Parameters: - job_name: Name of the job - build_number: Build number to inspect

get_build_console_output

Get console output for a specific build - Parameters: - job_name: Name of the job - build_number: Build number to inspect

get_views

List all Jenkins views

trigger_job_build

Trigger a Jenkins job build with optional parameters - Parameters: - job_name: Name of the job - parameters` (optional): Dictionary of parameters to pass to the job

demo video :

Demo
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.