Jenkins MCP Server

Jenkins MCP Server

Enables AI coding tools to interact with Jenkins CI instances behind Cloudflare Access, supporting job inspection, build logs, test results, and artifact retrieval.

Category
Visit Server

README

Jenkins MCP Server

An MCP (Model Context Protocol) server for interacting with Jenkins instances protected by Cloudflare Access. Built for use with Kiro and other MCP-compatible AI coding tools.

Prerequisites

  • Node.js (v18+)
  • cloudflared CLI installed
  • A Jenkins API token (generate one from Jenkins → Your User → Configure → API Token)

Installation

  1. Clone this repo:
git clone https://github.com/kmlarso6/jenkins-mcp-server.git
cd jenkins-mcp-server
  1. Install dependencies:
npm install

MCP Configuration

Add the following to your Kiro MCP config at ~/.kiro/settings/mcp.json (or your workspace .kiro/settings/mcp.json):

{
  "mcpServers": {
    "Jenkins": {
      "command": "node",
      "args": ["/path/to/jenkins-mcp-server/index.mjs"],
      "env": {
        "JENKINS_URL": "https://jenkins.devops.asu.edu",
        "JENKINS_USER": "{YOUR_EXCEPTION_ASURITE}",
        "JENKINS_TOKEN": "{YOUR_API_KEY}"
      },
      "disabled": false,
      "autoApprove": [
        "get_build",
        "get_build_log",
        "get_job",
        "list_builds",
        "get_test_results",
        "get_artifact",
        "download_test_results",
        "list_stages",
        "get_stage_log",
        "get_failed_tests",
        "compare_builds"
      ]
    }
  }
}

Replace:

  • /path/to/jenkins-mcp-server/index.mjs with the absolute path to your cloned copy
  • {YOUR_EXCEPTION_ASURITE} with your Jenkins username (exception ASURITE)
  • {YOUR_API_KEY} with your Jenkins API token

Cloudflare Access Authentication

The Jenkins instance is behind Cloudflare Access. Before using the MCP tools, you need a valid Cloudflare token.

Initial Login

cloudflared access login "https://jenkins.devops.asu.edu"

This prints an authorization URL. Open it in your browser, complete ASU SSO login, and the token is cached automatically at ~/.cloudflared/.

Token Verification

cloudflared access token -app=https://jenkins.devops.asu.edu

If this returns a JWT string, you're authenticated.

Token Expiry

Tokens expire after several hours. If MCP tool calls start failing with Cloudflare errors, re-run the login command above.

Installing the Kiro Skill

This repo includes a Kiro skill that helps the AI agent manage the Cloudflare auth flow automatically.

To install it, copy the skill into your Kiro skills directory:

cp -r skills/jenkins-access ~/.kiro/skills/

Once installed, Kiro will activate the skill when Jenkins access is needed or when auth errors occur.

Available Tools

Tool Description
get_build Get info about a specific build
get_build_log Get console output for a build
get_job Get job info and recent builds list
list_builds List recent builds with results
get_test_results Get test report for a build
get_artifact Read a text artifact inline
download_test_results Download Playwright artifacts to a local temp dir
list_stages List pipeline stages with status and duration
get_stage_log Get console log for a specific pipeline stage
get_failed_tests Get only failing test cases with error messages
compare_builds Compare test results between two builds

Job Path Format

Jenkins job paths follow the pattern: <GitHub-Org>/<repo-name>/<branch>

For example: MyOrg/my-repo/main

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured