About Jenkins MCP Server
Jenkins MCP Server connects LLMs to Jenkins instances through resources, tools, and predefined prompts. It is intended for users who need to inspect Jenkins jobs and carry out job operations through an MCP interface.
Key features
- 01Access job configurations and build history
- 02View job status information
- 03Trigger Jenkins builds
- 04Update job configurations and manage tasks
- 05Use predefined prompts for Jenkins operations
Use cases
- 01Check a job's configuration and build history
- 02Review Jenkins job status
- 03Trigger a build through an MCP tool
- 04Manage Jenkins tasks using predefined interaction patterns
MCP support
The server exposes Jenkins job data as MCP resources, Jenkins operations as tools, and common interaction patterns as prompts for LLM clients.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEJenkins MCP Server
A Model Context Protocol (MCP) server that provides access to Jenkins data and functionality through a standardized interface for LLMs.
Overview
This project implements an MCP server that connects to Jenkins instances, allowing Large Language Models to:
- Access Jenkins job data as resources
- Execute Jenkins-related operations through tools
- Utilize predefined prompts for common Jenkins interactions
Installation
Prerequisites
- Python 3.8+
- Access to a Jenkins instance
Setting up with uv
We recommend using uv for managing Python environments:
# Install uv if you haven't already
curl -sSf https://install.ultraviolet.dev | sh
# Create a new project
uv init jenkins-mcp-server
cd jenkins-mcp-server
# Add dependencies
uv add "mcp[cli]"
uv add python-jenkins
Environment Variables
Create a .env file with your Jenkins configuration:
# Create .env file
cat > .env << EOL
JENKINS_URL=https://your-jenkins-instance.com
JENKINS_USERNAME=your_username
JENKINS_API_TOKEN=your_api_token
EOL
# Load environment variables in your shell
source .env
Usage
Running the server
Start the server in development mode with:
uv run mcp dev server.py
Features
- Resources: Access Jenkins job configurations, build history, and status information
- Tools: Trigger builds, update job configurations, and manage Jenkins tasks
- Prompts: Pre-defined interaction patterns for common Jenkins operations
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.