jenkins-http-mcp-server
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 versionInstall
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=200000Write 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
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.
Jenkins logs and job output are treated as untrusted text.
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.
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
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
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