CloudOps OS MCP
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@CloudOps OS MCPanalyze my main.tf for cost and compliance issues"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
CloudOps OS: Autonomous Multi-Agent Governance and Optimization for IaC
CloudOps OS is a fully autonomous multi-agent orchestration pipeline that shifts cloud governance and cost optimization entirely to the left. Deployed as Model Context Protocol (MCP) servers using NitroStack, the system ingests raw Terraform (.tf) files alongside natural language user intent, passing them through a strict four-stage reasoning engine.
Each agent operates sequentially through a strict Flag ➔ Explain ➔ Diagnose ➔ Resolve cycle.
🚀 Key Features
⚙️ Phase 1: Resource & Route Optimization Agent (FinOps)
Flags network routing tax, explaining the $0.045/GB NAT Gateway data transfer and hourly base overhead.
Injects free AWS VPC S3/DynamoDB Gateway Endpoints into the HCL to eliminate routing charges.
💰 Phase 2: Cost Optimization Agent
Flags over-provisioned compute capacity (
m5.large) and legacy storage types (gp2).Rightsizes EC2 instances to burstable tiers (
t3.medium) and upgrades volumes from gp2 ($0.10/GB-mo) to gp3 ($0.08/GB-mo + 3000 free IOPS), reducing baseline storage costs by 20% and improving performance.Computes strategic costing alternatives (Spot instances and Instance Scheduling policies).
🛡️ Phase 3: Policy & Governance Compliance Agent
Identifies contractual and operational anomalies, such as unauthorized regions (
us-west-1prohibited by Service Control Policies) and exposed ingress CIDR blocks (port 22 open to0.0.0.0/0).Explains the specific SLA/SCP violations, auto-remediating HCL to
us-east-1and corporate intranet limits (10.0.0.0/8).Appends mandatory tags (
Environment,Compliance,Owner) for audit readiness.
🚀 Phase 4: Platform Release Agent
Performs syntax validation (
fmtandvalidate) and bracket matching.Simulates plan execution states and compiles final output blocks.
📜 Stage 3b: Policy-as-Code (.rego / OPA) Pass
analyze_terraformaccepts an optionalrego_policyinput — a real Open Policy Agent.regodocument (seepolicies/governance.rego).Evaluated with the real
opaCLI when it's onPATH; otherwise falls back to a transparent, dependency-free "rego-lite" interpreter bundled insrc/modules/terraform/policy.engine.ts. Every finding is tagged withsource: 'opa' | 'rego-lite-fallback'so the console never overstates the guarantee.Lets platform teams change governance rules without touching TypeScript — the deterministic engine stays as the reliable baseline,
.regoadds org-specific policy on top.
🧠 Stage 5: Optional LLM Reasoning Agent
src/modules/terraform/llm.agent.tscalls OpenRouter (or Groq as a secondary provider) to look for issues the deterministic + rego passes can't encode — naming smells, missinglifecycle{}blocks, intent gaps between reviewer instructions and code.Provider chain:
OPENROUTER_API_KEY→GROQ_API_KEY→ disabled. Never blocks or fails the pipeline — a missing key or a failed call degrades to a single log line, and the deterministic + rego findings are returned regardless.Every LLM-sourced diagnostic carries
source: 'llm'and aconfidencescore self-reported by the model.
💬 Explainable AI (XAI) Console
Streams real-time diagnostic reasoning showing precisely what was flagged, why it represents a violation, what audit controls are violated, and how the code was resolved.
Every diagnostic now carries
source(deterministic/opa/rego-lite-fallback/llm) andconfidence, so reviewers can see which engine made each claim, not just the claim itself.
🔒 Zero-Trust Human-in-the-Loop (HITL) Console Widget
Side-by-side HCL diff viewer highlighting modifications.
XAI Disclosures popover panel demonstrating the Flag ➔ Explain ➔ Diagnose ➔ Resolve reasoning on clicked diffs.
Strategic cost savings ledger and custom override re-runs (e.g. typing
"use spot pricing"automatically updates the setup).One-click approval to finalize and simulate deployment.
Related MCP server: FinOpsGuard
📐 Architecture & Agent Pipeline
graph TD
A[Draft Terraform HCL] --> B[analyze_terraform Tool]
B --> C[Resource & Route Agent]
C --> D[Cost Optimization Agent]
D --> E[Policy & Governance Compliance Agent]
E --> F[Platform Release Agent]
F --> G[Interactive Optimization Console]
G -->|Approve & Merge| H[finalize_terraform Tool]
G -->|Request Changes / Re-run| B🛠️ Installation & Setup
Ensure your local development environment meets the following requirements:
Node.js (v18+)
NPM (v9+)
TypeScript (v5+)
1. Install Project Dependencies
Clone the repository and install all packages:
npm run install:all2. Run the Project in Development Mode
Start both the MCP server and hot-reloaded Next.js widgets server:
npm run dev3. Setup .env file
Create a .env file in the root to enable dual SSE/STDIO transport on port 3000:
PORT=3000
MCP_TRANSPORT_TYPE=dual
NITRO_LOG_LEVEL=info
NITROSTACK_APP_MODE=universal💻 Usage & Demo Instructions
In your MCP client, invoke the analyze_terraform tool. If you leave the payload empty, it automatically defaults to our standard sandbox template containing all 5 violations:
Default Draft Input HCL:
provider "aws" {
region = "us-west-1" # Region Violation
}
resource "aws_security_group" "web_sg" {
name = "web-server-sg"
ingress {
from_port = 22
to_port = 22
protocol = "tcp"
cidr_blocks = ["0.0.0.0/0"] # Port 22 Violation
}
}
resource "aws_instance" "web_app" {
ami = "ami-0c55b159cbfafe1f0"
instance_type = "m5.large" # Sizing Violation
ebs_block_device {
device_name = "/dev/sda1"
volume_size = 100
volume_type = "gp2" # Storage Violation
}
}
resource "aws_nat_gateway" "nat" {
allocation_id = "eipalloc-12345"
subnet_id = "subnet-6789a" # NAT Routing Violation
}Reviewing Widget Flow:
Visual Diff: Inspect highlights (red deletions/green additions) showing the region fix, SSH range contraction, instance downgrade, storage tier upgrade, and NAT Gateway replacement.
XAI Disclosures: Click any modified line to open the popover, displaying the exact Flagged Anomaly, Explain (The Why), Diagnosis, and Resolved Code.
Live Costing Ledgers: Review compute and networking savings alongside the 20% storage cost reduction.
HITL Re-runs: Type
use spot pricingin the override box and click Request Changes to inject Spot market configurations live.Approve & Commit: Click Approve & Save Changes to merge, generate git commit references, and output simulated CLI deploy logs.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/saihardhikreddy/cloudops-os-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server