Jenkins MCP
Provides tools for interacting with a Jenkins CI/CD server, including listing jobs, getting build details, fetching build logs, managing the queue, viewing nodes, and triggering builds.
Click on "Deploy 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 MCP list all jobs"
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
TypeScript MCP server that connects AI agents to Jenkins. Supports stdio and Streamable HTTP transports, plus a local web UI to test credential authentication/authorization and copy agent configuration snippets.
Developed by oshaani.com · © oshaani.com. All rights reserved.
Features
MCP tools for jobs, builds, logs, queue, nodes, identity, and auth checks
stdio mode for Cursor, Claude Desktop, VS Code
HTTP mode with Streamable MCP endpoint at
/mcpWeb UI to test Jenkins username/API token auth and permission probes
Ready-made config snippets for AI agents
Unit tests with Vitest
Related MCP server: Jenkins MCP Server
Quick start
npm install
npm run build
cp .env.example .env # then edit credentialsLocal Jenkins in Docker (recommended for testing)
docker compose up -d
# Wait until healthy, then copy the generated API token into .env:
docker exec jenkins-mcp-test cat /var/jenkins_home/mcp-api-token.txtDefault test login:
Field | Value |
URL | |
Username |
|
Password |
|
Sample job |
|
Put the token from mcp-api-token.txt into .env as JENKINS_API_TOKEN, then:
npm run start:httpOpen http://127.0.0.1:3100 and run Test authentication.
Stop Jenkins later with docker compose down (add -v to wipe data).
HTTP + UI
npm run start:httpOpen http://127.0.0.1:3100 to:
Test authentication and authorization against your Jenkins
Copy MCP config for Cursor / Claude Desktop / VS Code
Stdio (AI agents)
npm run start:stdioEnvironment
Variable | Description |
| Jenkins base URL |
| Jenkins username |
| Jenkins API token |
| HTTP port (default |
| Bind host (default |
|
|
Cursor MCP config (stdio)
{
"mcpServers": {
"jenkins": {
"command": "node",
"args": ["/absolute/path/to/Jenkins MCP/dist/index.js", "stdio"],
"env": {
"JENKINS_URL": "https://jenkins.example.com",
"JENKINS_USERNAME": "your-user",
"JENKINS_API_TOKEN": "your-api-token"
}
}
}
}Cursor MCP config (HTTP + headers)
Pass Jenkins credentials from the agent on every request:
{
"mcpServers": {
"jenkins": {
"url": "http://127.0.0.1:3100/mcp",
"headers": {
"X-Jenkins-Url": "http://127.0.0.1:8080",
"X-Jenkins-Username": "admin",
"X-Jenkins-Api-Token": "your-api-token"
}
}
}
}Header values override server .env for that MCP session. You can also use Authorization: Basic base64(username:apiToken) plus X-Jenkins-Url.
Cursor MCP config (HTTP + server env)
{
"mcpServers": {
"jenkins": {
"url": "http://127.0.0.1:3100/mcp"
}
}
}MCP tools
Tool | Description |
| Authenticated user identity |
| Auth + authorization permission probes |
| List visible jobs |
| Job details |
| Build details |
| Progressive console log |
| Build queue |
| Agents/nodes |
| Trigger build (disabled in read-only mode) |
Development
npm test
npm run typecheck
npm run devLicense
MIT
Copyright © oshaani.com. Developed by oshaani.com. All rights reserved.
Available Tools
9 toolsjenkins_get_buildB
Get details for a specific build or the last build of a job
Inputs: job_name (required), build_number.
jenkins_get_build_logB
Get console log text for a Jenkins build
Inputs: job_name (required), start, build_number.
jenkins_get_jobB
Get details for a Jenkins job by name or folder path
Inputs: job_name (required).
jenkins_get_nodesA
List Jenkins agents/nodes and their online status
Inputs: no named parameters.
jenkins_get_queueA
List items currently in the Jenkins build queue
Inputs: no named parameters.
jenkins_list_jobsB
List Jenkins jobs visible to the configured credentials
Inputs: no named parameters.
jenkins_test_authA
Test Jenkins credential authentication and authorization (permissions)
Inputs: no named parameters.
jenkins_trigger_buildC
Trigger a Jenkins job build, optionally with parameters
Inputs: job_name (required), parameters.
jenkins_whoamiA
Return the authenticated Jenkins user identity
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Each tool targets a distinct aspect of Jenkins: builds, logs, jobs, nodes, queue, auth, and user identity. No two tools overlap in purpose.
All tools follow a consistent 'jenkins_verb_noun' snake_case pattern, making it predictable and easy to understand.
9 tools is well-scoped for a Jenkins MCP server, covering essential operations like listing, getting details, triggering builds, and checking status without overwhelming users.
Covers common read and trigger operations but lacks job creation, deletion, or parameter introspection. Minor gaps for full lifecycle management.
Maintenance
Related MCP Connectors
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
MCP server for building and testing AI agents with multi-model experimentation and insights.
Related MCP Servers
- AlicenseBqualityDmaintenanceA Model Context Protocol server that enables AI assistants to interact with Jenkins CI/CD servers, providing tools to check build statuses, trigger builds, and retrieve build logs.315MIT
- AlicenseNot gradedqualityNot gradedmaintenanceA Model Context Protocol (MCP) server that enables AI tools like chatbots to interact with and control Jenkins, allowing users to trigger jobs, check build statuses, and perform other Jenkins operations through natural language.MIT
- AlicenseBqualityDmaintenanceA server that enables interaction with Jenkins CI/CD pipelines from any compatible MCP client (like Claude Desktop), allowing users to manage jobs, builds, coverage reports, and other Jenkins functionality through natural language.1115 npmMIT
- 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.56 npm14Apache 2.0