Jenkins MCP
Provides tools for interacting with Jenkins instances, including querying build information, managing jobs, and triggering builds.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Jenkins MCPshow me recent builds for the deploy job on jenkins-356"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Jenkins MCP
An MCP Server based on the Jenkins REST API, targeting compatibility with Jenkins 2.332.2, 2.356, and later versions.
It does not install Jenkins plugins, so it is not subject to the minimum Jenkins core version requirement of the official mcp-server plugin. A single MCP Server can manage multiple Jenkins instances in its configuration at the same time, and select the target instance via jenkins_name.
Implemented Capabilities
Query Jenkins version and compatibility capabilities
Query the currently authenticated user
Query Jobs under the root directory or a Folder
Query Jobs and Builds
Fetch build logs, with a limit on the number of returned lines
Query Queue, Queue Items, and nodes
Trigger builds, stop builds, cancel queued builds
Username + API Token authentication
Automatically fetch and retry Jenkins CSRF Crumb
Read-only by default; write operations require explicitly setting
read_only: false
Related MCP server: Jenkins MCP Server
Installation
Python 3.10 or higher is recommended:
python3 -m venv .venv
source .venv/bin/activate
python -m pip install -e '.[dev]'Multi-Jenkins Configuration
Create jenkins-mcp.json:
{
"instances": [
{
"name": "jenkins-233",
"base_url": "https://jenkins-233.example.com",
"username": "mcp-user",
"api_token": "replace-me",
"read_only": true,
"verify_ssl": true,
"timeout_seconds": 30,
"max_log_lines": 2000
},
{
"name": "jenkins-356",
"base_url": "https://jenkins-356.example.com/jenkins",
"username": "mcp-user",
"api_token": "replace-me",
"read_only": false
}
],
"server": {
"transport": "stdio",
"log_level": "INFO"
}
}Start:
jenkins-mcp --config jenkins-mcp.jsonIn production, it is recommended to inject configuration via environment variables or a secrets management system; do not commit API Tokens to Git.
Single Jenkins Environment Variable Configuration
You can also use the following variables:
export JENKINS_URL='https://jenkins.example.com'
export JENKINS_USERNAME='mcp-user'
export JENKINS_API_TOKEN='replace-me'
export JENKINS_READ_ONLY='true'
jenkins-mcpFor multiple instances, place a JSON array in JENKINS_INSTANCES_JSON, or use JENKINS_CONFIG_FILE to point to a JSON configuration file.
MCP Client Configuration
stdio example:
{
"mcpServers": {
"jenkins": {
"command": "/absolute/path/to/.venv/bin/jenkins-mcp",
"args": ["--config", "/absolute/path/to/jenkins-mcp.json"]
}
}
}Use jenkins_name when invoking tools, for example:
list_jobs(jenkins_name="jenkins-233")
get_build_log(jenkins_name="jenkins-356", job_name="team/app", build_number=123)Version Compatibility Strategy
The service detects the version through Jenkins' X-Jenkins response header. 2.332.2 is the current minimum compatibility baseline, and 2.356 uses the same underlying REST API capabilities. Version-related differences are placed in the capability model in versioning.py; the MCP tool layer does not write version checks directly.
The base REST API is more suitable for cross-version use than the Jenkins plugin API, but plugin-specific features, advanced Pipeline information, and credential management are not part of the current cross-version guarantee.
Development
pytest
ruff check .This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables managing Jenkins operations like listing jobs, triggering builds, and checking build statuses through a configurable MCP server.310Apache 2.0
- AlicenseNot gradedqualityDmaintenanceAn MCP server for interacting with a Jenkins CI/CD server. Allows you to trigger jobs, check build statuses, and manage your Jenkins instance through MCP.5814Apache 2.0
- AlicenseAqualityCmaintenanceA local MCP server for Jenkins that provides 17 tools to interact with Jenkins jobs, builds, logs, SCM, and test results via REST API, no plugin required.171431MIT
- AlicenseNot gradedqualityAmaintenanceMCP server for Jenkins to inspect builds, control jobs, and manage pipeline configuration.192MIT
Related MCP Connectors
MCP server for Appcircle mobile CI/CD platform.
MCP Server for JFrog, providing tools for development and artifact management.
A MCP server built for developers enabling Git based project management with project and personal…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/programsummer/jenkins-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server