jenkins-http-mcp-server
This server provides a comprehensive MCP interface to Jenkins via HTTP APIs, supporting read-only inspection and optionally write operations, all gated by environment flags for safety.
Read-Only / Inspection
Identity & Health:
jenkins_whoami,jenkins_version,jenkins_healthGeneric API:
jenkins_get_json— fetch any relative Jenkins JSON API pathJobs: list (
jenkins_list_jobs), get details (jenkins_get_job), get config XML (jenkins_get_job_config)Builds: list (
jenkins_list_builds), get details (jenkins_get_build), console logs (jenkins_get_build_log), artifacts (jenkins_get_build_artifacts), test reports (jenkins_get_test_report)Queue: list (
jenkins_list_queue), get item (jenkins_get_queue_item)Views:
jenkins_list_views,jenkins_get_viewNodes/Agents:
jenkins_list_nodes,jenkins_get_nodePlugins:
jenkins_list_plugins
Write Operations (requires JENKINS_MCP_ENABLE_WRITES=1)
Trigger builds:
jenkins_trigger_build,jenkins_trigger_build_with_parametersStop a running build:
jenkins_stop_buildCancel a queued item:
jenkins_cancel_queue_itemEnable/disable a job:
jenkins_enable_job,jenkins_disable_job
Job Configuration (additionally requires JENKINS_MCP_ENABLE_JOB_CONFIG_WRITE=1)
Create a job from XML:
jenkins_create_jobCopy a job:
jenkins_copy_jobUpdate job config XML:
jenkins_update_job_config
Delete (additionally requires JENKINS_MCP_ENABLE_DELETE=1)
Delete a job:
jenkins_delete_job
Workspace Bundle Downloads (requires JENKINS_MCP_ENABLE_WORKSPACE_DOWNLOAD=1 and JENKINS_MCP_WORKSPACE_DOWNLOAD_DIR)
Start, check status, and cancel workspace bundle downloads:
jenkins_start_workspace_bundle_download,jenkins_get_workspace_bundle_status,jenkins_cancel_workspace_bundle_download
Provides tools for interacting with Jenkins CI/CD server, allowing management of jobs, builds, views, nodes, plugins, and more.
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-http-mcp-serverlist all jobs in the main view"
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 Server
External Python MCP server for Jenkins 2.563. It connects through normal Jenkins HTTP APIs using the permissions available to JENKINS_USER and JENKINS_API_TOKEN.
It does not require Jenkins administrator access, does not install Jenkins plugins, and does not depend on the official Jenkins MCP Server Plugin.
Python Setup
This project was initialized with pyenv using the latest stable Python 3.14.x available locally:
Python:
3.14.4pyenv virtualenv:
venv3144
To reproduce:
pyenv local venv3144
python --version
which python
pyenv versionRelated MCP server: Jenkins MCP Server
Install
python -m pip install -e '.[dev]'Environment
Required:
export JENKINS_URL="https://jenkins.example.com/"
export JENKINS_USER="your-user"
export JENKINS_API_TOKEN="your-api-token"Optional:
export JENKINS_VERIFY_SSL=1
export JENKINS_TIMEOUT_SECONDS=30
export JENKINS_MCP_MAX_RESPONSE_BYTES=2000000
export JENKINS_MCP_MAX_LOG_BYTES=200000Workspace bundle downloads are gated separately because they can be very large and may contain secrets or other untrusted files:
export JENKINS_MCP_ENABLE_WORKSPACE_DOWNLOAD=1
export JENKINS_MCP_WORKSPACE_DOWNLOAD_DIR="/absolute/path/with/enough/disk"
export JENKINS_MCP_MAX_WORKSPACE_ARCHIVE_BYTES=6000000000
export JENKINS_MCP_MAX_WORKSPACE_EXTRACT_BYTES=20000000000
export JENKINS_MCP_MAX_WORKSPACE_FILES=200000
export JENKINS_MCP_MAX_BUNDLE_LOG_BYTES=1200000000
export JENKINS_MCP_WORKSPACE_PROGRESS_INTERVAL_SECONDS=2Write gates:
export JENKINS_MCP_ENABLE_WRITES=1
export JENKINS_MCP_ENABLE_JOB_CONFIG_WRITE=1
export JENKINS_MCP_ENABLE_DELETE=1Do not store real Jenkins secrets in MCP client config files.
Run STDIO Server
python -m jenkins_mcp_serverConsole script:
jenkins-mcp-serverClient Setup
Codex CLI:
docs/codex-setup.mdGemini CLI:
docs/gemini-setup.md
Tools
Read-only:
jenkins_whoamijenkins_versionjenkins_healthjenkins_get_jsonjenkins_list_jobsjenkins_get_jobjenkins_get_job_configjenkins_list_buildsjenkins_get_buildjenkins_get_build_logjenkins_get_build_artifactsjenkins_get_test_reportjenkins_list_queuejenkins_get_queue_itemjenkins_list_viewsjenkins_get_viewjenkins_list_nodesjenkins_get_nodejenkins_list_plugins
Workspace bundle tools, gated by JENKINS_MCP_ENABLE_WORKSPACE_DOWNLOAD=1 and
JENKINS_MCP_WORKSPACE_DOWNLOAD_DIR:
jenkins_start_workspace_bundle_downloadjenkins_get_workspace_bundle_statusjenkins_cancel_workspace_bundle_download
Write tools, gated by JENKINS_MCP_ENABLE_WRITES=1:
jenkins_trigger_buildjenkins_trigger_build_with_parametersjenkins_stop_buildjenkins_cancel_queue_itemjenkins_enable_jobjenkins_disable_job
Optional job config tools, gated by JENKINS_MCP_ENABLE_WRITES=1 and JENKINS_MCP_ENABLE_JOB_CONFIG_WRITE=1:
jenkins_create_jobjenkins_copy_jobjenkins_update_job_config
Delete additionally requires JENKINS_MCP_ENABLE_DELETE=1:
jenkins_delete_job
Safety
Read-only by default.
Write tools require explicit local env flags and Jenkins-side permissions.
Workspace bundle downloads require a separate explicit env flag and output directory.
Jenkins logs and job output are treated as untrusted text.
Jenkins workspace files are treated as untrusted local files.
API tokens and Authorization headers are not printed by server helpers.
401, 403, 404, crumb failures, and permission failures return structured errors.
Limitations
No script console.
No restart, safe restart, or quiet down.
No plugin install/update.
No credential read/write.
No node creation/deletion.
No global config changes.
No user management.
jenkins_get_test_reportdepends on a test-report plugin such as JUnit exposingtestReport; it fails clearly if absent.Nested folder paths are URL-encoded as repeated
job/<segment>path components. Controllers without the needed folder/job type return Jenkins 404s.Workspace bundle downloads use Jenkins' job-level workspace endpoint. The saved console log is build-run-specific, but the workspace is the current/some available job workspace and may not be an immutable snapshot of that build.
Workspace bundle operations stream to disk and report status/progress through
jenkins_get_workspace_bundle_status; large downloads can still stress Jenkins controllers or agents.
Testing
Normal tests are mocked and do not require a live Jenkins controller:
python -m pytest
python -m compileall src
ruff checkOptional integration tests only run when all are set:
export JENKINS_INTEGRATION_TESTS=1
export JENKINS_URL="https://jenkins.example.com/"
export JENKINS_USER="your-user"
export JENKINS_API_TOKEN="your-api-token"
python -m pytest tests/test_integration.pyEvidence Docs
docs/source-truth.mddocs/source-skills-check.mddocs/existing-research.mddocs/architecture-decision.mddocs/tool-evidence.mddocs/security.md
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
- Alicense-qualityFmaintenanceEnables AI assistants to interact with Jenkins CI/CD systems for build management, job monitoring, console log analysis, and debugging through natural language commands.Last updated2MIT
- Alicense-qualityDmaintenanceEnables interaction with Jenkins to manage jobs, trigger builds with parameters, and monitor build queues. It provides comprehensive access to build histories, console logs, and organizational folder structures via the Jenkins REST API.Last updated1951MIT
- Alicense-qualityDmaintenanceEnables interaction with Jenkins instances to manage jobs, builds, and nodes through the Model Context Protocol. It provides capabilities to trigger builds, read console outputs, and search log sections using regular expressions.Last updated556MIT
- Flicense-qualityBmaintenanceEnables interaction with Jenkins CI jobs, including triggering and stopping builds, retrieving job details, and fetching build logs.Last updated
Related MCP Connectors
Security scanner for MCP servers. Detect vulnerabilities, prompt injection, and tool poisoning.
MCP server for Pentest-Tools.com: run scans, manage findings and reports via your preffered LLM.
CVE lookups (NVD) and dependency-manifest audits (OSV) for AI agents. No API keys.
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/mdtahmidhossain/jenkins-http-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server