mcp-jenkins

by lanbaoshenVerified

The Model Context Protocol (MCP) is an open-source implementation that bridges Jenkins with AI language models following Anthropic's MCP specification. This project enables secure, contextual AI interactions with Jenkins tools while maintaining data privacy and security.

145
Stars
64
Forks
Python
Language
8/23/2026
Added
View on GitHubDownload ZIP

⚠️ Third-Party Software Notice

This skill is third-party open-source software developed and hosted independently on GitHub. SkillTip is an informational directory and does not control or maintain the underlying repository. Any security checks displayed are automated and limited in scope. Review the source code before installing.

Read the Terms of Service

Installation

Add to your Claude Code skills directory:

# Add to your Claude Code skills
git clone https://github.com/lanbaoshen/mcp-jenkins

Getting Started

Guides for using skills like mcp-jenkins.

Security Report

Verified

Last scanned: —

{
  "status": "PASSED",
  "issues": []
}

README.md

MCP Jenkins

PyPI Version PyPI Downloads test codecov License

The Model Context Protocol (MCP) is an open-source implementation that bridges Jenkins with AI language models following Anthropic's MCP specification. This project enables secure, contextual AI interactions with Jenkins tools while maintaining data privacy and security.

Installation

Choose one of these installation methods:

# Using uv (recommended)
pip install uv
uvx mcp-jenkins

# Using pip
pip install mcp-jenkins
mcp-jenkins

# Docker
docker pull ghcr.io/lanbaoshen/mcp-jenkins:latest
docker run -p 9887:9887 --rm ghcr.io/lanbaoshen/mcp-jenkins:latest --transport streamable-http

Line Arguments

When using command line arguments, you can specify the Jenkins server details as follows:

# Simple streamable-http example
uvx mcp-jenkins --transport streamable-http
ArgumentDescriptionRequired
--jenkins-urlThe URL of the Jenkins server. (Http app can set it via headers x-jenkins-url)No
--jenkins-usernameThe username for Jenkins authentication. (Http app can set it via headers x-jenkins-username)No
--jenkins-passwordThe password or API token for Jenkins authentication. (Http app can set it via headers x-jenkins-password)No
--jenkins-timeoutTimeout for Jenkins API requests in seconds. Default is 5 seconds.No
--jenkins-verify-ssl/--no-jenkins-verify-sslWhether to verify SSL certificates when connecting to Jenkins. Default is to verify.No
--jenkins-session-singleton/--no-jenkins-session-singletonWhether to use a singleton Jenkins client for all requests in the same session. Default is True.No
--read-onlyWhether to enable read-only mode. Default is FalseNo
--transportTransport method to use for communication. Options are stdio, sse or streamable-http. Default is stdio.No
--hostHost address for streamable-http transport. Default is 0.0.0.0No
--portPort number for streamable-http transport. Default is 9887.No

Configuration and Usage

Jetbrains Github Copilot

  1. Open Jetbrains Settings
  2. Navigate to Github Copilot > MCP > Configure
  3. Add the following configuration:
{
  "servers": {
    "my-mcp-server": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mcp-jenkins",
        "--jenkins-url=xxx",
        "--jenkins-username=xxx",
        "--jenkins-password=xxx"
      ]
    }
  }
}

VSCode Copilot Chat

  1. Create .vscode folder with mcp.json file in you workspace for local setup or edit settings.json trough settings menu.
  2. Insert the following configuration:
  • SSE mode
{
    "servers": {
        "jenkins": {
            "url": "http://localhost:9887/sse",
            "type": "sse"
        }
    }
}
  • Streamable-Http mode
{
    "servers": {
        "mcp-jenkins-mcp": {
            "autoApprove": [],
            "disabled": false,
            "timeout": 60,
            "type": "streamableHttp",
            "url": "http://localhost:9887/mcp"
        }
    }
}

Run the Jenkins MCP server with the following command:

uvx mcp-jenkins \
  --jenkins-url xxx \
  --jenkins-username xxx  \
  --jenkins-password xxx \
  --transport sse

Health Check Endpoint

When running with --transport streamable-http or --transport sse, the server exposes a plain HTTP liveness endpoint:

GET /healthz  ->  200 OK

It always returns 200 and bypasses the x-jenkins-* auth headers, so it is safe to use directly as a Kubernetes liveness/readiness probe without any Jenkins credentials. Example probe:

