Jenkins MCP Server
This MCP server lets you inspect and administer Jenkins instances through 38 tools.
List/search jobs, inspect status/config/parameters, and create, update, rename, copy, enable, disable, or delete jobs.
Trigger, stop, delete, replay, and inspect builds, including console logs, changes, and pipeline stages.
Retrieve test results and list/download build artifacts.
View and cancel queued builds.
List/inspect nodes, toggle node offline status, and access Jenkins system info, version, and plugins.
List/get views, list configured instances, and manage system actions such as quiet-down and safe restart.
Support multiple Jenkins instances, Basic/API-token, bearer-token, or anonymous auth, configurable timeouts, and tool allow/block lists.
Provides tools for interacting with Jenkins CI/CD server, including job management, build operations, pipeline stages, console logs, test results, artefacts, queue management, node management, system info, plugins, views, and instance management.
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 of job 'deploy-pipeline' with params env=staging"
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 with bearer token authentication support
Website · Documentation
Features
39 tools — covers ~95% of the Jenkins API: jobs, builds, nodes, views, queue, plugins, and system operations
Bearer token auth — supports both classic API token and modern bearer token authentication
Multiple instances — connect to several Jenkins servers simultaneously using comma-separated env vars
Pipeline awareness — retrieve stage-by-stage pipeline status, console logs, test results, and build artefacts
Failure diagnosis —
jenkins_diagnose_buildreads a failed build in one screen: failing stages, the error lines from their logs, report links and failed testsNode management — list agents, toggle nodes online/offline, and inspect system info without leaving your AI client
Zero-install usage — run directly via
npx --yes @kud/mcp-jenkins@latestwith no local setup required
Related MCP server: host-mcp-jenkins
Install
npm install -g @kud/mcp-jenkinsOr use without installing via npx (see Usage below).
Usage
Add the server to your MCP client config. The recommended approach uses environment variables:
{
"mcpServers": {
"jenkins": {
"command": "npx",
"args": ["--yes", "@kud/mcp-jenkins@latest"],
"env": {
"MCP_JENKINS_URL": "https://pipeline.yourcompany.com",
"MCP_JENKINS_USER": "your_username",
"MCP_JENKINS_API_TOKEN": "your_api_token"
}
}
}
}For bearer token authentication, replace the env block with:
"env": {
"MCP_JENKINS_URL": "https://pipeline.yourcompany.com",
"MCP_JENKINS_BEARER_TOKEN": "your_bearer_token"
}Slow instances
Every request this server makes is bounded by one deadline, 30 seconds by default. A large or busy Jenkins can spend even longer answering a single call. When that happens, the error you see (Jenkins request timed out) comes from this server giving up, not from Jenkins refusing anything.
Raise it with MCP_JENKINS_TIMEOUT_MS:
"env": {
"MCP_JENKINS_URL": "https://pipeline.yourcompany.com",
"MCP_JENKINS_BEARER_TOKEN": "your_bearer_token",
"MCP_JENKINS_TIMEOUT_MS": "60000"
}Or on the command line:
mcp-jenkins --url https://pipeline.yourcompany.com --bearer-token abc123 --timeout-ms 60000One value applies to every configured instance. To find out what your instance actually needs, time the call the server makes:
time curl -u user:token 'https://pipeline.yourcompany.com/job/my-job/api/json'Environment variables
Variable | Description | Default |
| Jenkins server URL. Comma-separated to connect to several instances. | Required |
| Username for Basic auth, positional alongside the URL values. | None |
| API token for Basic auth, positional alongside the URL values. | None |
| Bearer token for token-based auth, instead of Basic auth. | None |
|
|
|
| Per-request deadline in milliseconds, applied to every instance. |
|
| Comma-separated instance names, pairing each name with a URL position. | Hostname per URL |
| Comma-separated tool names: expose only these tools. | All tools |
| Comma-separated tool names: hide these tools (ignored when the allowlist is set). | All tools |
Tools
Category | Tools |
Job operations |
|
Build operations |
|
Testing & artefacts |
|
Queue management |
|
System & nodes |
|
Views |
|
Instances & admin |
|
Development
git clone https://github.com/kud/mcp-jenkins.git
cd mcp-jenkins
npm install
npm run devTo test interactively with the MCP Inspector:
npm run inspect:dev📚 Full documentation → mcp-jenkins/docs
Available Tools
38 toolsjenkins_cancel_queueADestructive
Cancel a queued build by queue ID
Inputs: queueId (required), instance.
jenkins_cancel_quiet_downB
Cancel Jenkins quiet mode and resume accepting new builds
Inputs: instance.
jenkins_copy_jobB
Copy/duplicate a Jenkins job under a new name
Inputs: newName (required), fromName (required), instance.
jenkins_create_jobB
Create a new Jenkins job from an XML configuration
Inputs: jobName (required), configXml (required), instance.
jenkins_delete_buildBDestructive
Delete a specific build
Inputs: jobName (required), buildNumber (required), instance.
jenkins_delete_jobADestructive
Permanently delete a job (WARNING: cannot be undone)
Inputs: jobName (required), instance.
jenkins_disable_jobBDestructive
Disable a job to prevent it from running
Inputs: jobName (required), instance.
jenkins_enable_jobB
Enable a disabled job
Inputs: jobName (required), instance.
jenkins_get_artifactARead-onlyIdempotent
Download a specific artifact from a build (returns base64-encoded content)
Inputs: jobName (required), buildNumber (required), relativePath (required), instance.
jenkins_get_build_changesBRead-onlyIdempotent
Get Git commits/changes for a build
Inputs: jobName (required), buildNumber (required), instance.
jenkins_get_build_statusBRead-onlyIdempotent
Get detailed status of a specific build number for a job
Inputs: jobName (required), buildNumber (required), instance.
jenkins_get_console_logARead-onlyIdempotent
Get console log output from a build. Returns both a snippet and full log.
Inputs: jobName (required), instance, buildNumber.
jenkins_get_job_configARead-onlyIdempotent
Get job configuration XML
Inputs: jobName (required), instance.
jenkins_get_job_parametersARead-onlyIdempotent
Get the parameter definitions for a parameterised Jenkins job — names, types, defaults, and choices
Inputs: jobName (required), instance.
jenkins_get_job_statusARead-onlyIdempotent
Get the status of the last build for a specific job
Inputs: jobName (required), instance.
jenkins_get_nodeARead-onlyIdempotent
Get detailed information about a specific Jenkins node/agent
Inputs: nodeName (required), instance.
jenkins_get_pipeline_stagesARead-onlyIdempotent
Get pipeline stages and their status for a build
Inputs: jobName (required), buildNumber (required), instance.
jenkins_get_pluginsARead-onlyIdempotent
List all installed Jenkins plugins
Inputs: instance.
jenkins_get_queueBRead-onlyIdempotent
Get the current build queue showing pending builds
Inputs: instance.
jenkins_get_recent_buildsARead-onlyIdempotent
Get recent builds for a job with their status and metadata
Inputs: jobName (required), limit, instance.
jenkins_get_system_infoARead-onlyIdempotent
Get Jenkins system information
Inputs: instance.
jenkins_get_test_resultsARead-onlyIdempotent
Get test results for a build (pass/fail counts, test suites)
Inputs: jobName (required), buildNumber (required), instance.
jenkins_get_versionCRead-onlyIdempotent
Get Jenkins version
Inputs: instance.
jenkins_get_viewBRead-onlyIdempotent
Get details and job list for a specific Jenkins view
Inputs: viewName (required), instance.
jenkins_list_artifactsARead-onlyIdempotent
List all artifacts produced by a specific build
Inputs: jobName (required), buildNumber (required), instance.
jenkins_list_instancesARead-onlyIdempotent
List all configured Jenkins instances with their names and URLs
Inputs: instance.
jenkins_list_jobsARead-onlyIdempotent
List all Jenkins jobs with their names and URLs
Inputs: instance.
jenkins_list_nodesARead-onlyIdempotent
List all Jenkins nodes/agents and their status
Inputs: instance.
jenkins_list_viewsARead-onlyIdempotent
List all Jenkins views with their jobs
Inputs: instance.
jenkins_quiet_downADestructive
Put Jenkins into quiet mode — no new builds will start until cancelled (requires confirm: true)
Inputs: confirm (required), reason, instance.
jenkins_rename_jobBDestructive
Rename a Jenkins job
Inputs: jobName (required), newName (required), instance.
jenkins_replay_buildA
Replay/rerun a pipeline build, optionally with a modified pipeline script
Inputs: jobName (required), buildNumber (required), instance, mainScript.
jenkins_safe_restartADestructive
Safely restart Jenkins — waits for running builds to finish before restarting (requires confirm: true)
Inputs: confirm (required), instance.
jenkins_search_jobsARead-onlyIdempotent
Search for Jenkins jobs by name (case-insensitive substring match)
Inputs: query (required), instance.
jenkins_stop_buildADestructive
Stop/abort a running build
Inputs: jobName (required), buildNumber (required), instance.
jenkins_toggle_node_offlineBDestructive
Toggle a Jenkins node/agent between online and offline
Inputs: nodeName (required), instance, offlineMessage.
jenkins_trigger_buildB
Trigger a new build for a job, optionally with parameters
Inputs: jobName (required), params, instance.
jenkins_update_job_configADestructive
Update an existing job's XML configuration
Inputs: jobName (required), configXml (required), instance.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 38 tools
Each tool targets a distinct Jenkins resource or action (e.g., jobs, builds, nodes, views), with clear boundaries. Overlap like get_build_status vs get_job_status is resolved by explicit parameter differences.
All tools follow the consistent pattern 'jenkins_verb_noun' (e.g., jenkins_create_job, jenkins_list_jobs), with no mixing of conventions or ambiguous verbs.
38 tools is significantly above the typical well-scoped range of 3-15. While Jenkins is complex and many tools are justified, the count feels heavy and could overwhelm agents.
Core operations for jobs and builds are covered, but notable gaps exist: no create/delete for nodes or views, and missing build triggers. This leaves some workflows incomplete.
Maintenance
Related MCP Connectors
MCP Server for JFrog, providing tools for development and artifact management.
Meta Ads MCP server with 47 tools for campaigns, creatives, audiences, and insights.
MCP gateway with 10 tools for code analysis, architecture, package audit & security.
One MCP server for all your MCP servers: code mode, per-tool permissions, approvals and audit.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server for interacting with a Jenkins CI/CD server. Allows you to trigger jobs, check build statuses, and manage your Jenkins instance through MCP.31 npm14Apache 2.0
- AlicenseAqualityDmaintenanceA local MCP server for Jenkins that provides 17 tools to interact with Jenkins jobs, builds, logs, SCM, and test results via REST API, no plugin required.17139 npm1MIT
- AlicenseBqualityDmaintenanceMCP server for Jira and Confluence integration with 32 tools for managing tickets, sprints, boards, worklogs, and Confluence pages.3711 npm1GPL 2.0
- AlicenseNot gradedqualityBmaintenanceMCP server for Jenkins to inspect builds, control jobs, and manage pipeline configuration.48 npmMIT