FastMCP-based DevOps MCP server

FastMCP-based DevOps MCP server

devops-mcps•byhuangjien

A read-only MCP server offering DevOps tools and integrations for GitHub, Jenkins, and Artifactory, with dynamic prompts for common DevOps tasks.

License: MIT•Runtime: Awaiting documentation review•Category: cloud devops

WHAT IT DOES

  • •Provides read-only tools that retrieve data for analysis and display without modifying systems.
  • •Integrates with GitHub for repository details, file contents, issues, code search, and commit history.
  • •Integrates with Jenkins to list jobs, retrieve build logs, inspect build parameters, and monitor failed builds.
  • •Integrates with Artifactory to browse repositories, search artifacts via AQL, and retrieve item details.

BEST FOR

  • •Investigating Jenkins build failures with logs and root cause analysis.
  • •Running daily DevOps monitoring that reviews Jenkins job statuses and recent failures.
  • •Assessing GitHub repository health, including security and CI/CD pipeline analysis.

ABOUT DEVOPS-MCPS

FastMCP-based DevOps MCP server is cataloged as an MCP server attributed to huangjien. A read-only MCP server offering DevOps tools and integrations for GitHub, Jenkins, and Artifactory, with dynamic prompts for common DevOps tasks. It is categorized under cloud devops. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for FastMCP-based DevOps MCP server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Which DevOps platforms does the server integrate with?

It integrates with GitHub, Jenkins, and Artifactory.

Does the server support GitHub Enterprise?

Yes, it automatically detects and connects to both public GitHub and GitHub Enterprise instances, configurable via GITHUB_API_URL.

What transports does the MCP server support?

It supports stdio as the default and stream_http for HTTP streaming.

上游原版 README

在 GitHub 查看同一版本原文

README.md · d12fade7e6ae · 采集于 2026-11-13 11:22:53 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

DevOps MCP Server

PyPI version License: MIT Coverage

A FastMCP-based MCP server providing a suite of DevOps tools and integrations.

This server operates in a read-only manner, retrieving data for analysis and display without modifying your systems. It's designed with safety in mind for DevOps environments.

Certified by MCP Review

Features

The DevOps MCP Server integrates with various essential DevOps platforms:

GitHub Integration

  • Repository Management: Search and view repository details.
  • File Access: Retrieve file contents from repositories.
  • Issue Tracking: Manage and track issues.
  • Code Search: Perform targeted code searches.
  • Commit History: View commit history for branches.
  • Public & Enterprise Support: Automatically detects and connects to both public GitHub and GitHub Enterprise instances (configurable via GITHUB_API_URL).

Jenkins Integration

  • Job Management: List and manage Jenkins jobs.
  • Build Logs: Retrieve and analyze build logs.
  • View Management: Access and manage Jenkins views.
  • Build Parameters: Inspect parameters used for builds.
  • Failure Monitoring: Identify and monitor recent failed builds.

Artifactory Integration

  • Repository Browsing: List items (files and directories) within Artifactory repositories.
  • Artifact Search: Search for artifacts by name or path across multiple repositories using Artifactory Query Language (AQL).
  • Item Details: Retrieve metadata and properties for specific files and directories.
  • Authentication: Supports both token-based and username/password authentication.

Installation

Install the package using pip:

pip install devops-mcps

Usage

Run the MCP server directly:

devops-mcps

Transport Configuration

The server supports two communication transport types:

  • stdio (default): Standard input/output.
  • stream_http: HTTP streaming transport.

Local Usage:

# Default stdio transport
devops-mcps

# stream_http transport (runs HTTP server on 127.0.0.1:3721/mcp by default)
devops-mcps --transport stream_http

UVX Usage:

If using UVX, first install the tools:

uvx install

Then run:

# Default stdio transport
uvx run devops-mcps

# stream_http transport
uvx run devops-mcps-stream-http

Using Make

Use the provided Makefile to streamline common tasks:

# Discover available targets
make help

# Install dev dependencies (auto-detects uv, falls back to pip)
make install

# One-shot dev setup: install, format, and lint
make dev

# Run MCP server (stdio)
make run

# Run MCP server (stream_http) with optional mount path
make run-http MOUNT_PATH=/mcp

