Jenkins MCP Server
The Jenkins MCP Server enables AI assistants to manage and monitor Jenkins CI/CD pipelines through natural language commands and programmatic tools.
Build Management: Trigger builds with optional parameters and file uploads, stop or force-kill running builds, schedule builds for future execution, and update build descriptions.
Job & Build Information: Retrieve detailed metadata for jobs and builds, get comprehensive build details, and list jobs with pagination and optional filtering by parent folder.
System Monitoring: Check Jenkins instance health status and identify the currently authenticated user.
Artifact Handling: List build artifacts and read their contents in text or base64 format.
Queue Management: View queued builds with optional job filtering and cancel pending builds (specific items or all for a given job).
Provides comprehensive tools for managing Jenkins builds, jobs, artifacts, and queue operations, including triggering builds, retrieving job information, monitoring system health, and handling build artifacts.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Jenkins MCP Server trigger a build for my-app with BRANCH=main"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Jenkins MCP Server
🚀 AI-powered Jenkins management via Model Context Protocol. Trigger builds, manage jobs, and monitor CI/CD pipelines through your favorite AI assistant.
� Installation
Option 1: Global Installation (Recommended)
npm install -g jenkins-mcp-serverOption 2: Local Installation
npm install jenkins-mcp-serverOption 3: Use with npx (No Installation)
npx jenkins-mcp-serverRelated MCP server: Jenkins MCP Server
⚙️ Configuration
Set required environment variables:
export JENKINS_URL="http://your-jenkins-instance:8080"
export JENKINS_USERNAME="your-username"
export JENKINS_API_TOKEN="your-api-token"Getting Jenkins API Token
Login to Jenkins → Click your username → Configure
Under "API Token" → Add new Token → Generate
Copy the token and use it as
JENKINS_API_TOKEN
🤖 MCP Client Setup
GitHub Copilot (VS Code)
Add to mcp.json:
{
"servers": {
"jenkins": {
"command": "npx",
"args": ["jenkins-mcp-server"],
"env": {
"JENKINS_URL": "http://your-jenkins-instance:8080",
"JENKINS_USERNAME": "your-username",
"JENKINS_API_TOKEN": "your-api-token"
// "ALLOW_ABSOLUTE_FILE_PARAMS": 1 // for file parameters with absolute paths
}
}
}
}Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"jenkins": {
"command": "npx",
"args": ["jenkins-mcp-server"],
"env": {
"JENKINS_URL": "http://your-jenkins-instance:8080",
"JENKINS_USERNAME": "your-username",
"JENKINS_API_TOKEN": "your-api-token",
// "ALLOW_ABSOLUTE_FILE_PARAMS": 1 // for file parameters with absolute paths
}
}
}
}🛠️ Available Tools
Each tool returns a JSON result with success plus additional fields. Provide arguments as an object when invoking via an MCP client.
Build Management
triggerBuild – Start a job build (supports file + regular parameters) Inputs:
jobFullName(string, required)parameters(object, optional) – Key/value map. Any value that is a valid local file path is uploaded as a file parameter.
File Parameter Security: By default, only relative file paths are allowed. To enable absolute file paths, set ALLOW_ABSOLUTE_FILE_PARAMS=1 in your environment variables.
Returns: { success, queueId, queueUrl, statusCode, message }
stopBuild – Stop (or force kill) the running build Inputs:
jobFullName(string, required)buildNumber(integer, optional) Returns:{ success, action: "stop"|"kill", buildNumber, buildUrl, message }
scheduleBuild – Schedule a build in the future Inputs:
jobFullName(string, required)scheduleTime(string, required) – e.g.22:15,10:30 PM, or2025-12-24 14:30parameters(object, optional)
File Parameter Security: By default, only relative file paths are allowed. To enable absolute file paths, set ALLOW_ABSOLUTE_FILE_PARAMS=1 in your environment variables.
Returns: { status, queueUrl }
updateBuild – Update build description (display name not supported via REST) Inputs:
jobFullName(string, required)buildNumber(integer, optional)description(string, optional)displayName(string, optional, ignored) Returns:{ success, buildNumber, updates: [ { field, success, ... } ] }
Job Information
getJob – Job metadata
Inputs: jobFullName (string, required)
getBuild – Build details (specific or last) Inputs:
jobFullName(string, required)buildNumber(integer, optional)
getJobs – Paginated job list Inputs:
parentFullName(string, optional)skip(integer, optional, default 0)limit(integer, optional, default 10, max 10)
System Monitoring
whoAmI – Current authenticated user Inputs: none
getStatus – Jenkins instance status / health Inputs: none
Artifact Management
listBuildArtifacts – List artifacts for build Inputs:
jobFullName(string, required)buildNumber(integer, optional)
readBuildArtifact – Read artifact content (text or base64) Inputs:
jobFullName(string, required)artifactPath(string, required)buildNumber(integer, optional)format(string, optional:text|base64)
Queue Operations
cancelQueuedBuild – Cancel queued item(s) Inputs:
jobFullName(string, required)queueId(integer, optional)
getQueueInfo – List queued builds (optionally filtered) Inputs:
jobFullName(string, optional)
Tip: Ask your AI assistant: "Trigger a build for job X with BRANCH=main" or "List artifacts for latest job X build".
⚡ Usage
After configuration, ask your AI assistant:
"Check my Jenkins server status"
"Trigger a build for my-app"
"Show me the latest build information"
"List all Jenkins jobs"
📄 License
MIT License - see LICENSE file for details.
Available Tools
14 toolscancelQueuedBuildA
Cancel a pending/queued Jenkins build that hasn't started yet
Inputs: jobFullName (required), queueId.
getBuildC
Get information about a specific build or the last build
Inputs: jobFullName (required), buildNumber.
getJobC
Get information about a Jenkins job
Inputs: jobFullName (required).
getJobsB
Get a paginated list of Jenkins jobs
Inputs: parentFullName, skip, limit.
getQueueInfoC
Get information about queued builds
Inputs: jobFullName.
getQueueItemB
Get a specific queued item by queueId and see whether it transitioned to a build
Inputs: queueId (required).
getStatusB
Get Jenkins instance status and health information
Inputs: no named parameters.
listBuildArtifactsC
List all artifacts from a specific build or the last build
Inputs: jobFullName (required), buildNumber.
readBuildArtifactC
Read the content of a specific build artifact
Inputs: jobFullName (required), artifactPath (required), buildNumber, format.
scheduleBuildB
Schedule a Jenkins build with file and regular parameters to run at a specific time
Inputs: jobFullName (required), scheduleTime (required), parameters (required), description.
stopBuildC
Stop/kill a running Jenkins build
Inputs: jobFullName (required), buildNumber.
triggerBuildC
Trigger a Jenkins job build with file and regular parameters
Inputs: jobFullName (required), parameters (required).
updateBuildC
Update build display name and/or description
Inputs: jobFullName (required), buildNumber, displayName, description.
whoAmIB
Get information about the current authenticated user
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 14 tools
Most tools have distinct purposes targeting specific Jenkins resources like builds, jobs, queue, artifacts, and system status. However, getBuild and getJob could potentially be confused if an agent isn't clear about the difference between a build (execution instance) and a job (configuration template), though their descriptions help clarify this distinction.
Tool names follow a highly consistent verb_noun pattern throughout, using clear action verbs like get, list, cancel, trigger, update, read, and schedule paired with specific nouns. All names use camelCase consistently without any mixing of conventions, making them predictable and readable.
With 14 tools, this server is well-scoped for Jenkins automation, covering core operations like job management, build control, queue monitoring, artifact handling, and system status. Each tool earns its place by addressing a specific aspect of Jenkins interaction without being overly bloated or too sparse.
The toolset provides comprehensive coverage for Jenkins operations, including job listing/inspection, build triggering/stopping/canceling/updating, queue management, artifact access, and system/user info. A minor gap exists in job lifecycle management (e.g., create/update/delete job operations), but agents can still accomplish most workflows with the available tools.
Maintenance
Related MCP Connectors
Build and run AI workflows, agents, data tables and 1000+ API integrations from any MCP client.
Automate 1,000+ services from any MCP-compatible AI agent: build Applets, run actions and queries.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
The Buildkite MCP server exposes Buildkite product data (pipelines, builds, jobs, and test data) to AI tools, editors, and agents through the Model Context Protocol. It provides capabilities including pipeline creation and management, build monitoring with specialized tools like 'wait_for_build', efficient log querying using Apache Parquet conversion and caching, and OAuth-based authentication for both read-write and read-only access to Buildkite's REST API.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with Jenkins CI/CD systems for build management, job monitoring, console log analysis, and debugging through natural language commands.2MIT
- AlicenseNot gradedqualityDmaintenanceEnables interaction with Jenkins to manage jobs, trigger builds with parameters, and monitor build queues. It provides comprehensive access to build histories, console logs, and organizational folder structures via the Jenkins REST API.1MIT
- AlicenseBqualityDmaintenanceEnables AI assistants to interact with Jenkins CI/CD servers, including checking build status, triggering builds, and retrieving build logs.8MIT
- AlicenseBqualityDmaintenanceProvides AI assistants with full access to Jenkins CI/CD systems, enabling querying, managing, and controlling Jenkins jobs, builds, nodes, and queues through natural language.221,314 npm2MIT