Jenkins MCP Server

Integrate with Jenkins CI/CD pipelines through your AI assistant - trigger builds, check status, and manage jobs.

April 15, 2026
mcpdevopsjenkinscicdautomation

Jenkins MCP Server

Manage Jenkins pipelines and jobs from your AI assistant.

What it Does

  • Job Management: List, create, and configure Jenkins jobs
  • Build Control: Trigger builds and monitor progress
  • Pipeline Inspection: View pipeline stages and status
  • Log Access: Retrieve and search build logs
  • Node Management: View agent nodes and their status

Installation

# Using npx
npx -y @anthropic-ai/mcp-server-jenkins

# Using Docker
docker run -i --rm mcp/jenkins

Configuration

{
  "mcpServers": {
    "jenkins": {
      "command": "npx",
      "args": ["-y", "@anthropic-ai/mcp-server-jenkins"],
      "env": {
        "JENKINS_URL": "https://jenkins.example.com",
        "JENKINS_USERNAME": "${JENKINS_USERNAME}",
        "JENKINS_API_TOKEN": "${JENKINS_API_TOKEN}"
      }
    }
  }
}

Example Prompts

  • "Show me the last 5 builds for the api-service job"
  • "Why did build #1234 fail?"
  • "Trigger the deploy-to-staging job"
  • "Show logs from the test stage"
  • "List all jobs in the frontend folder"

Security Notes

  • Use API tokens instead of passwords
  • Create a dedicated service account with minimal permissions
  • Use HTTPS for Jenkins URL
  • Rotate API tokens regularly