devops-mcp-server

devops-mcp-server

Exposes DevOps/SRE operations like Kubernetes pod status, Prometheus metrics queries, and deploy history as tools for MCP-compatible clients.

Category
Visit Server

README

devops-mcp-server

A Model Context Protocol (MCP) server that exposes common DevOps/SRE operations — Kubernetes pod status, Prometheus-style metrics queries, and recent deploy history — as tools any MCP-compatible client (Claude Desktop, Claude Code, or a custom LangGraph agent) can call.

Part of a portfolio of agentic AI / AIOps projects. See the index for the full set.

Why this exists

MCP is now supported natively across Anthropic, OpenAI, Google, and Microsoft's agent stacks, but hands-on experience actually building an MCP server (not just consuming public ones) is still uncommon. This repo demonstrates the pattern applied to the domain I know best after 20+ years in infra: exposing operational tooling to an agent in a controlled, typed, auditable way.

Tools exposed

Tool Description
get_pod_status Returns status/restarts/resource usage for a named pod (mock K8s data source)
list_recent_deploys Returns the last N deploys for a service with timestamp + commit (mock CI data source)
query_metric Returns a time-series-style summary for a metric + resource (mock Prometheus data source)

Each tool ships with a strict input schema and read-only mock data sources — safe to demo without cloud credentials. Swap mock_backends.py for real kubernetes client / prometheus-api-client / GitHub Actions API calls to go to production.

Architecture

flowchart LR
    C[MCP Client<br/>Claude Desktop / Code / custom agent] -->|JSON-RPC over stdio| S[devops-mcp-server]
    S --> K[get_pod_status]
    S --> D[list_recent_deploys]
    S --> M[query_metric]
    K -.-> MB[(mock_backends.py)]
    D -.-> MB
    M -.-> MB

Quickstart

pip install -r requirements.txt
python server.py

Connect it to Claude Desktop

Add to your claude_desktop_config.json (see claude_desktop_config.example.json):

{
  "mcpServers": {
    "devops-tools": {
      "command": "python",
      "args": ["/absolute/path/to/devops-mcp-server/server.py"]
    }
  }
}

Restart Claude Desktop, then ask: "Check pod status for payments-api-deployment/pod-7c9f4."

Project layout

devops-mcp-server/
├── server.py                          # MCP server + tool registration
├── mock_backends.py                   # swappable data sources
├── claude_desktop_config.example.json
├── requirements.txt
└── Dockerfile

Extending this

aiops-agent-orchestrator calls these same tools programmatically (not just from a chat client), which is what turns this from a demo into an actual AIOps building block.

License

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured