Jenkins MCP
MCP server for managing Jenkins operations.
Installation
Installing via Smithery
To install Jenkins MCP for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @kjozsa/jenkins-mcp --client claude
Installing Manually
uvx install jenkins-mcp
Configuration
Add the MCP server using the following JSON configuration snippet:
{
"mcpServers": {
"jenkins-mcp": {
"command": "uvx",
"args": ["jenkins-mcp"],
"env": {
"JENKINS_URL": "https://your-jenkins-server/",
"JENKINS_USERNAME": "your-username",
"JENKINS_PASSWORD": "your-password",
"JENKINS_USE_API_TOKEN": "false"
}
}
}
}
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_PASSWORDto your API token instead of password - Works 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
# Install dependencies
uv pip install -r requirements.txt
# Run in dev mode with Inspector
mcp dev jenkins_mcp/server.py
Jenkins MCP
Project Details
- kjozsa/jenkins-mcp
- Apache License 2.0
- Last Updated: 4/7/2025
Categories
Recomended MCP Servers
A Model Context Protocol (MCP) for analyzing and querying GitHub repositories using the GitHub Chat API.
Model Context Protocol (MCP) Server for dify workflows
MCP Server for Databricks
appbuilder-sdk, 千帆AppBuilder-SDK帮助开发者灵活、快速的搭建AI原生应用
A Model Context Protocol server for Docker management through ChatGPT
MCP Server to integrate Unity Editor game engine with different AI Model clients (e.g. Claude Desktop, Windsurf, Cursor)
Enable AI Agents to Control Unity
MCP Documentation Management Service - A Model Context Protocol implementation for documentation management
A Model Context Protocol (MCP) server for ATLAS, a Neo4j-powered task management system for LLM Agents - implementing...
Allow AI to wade through complex OpenAPIs using Simple Language





