Jenkins MCP Server

Local setup required. This server has to be cloned and prepared on your machine before you register it in Claude Code.
1

Set the server up locally

Run this once to clone and prepare the server before adding it to Claude Code.

Run in terminal
npm install
2

Register it in Claude Code

After the local setup is done, run this command to point Claude Code at the built server.

Run in terminal
claude mcp add -e "JENKINS_USER=${JENKINS_USER}" -e "JENKINS_TOKEN=${JENKINS_TOKEN}" jenkins-mcp -- node "<FULL_PATH_TO_JENKINS_MCP>/dist/index.js"

Replace <FULL_PATH_TO_JENKINS_MCP>/dist/index.js with the actual folder you prepared in step 1.

Required:JENKINS_USERJENKINS_TOKEN+ 1 optional
README.md

Interact with Jenkins instances to manage jobs, builds, and nodes.

Jenkins MCP Server

MCP (Model Context Protocol) server for interacting with Jenkins at jenkins.scylladb.com. Provides tools for listing jobs, viewing builds, reading console output, triggering builds, and more.

Setup

Prerequisites

npm install

Credentials

The server uses these environment variables for authentication:

Variable Required Description
JENKINS_USER Yes Your Jenkins username
JENKINS_TOKEN Yes Your Jenkins API token
JENKINS_URL No Jenkins base URL (default: https://jenkins.scylladb.com)
Step 1: Get your Jenkins username

Your Jenkins username is the same as your ScyllaDB LDAP / SSO username. You can verify it by logging in to https://jenkins.scylladb.com and checking the name shown in the top-right corner.

Step 2: Generate an API token
  1. Log in to https://jenkins.scylladb.com
  2. Click your name in the top-right corner → Configure (or go directly to https://jenkins.scylladb.com/user/<your-username>/configure)
  3. Scroll down to the API Token section
  4. Click Add new Token, give it a descriptive name (e.g. claude-code-mcp), and click Generate
  5. Copy the token immediately — it is shown only once
Step 3: Verify access

Test that your credentials work:

curl -u "your-username:your-api-token" https://jenkins.scylladb.com/api/json?tree=mode

You should see {"mode":"NORMAL"} (or similar). If you get a 401/403, double-check your username and token.

Adding to Claude Code

Add the server to your Claude Code MCP configuration. Edit (or create) the file ~/.claude/settings.json:

{
  "mcpServers": {
    "jenkins": {
      "command": "node",
      "args": ["/path/to/jenkins-mcp/server.js"],
      "env": {
        "JENKINS_USER": "your-username",
        "JENKINS_TOKEN": "your-api-token"
      }
    }
  }
}

Replace /path/to/jenkins-mcp/server.js with the absolute path to server.js, and fill in your credentials. JENKINS_URL defaults to https://jenkins.scylladb.com and can be omitted.

You can also configure it at the project level by creating a .mcp.json file in the project root (this format is shared with OpenAI Codex):

{
  "mcpServers": {
    "jenkins": {
      "command": "node",
      "args": ["./server.js"],
      "env": {
        "JENKINS_USER": "your-username",
        "JENKINS_TOKEN": "your-api-token"
      }
    }
  }
}

Adding to OpenAI Codex

Codex uses the same .mcp.json project-level configuration as Claude Code (see above). Place the .mcp.json file in the project root and Codex will pick it up automatically.

Running Standalone (for testing)

JENKINS_USER=your-username JENKINS_TOKEN=your-api-token node server.js

The server communicates over stdio using the MCP protocol — it is not meant to be used directly from a terminal, but this verifies it starts without errors.

Development

Linting

npm run lint

Uses ESLint 9 with flat config (eslint.config.js).

CI/CD

GitHub Actions runs on every push and PR to main:

  • Lintnpx eslint . with Node 20

Driver Tests Overview

The Jenkins folder `scylla-master/driver-tests` contains CI jobs that test ScyllaDB compatibility with various CQL client drivers.

How Driver Tests Work

Each driver test job:

  1. Spins up a ScyllaDB cluster (typically via CCM)
  2. Runs the driver's test suite against it across multiple driver versions and protocol versions
  3. Reports results to Argus

The test infrastructure for each driver lives in a driver-matrix repo. These repos contain the configuration (which driver versions to test, which tests to run, version-specific workarounds, etc.). The actual driver source code lives in separate driver repos — ScyllaDB forks of upstream drivers (or ScyllaDB-native drivers in the case of Rust).

Job → Repository Mapping

Jenkins Job Driver Matrix Repo (test infra) ScyllaDB Driver Repo (fork) Upstream Driver Repo
`cpp-driver-matrix-test` scylladb/scylla-cpp-driver-matrix scylladb/cpp-driver apache/cassandra-cpp-driver
`csharp-driver-matrix-test` scylladb/csharp-driver-matrix scylladb/csharp-driver datastax/csharp-driver
[gocql-driver-matrix-test](https://jenkins.scylladb.com/job/scylla-master/job/driver-test

Tools (4)

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

Environment Variables

JENKINS_USERrequiredYour Jenkins username
JENKINS_TOKENrequiredYour Jenkins API token
JENKINS_URLJenkins base URL

Configuration

claude_desktop_config.json
{"mcpServers": {"jenkins": {"command": "node", "args": ["/path/to/jenkins-mcp/server.js"], "env": {"JENKINS_USER": "your-username", "JENKINS_TOKEN": "your-api-token"}}}}

Try it

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.

Frequently Asked Questions

What are the key features of Jenkins MCP Server?

List and discover Jenkins jobs. View build history for specific jobs. Read console output logs from builds. Trigger new builds remotely. Search log sections using regular expressions.

What can I use Jenkins MCP Server for?

Automating CI/CD pipeline monitoring directly from the chat interface. Quickly checking the status of driver-matrix test jobs. Debugging failed builds by reading console output without leaving the IDE. Triggering routine test suites after code changes.

How do I install Jenkins MCP Server?

Install Jenkins MCP Server by running: npm install

What MCP clients work with Jenkins MCP Server?

Jenkins MCP Server works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep Jenkins MCP Server docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare