jenkins
MCP server for Jenkins CI/CD integration
claude mcp add --transport stdio ddang-jung-jenkins-mcp-server node /path/to/jenkins-mcp-server/build/index.js \ --env JENKINS_URL="http://your-jenkins-server:8080" \ --env JENKINS_USER="your-username" \ --env JENKINS_TOKEN="your-api-token"
How to use
This Jenkins MCP Server provides a bridge between Claude and your Jenkins instance, enabling automated Jenkins management via the MCP protocol. It exposes tools for discovering and interacting with Jenkins jobs, triggering builds (with parameters), retrieving build statuses and logs, accessing build histories, and monitoring the Jenkins queue. You can view and manage folder structures, monitor console output for debugging, and get detailed information about specific builds. The available tools are designed to be used through MCP requests from Claude, allowing you to compose concise commands to perform common CI/CD tasks without switching contexts to the Jenkins UI.
To use the server, ensure the MCP client (Claude) can reach the Jenkins MCP server endpoint and that the Jenkins connection credentials are correctly configured in the environment. Start the server (via npm start in development or your deployment method) and then invoke the provided tools such as get_build_status, trigger_build, get_build_log, list_jobs, get_build_history, stop_build, get_queue, and get_job_config. For example, you can trigger a parameterized build for a given job path, retrieve its latest status, and pull the corresponding console log for troubleshooting.
How to install
Prerequisites:
- Node.js (14.x or newer) and npm installed on your system
- Access to a Jenkins server with API token-based authentication
Installation steps:
-
Clone the repository: git clone https://github.com/ddang-jung/jenkins-mcp-server.git cd jenkins-mcp-server
-
Install dependencies: npm install
-
Build the project: npm run build
-
Run the server (development): npm start
-
Configure Claude Desktop or your MCP client to point to the built index.js and provide Jenkins credentials (JENKINS_URL, JENKINS_USER, JENKINS_TOKEN) in the environment.
Notes:
- In production, bundle the build artifacts and deploy the server using your preferred process manager (e.g., systemd, PM2) and ensure environment variables are securely managed.
Additional notes
Environment variables and configuration:
- JENKINS_URL: URL to the Jenkins instance
- JENKINS_USER: Jenkins username with API access
- JENKINS_TOKEN: Jenkins API token (recommended) or password
Common issues:
- Authentication failures: verify credentials and token scope
- Incorrect job paths: use the Jenkins job path format (e.g., job/MyProject)
- Network connectivity: ensure the Jenkins server is reachable from the MCP server
Debugging:
- Enable debug logging by setting DEBUG=jenkins-mcp-server in your environment
- Check Jenkins REST API documentation for endpoint specifics
For Claude Desktop configuration, you typically point to the built index.js and supply Jenkins connection details in the env block.
Related MCP Servers
zen
Selfhosted notes app. Single golang binary, notes stored as markdown within SQLite, full-text search, very low resource usage
MCP -Deepseek_R1
A Model Context Protocol (MCP) server implementation connecting Claude Desktop with DeepSeek's language models (R1/V3)
mcp-fhir
A Model Context Protocol implementation for FHIR
mcp
Inkdrop Model Context Protocol Server
mcp-appium-gestures
This is a Model Context Protocol (MCP) server providing resources and tools for Appium mobile gestures using Actions API..
dubco -npm
The (Unofficial) dubco-mcp-server enables AI assistants to manage Dub.co short links via the Model Context Protocol. It provides three MCP tools: create_link for generating new short URLs, update_link for modifying existing links, and delete_link for removing short links.