Jenkins MCP Server

An MCP server that enables creating and managing Jenkins build jobs through the Model Context Protocol.

Get this MCP server

An MCP server that enables creating and managing Jenkins build jobs through the Model Context Protocol.

Installation

From Source Code

python3 mcp_server.py

Features

  • Creating Jenkins build jobs
  • Monitoring build job execution
  • Retrieving build results upon job completion

Environment Variables

Required

  • JENKINS_URL - Jenkins server URL
  • JENKINS_USER - Jenkins username
  • JENKINS_TOKEN - Jenkins API token
  • OPENAI_API_BASE_URL - OpenAI API base URL
  • OPENAI_MODEL - OpenAI model to use
  • OPENAI_API_KEY - OpenAI API key

Notes

Requires editing the .env file with Jenkins credentials and OpenAI configuration. Also requires modifying server_config.json to configure the MCP server port. Use python3 mcp_client.py to test Jenkins build jobs.

Comments (0)

Sign In Sign in to leave a comment.