1. Conduid
  2. Automation
  3. Server Jenkins
MCP server · Automation

Server Jenkins

Model Context Protocol server for Jenkins CI/CD integration

37Low

Scored 5 months ago · breakdown

About Server Jenkins

Server Jenkins is an MCP server in the Automation category: model Context Protocol server for Jenkins CI/CD integration.

Install

Claude Code
claude mcp add server-jenkins -- npx -y mcp-server-jenkins
npx
npx -y mcp-server-jenkins

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about Server Jenkins

Powered by Claude · Grounded in docs

I know everything about Server Jenkins. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.

5 checks have not been run yet.

README

MCP Server for Jenkins - Zed Extension

A Model Context Protocol (MCP) server that enables AI-powered interactions with Jenkins CI/CD pipelines in the Zed editor. This extension allows Zed's AI assistant to autonomously interact with your Jenkins server, query jobs, trigger builds, and analyze logs.

🚀 Quick Start

New to this project? Check out the Quick Start Guide to get running in 5 minutes!

Features

  • 🔧 Complete Jenkins API Coverage: Access jobs, builds, nodes, and queue items
  • 🔐 Secure Credential Management: Environment-based authentication
  • 📊 Build Monitoring: Track running builds and retrieve console logs
  • 🚀 Job Control: Trigger builds with parameters and stop running builds
  • 🔍 Advanced Querying: Filter jobs by name, status, and type
  • 🤖 AI-Ready: Designed for autonomous use by Zed's AI assistant

Installation

Prerequisites

  • Zed Editor installed
  • Node.js 18+ installed
  • Access to a Jenkins server

Setup

  1. Clone this repository:
git clone https://github.com/landygg/mcp-server-jenkins.git
cd mcp-server-jenkins
  1. Install dependencies:
npm install
  1. Build the project:
npm run build
  1. Configure the extension in Zed's settings.

Configuration

Environment Variables

Set the following environment variables for Jenkins authentication:

export JENKINS_URL="https://your-jenkins-server.com"
export JENKINS_USERNAME="your-username"
export JENKINS_PASSWORD="your-api-token"  # Or JENKINS_API_TOKEN
export JENKINS_TIMEOUT="10"  # Optional, default: 5 seconds
export JENKINS_VERIFY_SSL="true"  # Optional, default: true

Zed Configuration

Add the extension to your Zed configuration file (~/.config/zed/settings.json):

{
  "context_servers": {
    "jenkins": {
      "command": "node",
      "args": ["/path/to/mcp-server-jenkins/dist/index.js"],
      "env": {
        "JENKINS_URL": "https://your-jenkins-server.com",
        "JENKINS_USERNAME": "your-username",
        "JENKINS_PASSWORD": "your-api-token"
      }
    }
  }
}

Or install as a Zed extension by placing this repository in Zed's extensions directory.

Available Tools

The MCP server exposes the following tools for AI interaction:

Job Management

  • get_all_items - Get all jobs and folders from Jenkins
  • get_item - Get details of a specific job
  • get_item_config - Get XML configuration of a job
  • query_items - Query jobs with pattern filters
  • build_item - Trigger a build (with optional parameters)

Build Management

  • get_build - Get details of a specific build
  • get_build_console_output - Get console logs of a build
  • get_running_builds - Get all currently running builds
  • stop_build - Stop a running build

Node Management

  • get_all_nodes - Get all Jenkins agents/nodes
  • get_node - Get details of a specific node
  • get_node_config - Get XML configuration of a node

Queue Management

  • get_all_queue_items - Get all items in the build queue
  • get_queue_item - Get details of a specific queue item
  • cancel_queue_item - Cancel a queued build

Usage Examples

Once configured, you can interact with Jenkins through Zed's AI assistant:

Example queries:

  • "Show me all Jenkins jobs"
  • "What builds are currently running?"
  • "Get the console output for job 'my-project' build #42"
  • "Trigger a build for the 'deploy-production' job"
  • "What's the status of the build queue?"

Technology Decisions

TypeScript vs Rust

Decision: TypeScript

After evaluating both options, TypeScript was chosen for the following reasons:

  1. Adequate Performance: Jenkins operations are I/O-bound (network requests), making TypeScript's performance sufficient for this use case
  2. Faster Development: Quicker iteration and easier maintenance
  3. Better Ecosystem: Rich npm ecosystem for HTTP clients and JSON-RPC libraries
  4. Lower Barrier to Entry: More accessible for Jenkins community contributions
  5. MCP SDK Support: Official @modelcontextprotocol/sdk package provides excellent TypeScript support

Rust would offer better performance for compute-intensive tasks, but for a CI/CD integration server communicating over HTTP, the performance difference is negligible.

Architecture

mcp-server-jenkins/
├── src/
│   ├── index.ts           # MCP server entry point (JSON-RPC/stdio)
│   ├── client/
│   │   └── jenkins.ts     # Jenkins API client
│   ├── types/
│   │   └── jenkins.ts     # TypeScript type definitions
│   └── tools/
│       └── index.ts       # Tool definitions and handlers
├── extension.toml         # Zed extension manifest
├── package.json           # Node.js dependencies
├── tsconfig.json          # TypeScript configuration
└── README.md

Development

# Install dependencies
npm install

# Build the project
npm run build

# Watch mode for development
npm run dev

# Lint and format code
npm run check

Security

  • Credentials: Never commit credentials to the repository. Use environment variables.
  • API Tokens: Use Jenkins API tokens instead of passwords for better security.
  • SSL Verification: Keep SSL verification enabled in production (default: true). Only disable for development with self-signed certificates using JENKINS_VERIFY_SSL=false.
  • Read-Only Mode: Consider using a Jenkins user with read-only permissions for safety.
  • Network Security: The server communicates with Jenkins over HTTPS with certificate validation by default.

Contributing

Contributions are welcome! Please feel free to submit issues or pull requests.

License

MIT License - see LICENSE file for details.

Acknowledgments

Support

For issues and questions:

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About Server Jenkins

How do I install Server Jenkins?

Run claude mcp add server-jenkins -- npx -y mcp-server-jenkins, then add the server to your MCP client's configuration.

Is Server Jenkins safe to use with an AI agent?

Its trust score is 37 out of 100 (low). It passes 1 of the 1 static security checks run so far. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Server Jenkins still maintained?

Conduid hasn't recorded a commit date for this repository yet. Check the repository directly for recent activity.