# Test and coverage
make test
make coverage

# Build and publish the package
make build
make publish

# Docker workflows
make docker-build
make docker-run
make docker-push REGISTRY=your.registry.example

Configuration

Configure the server using environment variables:

Required:

# GitHub
export GITHUB_PERSONAL_ACCESS_TOKEN="your_github_token"
# Optional: For GitHub Enterprise, set your API endpoint
# export GITHUB_API_URL="https://github.mycompany.com"

# Jenkins
export JENKINS_URL="your_jenkins_url"
export JENKINS_USER="your_jenkins_username"
export JENKINS_TOKEN="your_jenkins_api_token_or_password"

# Artifactory
export ARTIFACTORY_URL="https://your-artifactory-instance.example.com"
# Choose ONE authentication method:
export ARTIFACTORY_IDENTITY_TOKEN="your_artifactory_identity_token"
# OR
export ARTIFACTORY_USERNAME="your_artifactory_username"
export ARTIFACTORY_PASSWORD="your_artifactory_password"

Optional:

# Jenkins Log Length (default: 5120 bytes)
export LOG_LENGTH=10240

# MCP Server Port for stream_http transport (default: 3721)
export MCP_PORT=3721

# Dynamic Prompts (optional)
export PROMPTS_FILE="example_prompts.json"

Note: LOG_LENGTH controls the amount of Jenkins log data retrieved. Adjust as needed.

Alternative: Using .env file

You can also create a .env file in the project root directory instead of setting environment variables manually:

# .env file
GITHUB_PERSONAL_ACCESS_TOKEN=your_github_token_here
PROMPTS_FILE=example_prompts.json
# Add other optional environment variables as needed

The server will automatically load environment variables from the .env file when it starts.

Dynamic Prompts

The server supports loading custom prompts from a JSON file. Set the PROMPTS_FILE environment variable to the path of your prompts configuration file.

Prompts File Format:

{
  "prompts": [
    {
      "name": "github_repo_analysis",
      "description": "Analyze a GitHub repository for DevOps insights",
      "template": "Please analyze the GitHub repository {{owner}}/{{repo}} and provide insights on:\n\n1. Repository structure and organization\n2. CI/CD pipeline configuration\n3. Code quality indicators\n4. Security considerations\n5. Documentation quality\n\n{{#include_issues}}Also include analysis of recent issues and their resolution patterns.{{/include_issues}}",
      "arguments": [
        {
          "name": "owner",
          "description": "GitHub repository owner",
          "required": true
        },
        {
          "name": "repo",
          "description": "GitHub repository name",
          "required": true
        },
        {
          "name": "include_issues",
          "description": "Include analysis of repository issues",
          "required": false
        }
      ]
    }
  ]
}

Using Prompts

The DevOps MCP Server provides dynamic prompts that help you perform common DevOps tasks. Here's how to use the available prompts:

Available Prompts

  1. quick_repo_check - Comprehensive repository health assessment with security analysis
  2. daily_check - Complete DevOps monitoring with Jenkins job analysis and infrastructure status
  3. build_troubleshoot - Advanced build failure investigation with root cause analysis

Using the daily_check Prompt

Purpose: Comprehensive DevOps monitoring and infrastructure status reporting with Jenkins job analysis.

Parameters:

ParameterTypeRequiredDescription
time_rangestring❌ NoTime range for analysis (e.g., "24h", "7d", "1w")
include_infrastructureboolean❌ NoInclude infrastructure status in the report
focus_areastring❌ NoSpecific area to focus on (e.g., "builds", "deployments", "security")

Usage Examples:

# Basic daily monitoring
Prompt: daily_check

# Weekly infrastructure review
Prompt: daily_check
Parameters:
- time_range: "7d"
- include_infrastructure: true

# Focus on build failures
Prompt: daily_check
Parameters:
- time_range: "24h"
- focus_area: "builds"

What it does:

  1. 🔍 Jenkins Job Analysis: Comprehensive review of job statuses and recent failures
  2. 🔧 Root Cause Investigation: Deep dive into failure patterns and trends
  3. 🏗️ Infrastructure Status: Health check of critical infrastructure components
  4. 📋 Actionable Recommendations: Prioritized action items with implementation guidance
  5. 📊 Executive Summary: High-level overview with key metrics and trends

