The Jenkins MCP server allows you to manage Jenkins operations programmatically:
List Jenkins jobs: Retrieve all jobs configured in Jenkins
Trigger builds: Start a Jenkins build for a specific job with optional parameters
Get build status: Check the status of a specific build (defaults to latest if no build number provided)
CSRF crumb handling: Automatically handle Jenkins CSRF protection for secure API access
API Token Mode: Use Jenkins API tokens for authentication
Allows management of Jenkins operations including listing jobs, triggering builds with parameters, and checking build status
Jenkins MCP
MCP server for managing Jenkins operations.
Installation
Installing via Smithery
To install Jenkins MCP for Claude Desktop automatically via Smithery:
Installing Manually
Configuration
Add the MCP server using the following JSON configuration snippet:
CSRF Crumb Handling
Jenkins implements CSRF protection using "crumbs" - tokens that must be included with POST requests. This MCP server handles CSRF crumbs in two ways:
Default Mode: Automatically fetches and includes CSRF crumbs with build requests
Uses session cookies to maintain the web session
Handles all the CSRF protection behind the scenes
API Token Mode: Uses Jenkins API tokens which are exempt from CSRF protection
Set
JENKINS_USE_API_TOKEN=true
Set
JENKINS_PASSWORD
to your API token instead of passwordWorks with Jenkins 2.96+ which doesn't require crumbs for API token auth
You can generate an API token in Jenkins at: User → Configure → API Token → Add new Token
Features
List Jenkins jobs
Trigger builds with optional parameters
Check build status
CSRF crumb handling for secure API access
Development
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Enables managing Jenkins operations like listing jobs, triggering builds, and checking build statuses through a configurable MCP server.
Related Resources
Related MCP Servers
- -securityAlicense-qualityProvides MCP multi-cluster Kubernetes management and operations, featuring a management interface, logging, and nearly 50 built-in tools covering common DevOps and development scenarios. Supports both standard and CRD resources.Last updated -671MIT License
- -securityAlicense-qualityProvides MCP multi-cluster Kubernetes management and operations. It can be integrated as an SDK into your own project and includes nearly 50 built-in tools covering common DevOps and development scenarios. Supports both standard and CRD resources.Last updated -126MIT License
- -securityFlicense-qualityAn integration tool that allows interaction with Jenkins CI/CD servers through a Model Context Protocol interface, enabling users to view server info, manage jobs, inspect builds, and trigger builds with parameters.Last updated -
- -securityAlicense-qualityA Model Context Protocol (MCP) server that enables AI tools like chatbots to interact with and control Jenkins, allowing users to trigger jobs, check build statuses, and perform other Jenkins operations through natural language.Last updated -MIT License