livenessProbe:
  httpGet:
    path: /healthz
    port: 9887
  initialDelaySeconds: 5
  periodSeconds: 10

Note: this is a liveness check only — it does not verify connectivity to the upstream Jenkins server.

Available Tools

ToolDescription
get_itemGet a specific item by name.
get_item_configGet the configuration of a specific item.
get_item_parametersGet the parameters of a specific item.
get_all_itemsGet all items in Jenkins.
query_itemsQuery items based on pattern.
build_itemBuild a item.
get_all_nodesGet all nodes in Jenkins.
get_nodeGet a specific node by name.
get_node_configGet the configuration of a specific node.
get_all_queue_itemsGet all queue items in Jenkins.
get_queue_itemGet a specific queue item by ID.
cancel_queue_itemCancel a specific queue item by ID.
get_buildGet a specific build by job name and build number.
get_build_scriptsGet scripts associated with a specific build.
get_build_console_outputGet the console output of a specific build.
get_build_parametersGet the parameters of a specific build.
get_build_test_reportGet the test report of a specific build.
get_running_buildsGet all currently running builds in Jenkins.
stop_buildStop a specific build by job name and build number.
get_all_build_artifactsList the artifacts of a specific build.
get_build_artifactDownload an artifact from a specific build.
get_build_artifact_urlGet the direct URL of an artifact from a specific build.
get_viewGet a specific view by name.
get_all_viewsGet the configuration of a specific view.
get_all_pluginsGet all installed plugins.
get_pluginGet a specific plugin by short name.
get_plugins_with_problemsGet plugins with problems (missing dependencies, version mismatch, etc.).
get_plugins_with_backupGet plugins that can be downgraded.
get_plugins_with_updatesGet plugins that have available updates.
get_plugin_dependency_graphGet dependency graph for a plugin in Graphviz format.
run_groovy_scriptExecute an arbitrary Groovy script on Jenkins.

Contributing

CONTRIBUTING.md

License

Licensed under MIT - see LICENSE file. This is not an official Jenkins product.

Star History

Star History Chart

Frequently Asked Questions

What is mcp-jenkins?

mcp-jenkins is an open-source mcp servers skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by lanbaoshen. The Model Context Protocol (MCP) is an open-source implementation that bridges Jenkins with AI language models following Anthropic's MCP specification. This project enables secure, contextual AI interactions with Jenkins tools while maintaining data privacy and security. It has 145 GitHub stars.

Is mcp-jenkins safe to use?

Yes. mcp-jenkins passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install mcp-jenkins?

Clone the repository with "git clone https://github.com/lanbaoshen/mcp-jenkins" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is mcp-jenkins written in?

mcp-jenkins is primarily written in Python. It is open-source under lanbaoshen on GitHub, so you can review or fork the full source.

Are there alternatives to mcp-jenkins?

Yes. SkillsLLM lists many other MCP Servers skills you can browse and compare side by side. Open the MCP Servers category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh mcp-jenkins against similar tools.

Comments (0)

No comments yet. Be the first to share your thoughts!

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP Serversapisai-tools
View details

Scrapling

by D4Vinci

🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl!

75,9137,581Python
MCP Servers
View details

TrendRadar

by sansan0

⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过载,你的 AI 舆情监控助手与热点筛选工具!聚合多平台热点 + RSS 订阅,支持关键词精准筛选。AI 智能筛选新闻 + AI 翻译 + AI 分析简报直推手机,也支持接入 MCP 架构,赋能 AI 自然语言对话分析、情感洞察与趋势预测等。支持 Docker ,数据本地/云端自持。集成微信/飞书/钉钉/Telegram/邮件/ntfy/bark/slack 等渠道智能推送。

61,65224,883Python
MCP Servers
View details

context7

by upstash

Context7 Platform -- Up-to-date code documentation for LLMs and AI code editors

61,0602,938TypeScript
MCP Servers
View details

High-performance code intelligence MCP server. Indexes codebases into a persistent knowledge graph — average repo in milliseconds. 158 languages, sub-ms queries, 99% fewer tokens. Single static binary, zero dependencies.

39,9393,219C
MCP Servers
View details

Developers Also Liked

Based on votes and bookmarks from developers who liked this skill

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI Agentsai-agentsanthropicclaude-code
View details
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI Agentsai-agentsbrainstorming
View details

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP Serversapisai-tools
View details

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI Agentsai-agentsanthropicclaude-code
View details

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI Agentsclaude-codeai-tools
View details