Using the build_troubleshoot Prompt

Purpose: Advanced build failure investigation with comprehensive root cause analysis and actionable recommendations.

Parameters:

ParameterTypeRequiredDescription
job_namestring✅ YesJenkins job name
build_numberstring❌ NoBuild number to analyze (use -1 for latest)
include_logsboolean❌ NoWhether to include build logs in analysis

Usage Examples:

# Basic usage (latest build)
Prompt: build_troubleshoot
Parameters:
- job_name: "my-application-build"

# Specific build number
Prompt: build_troubleshoot
Parameters:
- job_name: "my-application-build"
- build_number: "42"

# With build logs
Prompt: build_troubleshoot
Parameters:
- job_name: "my-application-build"
- build_number: "42"
- include_logs: true

What it does:

  1. Gets build status and basic information for the specified job
  2. Retrieves and analyzes build logs (if include_logs is true)
  3. Identifies potential failure causes based on the build data
  4. Suggests troubleshooting steps with actionable recommendations

Using the quick_repo_check Prompt

Purpose: Comprehensive repository health assessment with security analysis and DevOps best practices evaluation.

Parameters:

ParameterTypeRequiredDescription
repo_namestring✅ YesRepository name in format 'owner/repo'
include_securityboolean❌ NoInclude security analysis in the assessment
check_ci_cdboolean❌ NoAnalyze CI/CD pipeline configuration

Usage Examples:

# Basic repository check
Prompt: quick_repo_check
Parameters:
- repo_name: "facebook/react"

# Comprehensive security assessment
Prompt: quick_repo_check
Parameters:
- repo_name: "myorg/myproject"
- include_security: true
- check_ci_cd: true

What it does:

  1. 📊 Repository Health Assessment: Comprehensive evaluation of repository status and metrics
  2. 🔒 Security Analysis: Security configuration review and vulnerability assessment
  3. 🏗️ CI/CD Pipeline Evaluation: Analysis of build and deployment configurations
  4. 📋 Actionable Recommendations: Prioritized improvement suggestions with implementation guidance
  5. 📈 Executive Summary: High-level overview with key findings and strategic recommendations

Natural Language Support

The DevOps MCP Server supports both structured and natural language approaches for invoking prompts:

Structured Format (Explicit):

Use prompt: build_troubleshoot
Parameters:
- job_name: "creole-Automerge-main"
- build_number: 29
- include_logs: true

Natural Language Format (Recommended):

"Perform daily DevOps monitoring check for the last 24 hours"

"Troubleshoot the Jenkins build failure for job 'creole-Automerge-main' build #29 with detailed logs"

"Check the GitHub repository facebook/react with security analysis"

"Analyze the failed build for my-app-build job number 42 including logs"

"Run weekly infrastructure review with comprehensive monitoring"

"Assess repository health for myorg/myproject including CI/CD pipeline analysis"

How Natural Language Processing Works:

  1. Intent Recognition: The AI assistant identifies which prompt matches your request
  2. Parameter Extraction: Extracts specific values (job names, build numbers, repo names) from your message
  3. Automatic Mapping: Maps your natural language to the structured prompt format
  4. Context Awareness: Uses conversation history and workspace context for missing parameters

Tips for Better Natural Language Recognition:

  • Use Keywords: Include terms like "troubleshoot", "analyze", "check repository", "build failure"
  • Be Specific: Mention exact job names, build numbers, repository names
  • Use Quotes: Put specific values in quotes for clarity (e.g., "my-job-name")
  • Include Context: Specify what type of analysis you want

Example Natural Language Patterns:

IntentNatural Language Examples
Daily Monitoring"Daily DevOps check", "Run daily monitoring", "Infrastructure status report"
Repository Analysis"Check repo owner/name with security", "Analyze GitHub repository X with CI/CD"
Build Troubleshooting"Debug build failure", "Troubleshoot job X build Y", "Investigate build issues"
Include Logs"with logs", "including detailed logs", "show build logs"
Latest Build"latest build", "most recent build", "current build"
Time Range"last 24 hours", "past week", "7 days", "weekly review"
Focus Areas"focus on builds", "security analysis", "infrastructure review"

