Jenkins MCP Server

Jenkins MCP Server

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.

Category
Visit Server

README

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.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured