devops-mcp
Reads GitHub Actions workflow runs, reporting status and conclusion for a specific run and listing which workflows have failed in the last 24 hours.
Reads GitLab CI pipelines, returning status, ref and duration for a given pipeline and listing recently failed pipelines, against gitlab.com or a self-hosted instance.
Reads Jenkins build results: success status and duration of a given build, the tail of a build log, and a list of jobs that are currently failing.
Inspects Kubernetes clusters using the user's kubeconfig: lists crashing pods, fetches pod logs, describes pod state (conditions, restarts, events), reports cluster Warning events, and shows whether a deployment rollout is progressing or stuck.
Reads Slack channel history and searches messages across channels, and can post a message to a channel when writes are explicitly enabled via DEVOPS_MCP_ENABLE_WRITES.
devops-mcp
devops-mcp lets Claude read from your Kubernetes, Jenkins, GitHub Actions, GitLab CI, AWS, Azure, GCP, ServiceNow, Slack and Teams, so on-call engineers can ask one question instead of checking six dashboards.
New here? Claude can look at your servers and build systems for you and explain what it finds, but it cannot change them.
It is an MCP server. MCP (Model Context Protocol) is the way Claude Code and Claude Desktop call outside tools. Site with the tool browser: https://gerardrecinto.github.io/devops-mcp/
Try it in 60 seconds
You need Python 3.11 or later, pipx on your PATH, and Claude Code installed to register the server.
pipx install "git+https://github.com/gerardrecinto/devops-mcp.git"
claude mcp add devops-mcp -- devops-mcp
devops-mcp --check--check prints which services have local configuration and what to do next. It does not make network requests or verify credentials. Then ask Claude:
Which pods are failing in my cluster?
With no other setup it uses your current kubeconfig (~/.kube/config), so the answer is about your real cluster. A service you have not set up returns a plain "not configured" error.
This installs from GitHub on purpose. The devops-mcp package on PyPI is a different project, and this one is not published there yet.
Related MCP server: datadog-aws-mcp
Example
Illustrative only. The pod names, incident number and times are made up to show the flow. They are not output from a real system.
You: "The API deployment has been stuck for 20 minutes. What's going on?"
Claude:
[k8s_get_deployment_status("api-server", "production")]
desired: 3 ready: 1 updated: 3 strategy: RollingUpdate
[k8s_get_failing_pods("production")]
api-server-7d9f8b-xk2p9 CrashLoopBackOff restarts: 14
[k8s_pod_logs("api-server-7d9f8b-xk2p9", tail_lines=30)]
[09:10:03] FATAL postgresql://db-prod:5432: Connection refused
[k8s_get_events("production", event_type="Warning")]
OOMKilling Pod/db-prod-0 "Memory limit exceeded" count: 3
Claude: db-prod-0 was OOMKilled, so the API pods cannot reach the database.Connect more systems
Copy .env.example to ~/.devops-mcp/.env and fill in only the services you use. The server reads that file on start, then restart your client. Run devops-mcp --check again to check that the configuration is present. An actual tool call verifies access.
Azure, GCP and Slack need extra packages:
pipx install --force "mcp-devops[azure,gcp,slack] @ git+https://github.com/gerardrecinto/devops-mcp.git"To see the output shape before connecting anything, add the demo flag. Every response is then labelled as sample data and is not real information about your systems. Remove the flag once you connect real systems.
claude mcp add devops-mcp -e DEVOPS_MCP_DEMO=1 -- devops-mcpTracing and SLO helpers (optional)
Two small add-ons that the server does not turn on by itself.
devops_mcp.tracing: OpenTelemetry spans around a tool call. Install withpip install "mcp-devops[otel]", callconfigure_tracing(), then wrap a function with@traced("tool_name"). Spans record the tool name and argument names, never argument values. A sample collector config is indocs/observability/otel-collector.yaml.devops_mcp.slo: multi-window burn-rate alerts (the 14.4x, 6x, 3x and 1x pattern from the Google SRE Workbook). Try it:python -m devops_mcp.slo --slo 0.999 --window 1h=200/10000 --window 5m=20/1000.
Tools
35 tools. The full list with arguments is in the tool browser, and the tables are below.
Service | Tools |
Incident timeline | 1 |
Kubernetes | 5 |
Jenkins | 3 |
GitHub Actions | 2 |
GitLab CI | 2 |
AWS | 4 |
Azure | 4 |
GCP | 4 |
ServiceNow | 3 |
Slack and Teams | 6 |
Server health | 1 |
Optional: no announcement before a real look (with Joltrin)
slack_post_message and teams_post_message can tell a whole channel something false if an assistant posts before it has looked at anything. With Joltrin the server can refuse a post until this session has read real data from a system.
It needs a Joltrin build with the gate command (in Joltrin's master, not yet in a release: go install github.com/sharedcode/joltrin/v5/cmd/sop-mcp-server@master). Copy examples/order.json and examples/runbooks.json next to each other, then start the server with the file named in the environment:
DEVOPS_MCP_ORDER=$PWD/examples/order.json DEVOPS_MCP_ENABLE_WRITES=1 devops-mcpA post then returns order_not_satisfied until one of the tools listed under record (for example k8s_get_failing_pods) has returned real data in the same server session.
What to know:
Off unless
DEVOPS_MCP_ORDERis set. Nothing else changes.Only real data counts. An error, or sample data from demo mode, does not.
If the file or
sop-mcp-servercannot be used, the two post tools are refused and say why. Read tools keep working.A session is one server process, or the name in
DEVOPS_MCP_ORDER_SESSION. A long-running server keeps "already looked" until it restarts.It checks that a read happened, not that its result was good news.
What it does and does not do
It is read-only by default. Read-only means no tool applies, deletes, restarts or triggers anything.
The only writes are Slack and Teams messages, and they are refused unless you set
DEVOPS_MCP_ENABLE_WRITES=1.Tool calls are logged to
~/.devops-mcp/audit.logwhen audit storage is available, with secret-like values redacted. Audit failures produce a warning and leave the server usable.It reports what the APIs return. Claude's explanation of a root cause is a hypothesis to check, not a verdict.
It does not create or close ServiceNow records, run
kubectl apply, or start builds.
More detail
Incident timeline
Tool | What it answers |
| What changed, and what broke, in the last N hours? One ordered view across ServiceNow, Kubernetes, GitHub Actions and Jenkins, with the changes that landed just before the first failure listed as suspects |
Suspects are matched by time proximity (a change within 2 hours before the first failure) and the response says so. A source that is unconfigured, in demo mode or failing is reported as skipped and never filled in with sample data.
Kubernetes
Tool | What it answers |
| What pods are crashing right now? |
| What is this pod printing? |
| Full state: conditions, restart counts, events |
| What Warnings has the cluster emitted? |
| Is this rollout progressing or stuck? |
Jenkins
Tool | What it answers |
| Did build #N succeed, and how long did it take? |
| Last N lines of a build |
| Which jobs are currently red? |
GitHub Actions
Tool | What it answers |
| Status and conclusion for a specific run |
| Which workflows have failed in the last 24 hours? |
GitLab CI
Tool | What it answers |
| Status, ref and duration of one pipeline |
| Which pipelines failed recently? Works with gitlab.com or a self-hosted |
AWS
Tool | What it answers |
| What did this log group emit? |
| Current CloudWatch metric value |
| Versioning, lifecycle, encryption config |
| Running vs desired vs pending |
Azure
Tool | What it answers |
| KQL query against Log Analytics |
| Azure Monitor metric |
| AKS node pool state |
| Is this Azure resource healthy? |
GCP
Tool | What it answers |
| Cloud Logging filter query |
| Cloud Monitoring metric |
| GKE cluster and node pool status |
| Cloud Run revision and traffic split |
ServiceNow
Tool | What it answers |
| Open incidents right now |
| Full detail on INC0012345 |
| Scheduled or in-flight changes |
Slack / Teams
Tool | What it does |
| Post to a channel (needs |
| What was said in #incidents recently? |
| Search Slack messages across channels |
| Post an alert card via webhook (needs |
| Recent messages in a Teams channel (Graph API) |
| Channels in a Teams team (Graph API) |
Server
Tool | What it answers |
| Which integrations are configured, and are demo mode and writes on? |
Tool failures come back as {"error", "message", "hint"} instead of a stack trace.
The image includes every integration. It speaks MCP over stdio, so the client starts it:
docker pull ghcr.io/gerardrecinto/devops-mcp:latest
claude mcp add devops-mcp -- docker run -i --rm --env-file ~/.devops-mcp/.env \
-v ~/.kube:/home/devops-mcp/.kube:ro ghcr.io/gerardrecinto/devops-mcp:latestAdd to ~/Library/Application Support/Claude/claude_desktop_config.json, then restart:
{
"mcpServers": {
"devops-mcp": {
"command": "devops-mcp"
}
}
}Credentials go in ~/.devops-mcp/.env (see .env.example). To try sample data first, add "env": { "DEVOPS_MCP_DEMO": "1" } and remove it later.
A first draft of "wrap the Kubernetes API in an MCP tool" is easy. The parts that make it safe to run against production are not, and each one is tested here:
One timeline instead of six dashboards.
incident_timelinemerges changes, CI failures, cluster warnings and incidents into one ordered view and names the changes that landed shortly before things broke. That cross-system join is the part a single-service wrapper does not give you.It never invents data. An unconfigured service returns a plain "not configured" error. Sample data is opt-in (
DEVOPS_MCP_DEMO=1) and every response is labelled, so an assistant cannot report a made-up OOMKill or a Slack message that was never sent.It finds the failures that matter. A crash-looping pod reports phase
Running; the reason sits on the container state. The pod check reads container waiting and terminated reasons, so CrashLoopBackOff and ImagePullBackOff are caught, not justPending.Read-only by default. No tool applies, deletes, restarts or triggers anything. The only writes are Slack and Teams messages, and those are refused unless the operator sets
DEVOPS_MCP_ENABLE_WRITES=1.Prompt-injection aware. A webhook URL supplied by the model is ignored unless its host is in
DEVOPS_MCP_TEAMS_WEBHOOK_ALLOWLISTand is an https Microsoft endpoint, so injected text in a log line cannot make the server POST channel content to an arbitrary host.A private audit trail. When audit storage is available, each tool call is logged as one JSON line in
~/.devops-mcp/audit.log(mode 0600, rotated at 10 MB). Secret-like parameters are redacted, message tools log the destination and a SHA-256 of the body instead of the body, and an audit initialization or write failure is logged without stopping the server.Bounded output. Pod logs are capped by lines and bytes (a cut is marked
[truncated ...]), and Jenkins console logs are streamed so a multi-hundred-MB build log cannot exhaust memory.Partial installs work. Each integration loads on its own; one broken module never stops the rest.
See docs/architecture.md for the full protocol flow, tool registration, and audit logging diagrams.
+-----------------------------------------------------------------------+
| Claude (LLM) |
| "Why is production down?" / "Which jobs are failing right now?" |
+-----------------------------------+-----------------------------------+
| MCP Protocol (stdio)
v
+-----------------------------------------------------------------------+
| devops-mcp server |
| |
| Kubernetes | Jenkins/GHA | AWS | Azure |
| pods/events | build logs | CW logs | Monitor/AKS |
| deployment | failing jobs | metrics/ECS | resource health |
| | | | |
| GCP | ServiceNow | Slack | Teams |
| Cloud Logs | incidents | post/search | post/messages |
| GKE/Run | changes | history | channels |
| |
| Audit log (~/.devops-mcp/audit.log) |
+-----------------------------------------------------------------------+Each tool module (Kubernetes, Jenkins, AWS, etc.) loads independently. If a module fails to import, the server logs the error and continues. Every other module still registers its tools normally. The version is logged at startup.
A service without credentials answers with a "not configured" error instead of guessing. Set DEVOPS_MCP_DEMO=1 to get labelled sample data instead.
Infrastructure tools are read-only. Claude can observe and explain, not modify. The Slack and Teams post tools are the only writes, and they are off until you set DEVOPS_MCP_ENABLE_WRITES=1.
Action | Available |
Read pod logs, events, deployment status | yes |
Read build logs and pipeline status | yes |
Read CloudWatch / Azure Monitor / Cloud Logging | yes |
Read ServiceNow incidents and changes | yes |
Post to Slack / Teams | only with |
| no |
Create or close ServiceNow records | no |
To let the model pick a Teams webhook per call, list the allowed hosts in DEVOPS_MCP_TEAMS_WEBHOOK_ALLOWLIST (comma-separated). Otherwise only TEAMS_WEBHOOK_URL is used.
Credentials are environment variables only. Each service is independently optional.
When audit storage is available, tool calls are appended to ~/.devops-mcp/audit.log with secret-like parameters redacted.
For the commercial path, launch angles, and first-customer profile, see docs/go-to-market.md.
pip install -e ".[dev]"
pytest tests/ -v --cov=devops_mcpGrafana alert history
PagerDuty incident lookup
Terraform state drift detection
ArgoCD sync status
SSE transport
For the commercial path and first-customer profile, see docs/go-to-market.md.
Verify a release
Each release has SHA256SUMS and SHA256SUMS.asc, a PGP signature made with the release signing key in release-signing-key.asc. Key fingerprint: 2E2B 3624 9A63 F824 1934 B6CF 0162 AE8B BEF8 D486.
gh release download "$(gh release view --repo gerardrecinto/devops-mcp --json tagName -q .tagName)" --repo gerardrecinto/devops-mcp
curl -sO https://raw.githubusercontent.com/gerardrecinto/devops-mcp/main/release-signing-key.asc
gpg --import release-signing-key.asc
gpg --verify SHA256SUMS.asc SHA256SUMS
shasum -a 256 -c SHA256SUMSgpg --verify should say Good signature and show the fingerprint above. A good signature proves the checksums file was signed by whoever holds that key, so compare the fingerprint with the one in other places you trust before relying on it. Then shasum -a 256 -c checks that your downloaded files match. Releases before the one that added SHA256SUMS.asc were signed after the fact, from checksums that matched the published files.
License
MIT
Optional paid help: scoped reviews and setup.
Available Tools
35 toolsaws_describe_s3_bucketC
Describe S3 bucket: region, versioning, lifecycle rules count.
Inputs: bucket_name (required). Returns: result
aws_get_cloudwatch_logsC
Fetch recent CloudWatch log events.
Inputs: log_group (required), minutes, log_stream, filter_pattern. Returns: result
aws_get_ecs_service_statusC
Get ECS service running/desired task counts and deployment status.
Inputs: cluster (required), service (required). Returns: result
aws_get_metricC
Get CloudWatch metric statistics. dimensions format: 'Key1=Value1,Key2=Value2'
Inputs: namespace (required), metric_name (required), stat, minutes, +1 more. Returns: result
azure_get_aks_node_statusC
Get AKS cluster node status. (demo mode)
Inputs: cluster_name (required), resource_group (required). Returns: result
azure_get_metricC
Get an Azure Monitor metric. (demo mode)
Inputs: metric_name (required), resource_uri (required), minutes, aggregation. Returns: result
azure_get_monitor_logsC
Run a KQL query against Log Analytics. (demo mode -- azure-monitor-query not installed)
Inputs: query (required), workspace_id (required), hours. Returns: result
azure_get_resource_healthC
Get Azure Resource Health status. (demo mode)
Inputs: resource_uri (required). Returns: result
devops_mcp_healthB
Which integrations are configured, whether sample data and writes are on, and what to do next.
Inputs: no named parameters. Returns: result
gcp_get_cloud_run_statusC
Get Cloud Run service status. (demo mode)
Inputs: region (required), service_name (required), project. Returns: result
gcp_get_gke_cluster_statusC
Get GKE cluster status. (demo mode)
Inputs: location (required), cluster_name (required), project. Returns: result
gcp_get_logsC
Query Cloud Logging. (demo mode -- google-cloud-logging not installed)
Inputs: filter_str (required), hours, project. Returns: result
gcp_get_metricC
Query Cloud Monitoring metric. (demo mode)
Inputs: metric_type (required), minutes, project. Returns: result
gh_get_workflow_runC
Get details of a specific GitHub Actions workflow run.
Inputs: repo (required), owner (required), run_id (required). Returns: result
gh_list_failed_runsC
List recent failed workflow runs for a repository.
Inputs: repo (required), owner (required), limit, workflow_id. Returns: result
gl_get_pipelineC
Get one GitLab CI pipeline. project is the path, for example group/app.
Inputs: project (required), pipeline_id (required). Returns: result
gl_list_failed_pipelinesC
List recent failed GitLab CI pipelines for a project.
Inputs: project (required), limit. Returns: result
incident_timelineA
One ordered timeline of changes, CI failures, cluster warnings and incidents.
Lists the changes that landed shortly before the first failure as suspects. namespace, owner/repo and job_name opt in to Kubernetes, GitHub Actions and Jenkins; ServiceNow is always queried. Correlation is by time only.
Inputs: repo, hours, owner, job_name, +1 more. Returns: result
jenkins_get_build_logC
Fetch console log for a Jenkins build.
Inputs: job_name (required), tail_lines, build_number. Returns: result
jenkins_get_build_statusA
Get status of a Jenkins build. build_number=0 fetches the last completed build.
Inputs: job_name (required), build_number. Returns: result
jenkins_list_failing_jobsC
List all jobs currently in a failed state.
Inputs: view. Returns: result
k8s_describe_podC
Describe a pod: status, containers, recent events.
Inputs: pod_name (required), namespace. Returns: result
k8s_get_deployment_statusC
Get rollout status of a deployment.
Inputs: deployment_name (required), namespace. Returns: result
k8s_get_eventsC
List cluster events, optionally filtered by field selector.
Inputs: namespace, field_selector. Returns: result
k8s_get_failing_podsB
List pods not in Running/Succeeded state.
Inputs: namespace. Returns: result
k8s_pod_logsC
Fetch recent logs from a pod.
Inputs: pod_name (required), namespace, tail_lines. Returns: result
slack_get_channel_historyC
Fetch recent Slack messages. (demo mode)
Inputs: channel (required), hours. Returns: result
slack_post_messageC
Post a message to Slack. (demo mode -- slack-sdk not installed)
Inputs: text (required), channel (required). Returns: result
slack_search_messagesC
Search Slack messages. (demo mode)
Inputs: query (required), count. Returns: result
snow_get_change_requestsC
List ServiceNow change requests. (demo mode)
Inputs: limit, state. Returns: result
snow_get_incidentC
Get a ServiceNow incident by number. (demo mode)
Inputs: number (required). Returns: result
snow_list_incidentsC
List ServiceNow incidents. (demo mode -- SNOW_INSTANCE not configured)
Inputs: limit, state, assigned_to. Returns: result
teams_get_channel_messagesC
Fetch recent messages from a Teams channel. (demo mode)
Inputs: team_id (required), channel_id (required), hours. Returns: result
teams_list_channelsC
List channels in a Microsoft Teams team. (demo mode)
Inputs: team_id (required). Returns: result
teams_post_messageB
Post an alert card to a Teams channel via webhook. (demo mode -- TEAMS_WEBHOOK_URL not configured)
Inputs: text (required), title (required), color, webhook_url. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 35 tools
Provider prefixes plus resource/action nouns make most tools clearly distinct, even when the same action appears across clouds (e.g. aws_get_metric, azure_get_metric, gcp_get_metric). There is some conceptual overlap around Kubernetes pod troubleshooting and various status tools, but the descriptions provide enough boundaries.
Most tools use snake_case with a provider prefix and a predictable verb_noun pattern such as get, list, describe, or post. Minor deviations exist: gh/gl abbreviations are less explicit, k8s_pod_logs lacks a leading verb, and incident_timeline/devops_mcp_health break the provider-action pattern.
The 35-tool surface is heavy but covers a deliberately broad multi-platform DevOps scope spanning Kubernetes, CI systems, multiple clouds, incident management, and chat. It is borderline for agent selection, with room to consolidate or defer some demo-mode integrations.
The server has broad read-oriented diagnostic coverage across clusters, CI pipelines, cloud logs/metrics, incidents, and messaging. However, it is notably thin on remediation and write operations: no restart/scale/retry/trigger actions and no ServiceNow incident create/update/resolve tools.
Maintenance
Related MCP Connectors
Read-only MCP server for AIStatusDashboard status, incidents, metrics, and fallback recommendations.
The Cortex MCP server provides read-only access to real-time engineering context from the Cortex developer portal, allowing AI coding assistants to answer natural language questions about your organization's catalog (microservices, libraries, domains, teams, infrastructure), scorecards (engineering standards and best practices), initiatives (goals and deadlines), and Engineering Intelligence metrics. It includes tools for querying documentation, tracking personal entities, and accessing AI-assisted insights across the entire Cortex ecosystem.
MCP server unifying ERPs, CRMs, APIs and knowledge base for Claude, ChatGPT and Gemini.
One governed MCP endpoint for 40+ business systems. Read-only, source-cited answers.
Related MCP Servers
- AlicenseBqualityCmaintenanceUnified MCP server for DevOps engineers that provides real-time read and write access to Kubernetes, ArgoCD, Prometheus, and PagerDuty from any MCP-compatible AI agent.2174 npm6MIT
- AlicenseNot gradedqualityCmaintenanceA read-only MCP server that exposes tools to query Datadog monitors and logs, and AWS CloudWatch Logs, and to group recurring errors by fingerprint. Designed for use with Claude Code to diagnose issues and propose fixes.MIT
- FlicenseAqualityDmaintenanceRead-only MCP server that exposes Kubernetes platform state (tenants, pods, SLOs, ArgoCD applications, chaos schedules, and catalog services) to AI agents, enabling natural language queries about cluster health and configuration.6-
- AlicenseNot gradedqualityDmaintenanceMCP server that provides guarded, audited, read-only access to ops tooling (alerts, metrics, logs, deploys, runbooks) and a triage agent that diagnoses incidents end-to-end with CI-verified root cause analysis.MIT