MCP server for Jenkins CI/CD
## Jenkins MCP Server: Automation Server for CI/CD The **Jenkins MCP Server** integrates the industry-standard Jenkins automation server into Google Antigravity, enabling comprehensive CI/CD pipeline management and build automation through AI-assisted operations. ### Why Jenkins MCP? - **Extensible Platform**: Over 1800 plugins for virtually any tool, technology, or workflow integration - **Pipeline as Code**: Define pipelines in Jenkinsfile for version control and review - **Distributed Builds**: Scale horizontally with agent nodes for parallel job execution - **Mature Ecosystem**: Battle-tested platform with extensive community support and documentation - **Self-Hosted Control**: Complete control over your CI/CD infrastructure and data ### Key Features #### 1. Job Management ```python from anthropic import Anthropic client = Anthropic() response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "List all Jenkins jobs, show their last build status, and trigger failed jobs" }] ) ``` #### 2. Pipeline Operations ```python # Manage pipelines response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Create Jenkins pipeline for Node.js app with build, test, and deploy stages" }] ) ``` #### 3. Build Monitoring ```python # Monitor builds response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "Show console output for failing build and identify the error causing failure" }] ) ``` #### 4. Agent Management ```python # Manage agents response = client.messages.create( model="claude-sonnet-4-20250514", max_tokens=1024, messages=[{ "role": "user", "content": "List connected agents, show their workload, and take offline agent for maintenance" }] ) ``` ### Configuration ```json { "mcpServers": { "jenkins": { "command": "npx", "args": ["-y", "@anthropic/mcp-server-jenkins"], "env": { "JENKINS_URL": "https://jenkins.yourcompany.com", "JENKINS_USER": "your-username", "JENKINS_API_TOKEN": "your-api-token" } } } } ``` ### Use Cases **Build Automation**: Automate compilation, testing, and artifact creation for any technology stack. **Deployment Pipelines**: Orchestrate complex deployment workflows across multiple environments. **Scheduled Jobs**: Run maintenance tasks, reports, and batch processes on schedule. **Legacy Integration**: Integrate with existing enterprise tools through extensive plugin ecosystem. The Jenkins MCP Server brings mature CI/CD automation into your AI-assisted workflow, enabling powerful build and deployment pipelines.
{
"mcpServers": {
"jenkins": {
"mcpServers": {
"jenkins": {
"env": {
"JENKINS_URL": "http://localhost:8080",
"JENKINS_USER": "admin",
"JENKINS_TOKEN": "YOUR_JENKINS_TOKEN"
},
"args": [
"-y",
"jenkins-mcp-server"
],
"command": "npx"
}
}
}
}
}