Prerequisites

To use Jenkins-related prompts like build_troubleshoot, ensure you have:

# Required Jenkins environment variables
export JENKINS_URL="https://your-jenkins-server.com"
export JENKINS_USER="your-username"
export JENKINS_TOKEN="your-api-token"

To use GitHub-related prompts like quick_repo_check, ensure you have:

# Required GitHub environment variable
export GITHUB_PERSONAL_ACCESS_TOKEN="your_github_token"

Template Variables:

  • Use {{variable_name}} for simple variable substitution
  • Use {{#variable_name}}...{{/variable_name}} for conditional blocks (shown if variable has a value)
  • Use {{^variable_name}}...{{/variable_name}} for negative conditional blocks (shown if variable is empty/null)

Available Tools for Prompts: Your prompts can reference any of the available MCP tools:

  • GitHub tools: search_repositories, get_file_contents, list_commits, list_issues, etc.
  • Jenkins tools: get_jenkins_jobs, get_jenkins_build_log, get_recent_failed_jenkins_builds, etc.
  • Azure tools: get_azure_subscriptions, list_azure_vms, list_aks_clusters, etc.
  • Artifactory tools: list_artifactory_items, search_artifactory_items, get_artifactory_item_info, etc.

Docker

Build the Docker image:

docker build -t devops-mcps .

Run the container:

# Stdio transport (interactive)
docker run -i --rm \
  -e GITHUB_PERSONAL_ACCESS_TOKEN="..." \
  -e JENKINS_URL="..." \
  -e JENKINS_USER="..." \
  -e JENKINS_TOKEN="..." \
  -e ARTIFACTORY_URL="..." \
  -e ARTIFACTORY_IDENTITY_TOKEN="..." \
  devops-mcps

# stream_http transport (background, HTTP server on 127.0.0.1:3721/mcp by default)
docker run -d -p 3721:3721 --rm \
  -e TRANSPORT_TYPE=stream_http \
  -e MCP_PORT=3721 \
  -e GITHUB_PERSONAL_ACCESS_TOKEN="..." \
  -e JENKINS_URL="..." \
  -e JENKINS_USER="..." \
  -e JENKINS_TOKEN="..." \
  -e ARTIFACTORY_URL="..." \
  -e ARTIFACTORY_IDENTITY_TOKEN="..." \
  devops-mcps

Replace ... with your actual credentials.

VSCode Integration

Configure the MCP server in VSCode's settings.json:

Example (UVX with stdio):

"devops-mcps": {
  "type": "stdio",
  "command": "uvx",
  "args": ["devops-mcps"],
  "env": {
    "GITHUB_PERSONAL_ACCESS_TOKEN": "ghp_...",
    "GITHUB_API_URL": "https://github.mycompany.com", // Optional for GHE
    "JENKINS_URL": "...",
    "JENKINS_USER": "...",
    "JENKINS_TOKEN": "...",
    "ARTIFACTORY_URL": "...",
    "ARTIFACTORY_IDENTITY_TOKEN": "cm..." // Or USERNAME/PASSWORD
  }
}

Example (Docker with stream_http):

Ensure the Docker container is running with stream_http enabled (see Docker section).

{
  "type": "stream_http",
  "url": "http://127.0.0.1:3721/mcp", // Adjust if Docker host is remote or if MCP_PORT is set differently
  "env": {
    // Environment variables are set in the container,
    // but can be overridden here if needed.
    "GITHUB_PERSONAL_ACCESS_TOKEN": "ghp_..."
  }
}

Refer to the initial README.md sections for other transport/runner combinations (UVX/stream_http, Docker/stdio).

Development

Set up your development environment:

# Install dependencies (using uv)
uv pip install -e ".[dev]"
# Or sync with lock file
# uv sync --all-extras --group dev

Linting and Formatting (Ruff):

# Check code style
uvx ruff check .

# Format code
uvx ruff format .

Testing (Pytest):

# Run tests with coverage using the provided script
./test.sh

# Or run manually
pytest --cov=src/devops_mcps --cov-report=html:coverage/html --cov-report=xml --cov-fail-under=80 tests/

Test Script Features:

The project includes a comprehensive test.sh script that:

  • Automatically checks for uv installation
  • Syncs development dependencies
  • Runs all tests with pytest
  • Generates both HTML and XML coverage reports
  • Automatically opens the HTML coverage report in your browser (skipped in CI)
  • Requires minimum 80% test coverage (the project maintains high coverage)

Coverage Reports:

  • HTML report: coverage/html/index.html (opens automatically)
  • XML report: coverage.xml (for CI/CD integration)

Debugging with MCP Inspector:

# Basic run
npx @modelcontextprotocol/inspector uvx run devops-mcps

# Run with specific environment variables
npx @modelcontextprotocol/inspector uvx run devops-mcps -e GITHUB_PERSONAL_ACCESS_TOKEN=... -e JENKINS_URL=... # Add other vars

Checking for package dependencies outdated

uv pip list --outdated

Updating package dependencies

uv lock --upgrade

CI/CD

A GitHub Actions workflow (.github/workflows/ci.yml) handles:

  1. Linting & Testing: Runs Ruff and Pytest on pushes and pull requests.
  2. Publishing: Builds and publishes the Python package to PyPI and the Docker image to Docker Hub on pushes to the main branch.

Required Repository Secrets:

  • PYPI_API_TOKEN: PyPI token for package publishing.
  • DOCKER_HUB_USERNAME: Docker Hub username.
  • DOCKER_HUB_TOKEN: Docker Hub access token.

Packaging and Publishing (Manual)

Ensure you have build and twine installed:

pip install -U build twine
  1. Update Version: Increment the version number in pyproject.toml.
  2. Build: python -m build
  3. Upload: twine upload dist/* (Requires ~/.pypirc configuration or token input).

Appendix: GitHub Search Query Syntax

Leverage GitHub's powerful search syntax within the MCP tools:

Repository Search (gh_search_repositories):

  • in:name,description,readme: Search specific fields. Example: fastapi in:name
  • user:USERNAME or org:ORGNAME: Scope search to a user/org. Example: user:tiangolo fastapi
  • language:LANGUAGE: Filter by language. Example: http client language:python
  • stars:>N, forks:<N, created:YYYY-MM-DD, pushed:>YYYY-MM-DD: Filter by metrics and dates. Example: language:javascript stars:>1000 pushed:>2024-01-01
  • topic:TOPIC-NAME: Filter by topic. Example: topic:docker topic:python
  • license:LICENSE-KEYWORD: Filter by license (e.g., mit, apache-2.0). Example: language:go license:mit

Code Search (gh_search_code):

  • in:file,path: Search file content (default) or path. Example: "import requests" in:file
  • repo:OWNER/REPO: Scope search to a specific repository. Example: "JenkinsAPIException" repo:your-org/your-repo
  • language:LANGUAGE: Filter by file language. Example: def main language:python
  • path:PATH/TO/DIR, filename:FILENAME.EXT, extension:EXT: Filter by path, filename, or extension. Example: "GithubException" path:src/devops_mcps extension:py

References:

License

This project is licensed under the MIT License. See the LICENSE file for details.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for FastMCP-based DevOps MCP server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/devops-mcps)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related cloud devops MCP Servers

Alternative and complementary servers in the same category

View all in cloud devops →
Huawei MCP Server
mcp-server-huaweiclouddeveloper•huaweiclouddeveloper

A Model Context Protocol server built on Huawei Cloud services that enables AI assistants to operate Huawei Cloud resources within conversational workflows, supporting ECS, OBS, GaussDB, and other cloud products.

Repository stats unavailable
Cloud & DevOps
Coolify MCP Server
coolify-mcp-server•wrediam

An MCP server that exposes the Coolify v4.3.1 REST API so AI clients can manage applications, databases, services, servers, deployments, and more.

Repository stats unavailable
Cloud & DevOps

A deprecated Model Context Protocol server for interacting with Kong Konnect APIs, enabling AI assistants to query and analyze Kong Gateway configurations, traffic, and analytics.

Repository stats unavailable
Cloud & DevOps