Jenkins MCP Server

Integrations
  • Supports Docker integration for building and testing environments, with specific commands for building Docker images and running tests in containerized environments.

  • Allows interaction with Jenkins CI/CD platform, enabling triggering of jobs, retrieving build statuses, and performing other Jenkins operations through the MCP interface.

mcp_jenkins

A Jenkins MCP server. Model Context Protocol (MCP) lets AI tools (like chatbots) talk to and control your Jenkins setup, i. e. retrieve information and modify settings.

Note: This is a minimal experimental version of the MCP Jenkins server and is currently in early development.

Description

This project provides a Model Context Protocol (MCP) server for interacting with Jenkins. It allows users to trigger Jenkins jobs, get build statuses, and perform other Jenkins-related operations through the MCP interface.

Installation

To install the package and make the console scripts available, run:

pip install .

Usage

Once the package is installed using pip install ., the following console scripts become available in your shell environment:

  • mcp_jenkins_server: Runs the MCP server.
  • mcp_jenkins_client: Runs an example client.
  • mcp_jenkins_run_docker_build: Builds the Docker image for the server. This should be run before executing tests.
  • mcp_jenkins_run_docker_tests: Runs tests using Docker (e.g., server/client/server tests). This script typically requires the Docker image to be built first using mcp_jenkins_run_docker_build.

These scripts eliminate the need to manually manage Python paths or install requirements separately if the package has been installed.

Common Workflows

Running the Server

To run the MCP server using the installed script:

mcp_jenkins_server
Running the Example Client

To run the example client using the installed script:

mcp_jenkins_client

For example, to list builds for a job named "backups" using a specific model, you can run:

mcp_jenkins_client --model gemini-2.0-flash-001 "list builds backups"

This might produce output similar to:

Query: list builds backups Result: Recent builds for backups: - Build #1086: FAILURE (http://myjenkins:8080/job/backups/1086/)
Building and Testing with Docker

A common workflow for development and testing is to first build the Docker image and then execute the tests:

  1. Build the Docker image: This step prepares the environment needed for testing.
    mcp_jenkins_run_docker_build
  2. Run tests: After the build is complete, execute the tests.
    mcp_jenkins_run_docker_tests

This sequence ensures that tests are performed against the latest build in a consistent Dockerized environment.

OpenWebUI Integration

The file open-webui/open_webui_interface.py provides an example of how to integrate this MCP Jenkins server with an OpenWebUI instance.

To use it:

  1. In your OpenWebUI interface, navigate to the section for adding or configuring tools.
  2. Create a new tool.
  3. Copy the entire content of the open-webui/open_webui_interface.py file and paste it into the tool configuration in OpenWebUI.
  4. Important: You will need to adjust the connection parameters within the pasted code, specifically:
    • MCP_JENKINS_SERVER_URL: Set this environment variable in your OpenWebUI environment to the URL of your running MCP Jenkins server (e.g., http://localhost:5000). The script defaults to http://localhost:5000 if the variable is not set.
    • MCP_API_KEY: If your MCP Jenkins server is configured to require an API key, ensure this environment variable is set in your OpenWebUI environment. The script will print a warning if it's not found but will still attempt to make requests.

Once configured, the tools defined in open_webui_interface.py (e.g., list_jobs, trigger_build, get_build_status) should become available for use within your OpenWebUI chat interface.

License

This project is licensed under the MIT License.

-
security - not tested
A
license - permissive license
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

A Model Context Protocol (MCP) server that enables AI tools like chatbots to interact with and control Jenkins, allowing users to trigger jobs, check build statuses, and perform other Jenkins operations through natural language.

  1. Description
    1. Installation
      1. Usage
        1. Common Workflows
      2. OpenWebUI Integration
        1. License

          Related MCP Servers

          • A
            security
            A
            license
            A
            quality
            A Model Context Protocol server that enables AI assistants to interact with Jenkins CI/CD servers, providing tools to check build statuses, trigger builds, and retrieve build logs.
            Last updated -
            3
            JavaScript
            MIT License
            • Apple
          • A
            security
            A
            license
            A
            quality
            A server that uses the Model Context Protocol (MCP) to allow AI agents to safely execute shell commands on a host system.
            Last updated -
            1
            76
            2
            TypeScript
            MIT License
            • Linux
            • Apple
          • -
            security
            A
            license
            -
            quality
            A Model Context Protocol (MCP) server that enables real-time, interactive AI chat with Selector AI through a streaming-capable server and Docker-based client communicating via stdin/stdout.
            Last updated -
            1
            Python
            Apache 2.0
          • -
            security
            A
            license
            -
            quality
            The Model Context Protocol (MCP) Jenkins integration is an open-source implementation that bridges Jenkins with AI language models following Anthropic's MCP specification. This project enables secure, contextual AI interactions with Jenkins tools while maintaining data privacy and security.
            Last updated -
            4
            Python
            MIT License
            • Linux
            • Apple

          View all related MCP servers

          ID: v9wkwr2min