About Jenkins Mcp
Jenkins MCP Server connects Jenkins to MCP clients, letting DevOps teams inspect server and job status, review builds and console output, manage views, and trigger parameterized builds.
Key features
- 01Retrieve Jenkins server information
- 02List and inspect jobs
- 03Review recent builds and summaries
- 04Read build details and console output
- 05Manage views and trigger builds
Use cases
- 01Check Jenkins job and server status
- 02Investigate build results and console logs
- 03Start parameterized Jenkins builds
MCP support
Exposes Jenkins information and build-management tools to MCP clients. Connection requires Jenkins API access and an API token.
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 READMEMCP 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
- Clone this repository
- Install dependencies:
pip install -r requirements.txt
Configuration
Create a .env file with your Jenkins credentials:
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 :
{
"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 jobcount(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 jobbuild_number: Build number to inspect
get_build_console_output
Get console output for a specific build
- Parameters:
job_name: Name of the jobbuild_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 jobparameters(optional): Dictionary of parameters to pass to the job
demo video :
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.