Jenkins MCP
by kjozsa
Jenkins MCP is a server for managing Jenkins operations, enabling users to interact with their Jenkins instance programmatically. It simplifies tasks like listing jobs, triggering builds, and checking build status.
Last updated: N/A
What is Jenkins MCP?
Jenkins MCP is a server designed to streamline interactions with Jenkins, providing an interface to manage jobs, trigger builds, and monitor their status. It abstracts away complexities like CSRF protection, making it easier to integrate Jenkins into automated workflows.
How to use Jenkins MCP?
To use Jenkins MCP, you can install it via Smithery or manually using uvx install jenkins-mcp
. Configure the server with your Jenkins URL, username, and password (or API token) in the mcpServers
section of your configuration. Ensure you set the JENKINS_USE_API_TOKEN
environment variable appropriately for API token authentication.
Key features of Jenkins MCP
List Jenkins jobs
Trigger builds with optional parameters
Check build status
CSRF crumb handling for secure API access
Use cases of Jenkins MCP
Automating build deployments
Integrating Jenkins with chat applications
Creating custom Jenkins dashboards
Triggering builds based on external events
FAQ from Jenkins MCP
How do I install Jenkins MCP?
How do I install Jenkins MCP?
You can install it via Smithery using the provided npx
command or manually using uvx install jenkins-mcp
.
How do I configure Jenkins MCP?
How do I configure Jenkins MCP?
Add the MCP server configuration snippet to your configuration file, providing your Jenkins URL, username, and password (or API token).
What is CSRF crumb handling?
What is CSRF crumb handling?
Jenkins implements CSRF protection. This server automatically handles CSRF crumbs by default, or you can use API tokens to bypass CSRF protection.
How do I use API tokens instead of a password?
How do I use API tokens instead of a password?
Set JENKINS_USE_API_TOKEN=true
and set JENKINS_PASSWORD
to your API token.
Where can I generate an API token in Jenkins?
Where can I generate an API token in Jenkins?
You can generate an API token in Jenkins at: User → Configure → API Token → Add new Token