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
This MCP server provides tools for listing and retrieving content from different knowledge bases.
A connector for Claude Desktop to read and search an Obsidian vault.
MCP server for browser-use
Build a knowledge base into a tar.gz and give it to this MCP server, and it is ready...
Python tool for converting files and office documents to Markdown.
Nautobot plugin that enables AI assistants to interact with network data through the Model Context Protocol (MCP).
一个能与Cursor集成的图片生成mcp server工具,实现调用即梦逆向接口
A Model Context Protocol server wrapping the official Notion SDK
🔥 Model Context Protocol (MCP) server for Firebase.
Model Context Protocol (MCP) server that interacts with a Debugger





