← Back to Jenkins MCP Server

Install Jenkins MCP Server

Pick your client, copy the command, done.

Manual setup required. The maintainer's config contains paths only you know - edit the placeholders below before adding it to Claude Code.
1

Prepare the server locally

Run this once before adding it to Claude Code.

npm install
2

Register it in Claude Code

claude mcp add -e "JENKINS_USER=${JENKINS_USER}" -e "JENKINS_TOKEN=${JENKINS_TOKEN}" jenkins-mcp -- node /path/to/jenkins-mcp/server.js

Replace any placeholder paths in the command with the real path on your machine.

Required:JENKINS_USERJENKINS_TOKEN+ 1 optional

Environment Variables

Set these before running Jenkins MCP Server.

VariableDescriptionRequired
JENKINS_USERYour Jenkins usernameYes
JENKINS_TOKENYour Jenkins API tokenYes
JENKINS_URLJenkins base URLNo

Available Tools (4)

Once configured, Jenkins MCP Server gives your AI agent access to:

list_jobsList available Jenkins jobs
view_buildsView builds for a specific job
jobName
read_console_outputRead console output for a specific build
jobNamebuildNumber
trigger_buildTrigger a new build for a job
jobName

Try It Out

After setup, try these prompts with your AI agent:

List all the Jenkins jobs currently available on the server.
Trigger a new build for the 'driver-tests' job.
Get the console output for the latest build of the 'cpp-driver-matrix-test' job.
Show me the recent build history for the 'csharp-driver-matrix-test' job.
Prerequisites & system requirements
  • An MCP-compatible client (Claude Code, Cursor, Windsurf, Claude Desktop, or Codex)
  • Node.js 18+ with npm/npx installed
  • JENKINS_USER — Your Jenkins username
  • JENKINS_TOKEN — Your Jenkins API token
Conare · memory for coding agents

Keep this setup from going cold

Save the docs, env vars, and workflow around Jenkins MCP Server in Conare so Claude Code, Codex, and Cursor remember it next time.

Remember this setup$npx conare@latest