count_failed_jobs
Count how many Jenkins jobs currently have their last build in FAILURE state.
Check a Jenkins build, start a new one with parameters, and read the console output — without leaving the conversation.
LABSCO SUMMARY
Everything here is scoped to one job path at a time, so it fits the moment a build breaks: ask what happened, read the console output, fix, and trigger again with the same parameters. It does not browse Jenkins for you — you need to know the job path — and it does not manage jobs, credentials or nodes.
A small MCP server over a Jenkins CI/CD server. It covers the three things you actually do when a build is in question: find out whether it passed, kick off a new one with the parameters you want, and read the log when it did not.
get_build_statustrigger_buildget_build_logA Jenkins server and an API token for a user on it: JENKINS_URL, JENKINS_USER and JENKINS_TOKEN. The npm package name is jenkins-server (0.1.0) and it is marked private, so build from a clone with npm install and npm run build, then point your client at the built index.js. The token can start builds, so give it an account with the job permissions you intend and no more.
One command plus a key — npx -y github:hekmon8/Jenkins-server-mcp, then supply credentials
USE CASES
Check the status of the last build, then pull its console output and have the model point at the failing step instead of scrolling the log yourself.
Trigger the job with the branch and build type as parameters, without opening the Jenkins interface to fill in the form.
Trigger the build after pushing, then check its status and read the log if it fails again.
Counted once with only startup setup. Other versions, modes or optional credentials may expose a different list.
count_failed_jobsCount how many Jenkins jobs currently have their last build in FAILURE state.
create_jenkins_userCreate a new Jenkins user in the internal user database. Requires admin permissions.
get_build_logGet the console output of a Jenkins build
get_build_statusGet the status of a Jenkins build
get_failed_build_logGet the console output of the last failed build for a given Jenkins job.
list_recent_failed_jobsList Jenkins jobs whose most recent build failed, sorted by most recent failure time.
trigger_buildTrigger a new Jenkins build
BEFORE YOU INSTALL
7 tools when we connected. Only get_build_status, trigger_build and get_build_log are documented; create_jenkins_user is an undocumented write that creates Jenkins accounts.
The documented client runs the server on your machine.
CONTEXT COST
Rated by the size of the 7 tool definitions that ride along on every turn, not by how many there are
INSTALLATION
git clone https://github.com/hekmon8/jenkins-server-mcp.git
cd jenkins-server-mcp
npm install
npm run buildnpx -y github:hekmon8/Jenkins-server-mcp{
"mcpServers": {
"jenkins-server": {
"command": "node",
"args": [
"<YOUR_PATH_TO_JENKINS_SERVER_MCP>/build/index.js"
],
"env": {
"JENKINS_URL": "<YOUR_JENKINS_URL>",
"JENKINS_USER": "<YOUR_JENKINS_USER>",
"JENKINS_TOKEN": "<YOUR_JENKINS_TOKEN>"
}
}
}
}