infra-ops-mcp
Allows running Ansible playbooks (with --check) and querying inventory.
Provides tools for managing Docker containers, images, networks, volumes, and Compose projects.
Provides tools for querying GitHub repositories and workflows using a GitHub token.
Provides tools to list GitHub Actions workflows and view their run history.
Provides tools to list GitLab pipelines and jobs.
Provides tools for managing Kubernetes pods, deployments, services, nodes, and cluster events.
Allows querying MongoDB and performing health checks.
Allows querying MySQL and performing health checks.
Allows read-only querying of PostgreSQL and performing health checks.
Allows querying Prometheus metrics.
Provides tools to list Pulumi stacks.
Provides Redis INFO and health check capabilities.
Provides tools to inspect Terraform state and run plans.
Provides CVE vulnerability scanning using Trivy.
Click on "Deploy 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., "@infra-ops-mcp list all running Docker containers"
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.
infra-ops-mcp
The most comprehensive MCP (Model Context Protocol) server for infrastructure operations. 92 tools across 13 categories covering everything from local system monitoring to multi-cloud management.
Features
92 Infrastructure Tools organized in 13 categories
Cross-platform: Windows (PowerShell), Linux, macOS
Multi-cloud: AWS, Azure, GCP
Containers: Docker + Kubernetes
Databases: PostgreSQL, MySQL, MongoDB, Redis
CI/CD: GitHub Actions, GitLab CI
IaC: Terraform, Ansible, Pulumi
Security: CVE scanning, secrets detection, TLS checks
Remote: SSH fleet management with connection pooling
3-tier permission model: SAFE, DANGEROUS, BLOCKED
Related MCP server: AWS Sage
Quick Start
Install
npm install -g infra-ops-mcpConfigure with Claude Desktop
Add to your Claude Desktop config (claude_desktop_config.json):
{
"mcpServers": {
"infra-ops": {
"command": "infra-ops-mcp",
"env": {
"GITHUB_TOKEN": "ghp_xxx",
"INFRA_AWS_REGION": "us-east-1"
}
}
}
}Run Standalone
# With default config
infra-ops-mcp
# With custom config
INFRA_CONFIG_PATH=./my-config.yaml infra-ops-mcpDevelopment
git clone https://github.com/your-org/infra-ops-mcp.git
cd infra-ops-mcp
npm install
npm run build
npm run devTool Categories
System (12 tools)
Tool | Tier | Description |
| SAFE | CPU cores, model, speed, load average |
| SAFE | RAM usage, swap, top memory consumers |
| SAFE | Disk space by mount point, inodes |
| SAFE | Process list with filter and sort |
| DANGEROUS | Kill process by PID |
| SAFE | System services status |
| DANGEROUS | Start/stop/restart services |
| SAFE | System uptime, last boot time |
| SAFE | User accounts, groups, logged in |
| SAFE | Cron jobs / Task Scheduler |
| SAFE | BIOS, motherboard, PCI devices |
| SAFE | Loaded drivers / kernel modules |
Network (9 tools)
Tool | Tier | Description |
| SAFE | Adapters, IPs, MAC, speed |
| SAFE | Routing table, default gateway |
| SAFE | DNS lookup (A, AAAA, MX, CNAME, etc.) |
| SAFE | Firewall rules list |
| SAFE | Open ports with associated process |
| SAFE | Active TCP/UDP connections |
| SAFE | WiFi SSID, signal, channel |
| SAFE | Network throughput measurement |
| SAFE | Hop-by-hop route trace |
Storage (7 tools)
Tool | Tier | Description |
| SAFE | RAID array status |
| SAFE | LVM volumes and groups |
| SAFE | Mounted filesystems |
| SAFE | Disk SMART health data |
| SAFE | Partition table info |
| SAFE | NFS exports and mounts |
| SAFE | Disk quotas by user/group |
Containers (18 tools)
Tool | Tier | Description |
| SAFE | List containers |
| SAFE | Container details |
| SAFE | Container logs |
| SAFE | Live container stats |
| DANGEROUS | Start container |
| DANGEROUS | Stop container |
| DANGEROUS | Restart container |
| SAFE | Local images |
| SAFE | Docker networks |
| SAFE | Docker volumes |
| SAFE | Compose project status |
| SAFE | Kubernetes pods |
| SAFE | Pod logs |
| SAFE | Deployments |
| SAFE | Services |
| SAFE | Cluster nodes |
| SAFE | Cluster events |
| DANGEROUS | Scale replicas |
Cloud (11 tools)
Tool | Tier | Description |
| SAFE | EC2 instances |
| SAFE | S3 buckets |
| SAFE | RDS instances |
| SAFE | Lambda functions |
| SAFE | CloudWatch metrics |
| SAFE | Route53 DNS zones |
| SAFE | Azure VMs |
| SAFE | AKS clusters |
| SAFE | Storage accounts |
| SAFE | GCE instances |
| SAFE | GKE clusters |
CI/CD (4 tools)
Tool | Tier | Description |
| SAFE | GitHub Actions workflows |
| SAFE | Workflow run history |
| SAFE | GitLab pipelines |
| SAFE | Pipeline jobs |
Database (8 tools)
Tool | Tier | Description |
| SAFE | PostgreSQL read-only query |
| SAFE | PostgreSQL health check |
| SAFE | MySQL read-only query |
| SAFE | MySQL health check |
| SAFE | MongoDB query |
| SAFE | MongoDB health check |
| SAFE | Redis INFO stats |
| SAFE | Redis health check |
IaC (5 tools)
Tool | Tier | Description |
| SAFE | Terraform state |
| DANGEROUS | Run terraform plan |
| SAFE | Ansible inventory |
| DANGEROUS | Run playbook (--check) |
| SAFE | Pulumi stacks |
Security (5 tools)
Tool | Tier | Description |
| SAFE | CVE vulnerability scan (Trivy) |
| SAFE | Secrets detection (Gitleaks) |
| SAFE | TLS certificate inspection |
| SAFE | CIS/STIG benchmarks |
| SAFE | Open port security audit |
Remote (3 tools)
Tool | Tier | Description |
| SAFE | Execute command via SSH |
| DANGEROUS | Command across multiple hosts |
| SAFE | Host inventory with status |
DNS (3 tools)
Tool | Tier | Description |
| SAFE | Query DNS records |
| SAFE | Global DNS propagation |
| SAFE | Zone transfer query |
Backup (3 tools)
Tool | Tier | Description |
| SAFE | Backup status check |
| SAFE | Verify backup integrity |
| DANGEROUS | Test restore to temp |
Monitoring (4 tools)
Tool | Tier | Description |
| SAFE | Query Prometheus metrics |
| SAFE | HTTP/TCP uptime check |
| SAFE | Active alerts |
| SAFE | SLA percentage calculator |
Security Model
The 3-tier permission system protects against unintended operations:
Tier | Behavior | Examples |
SAFE | No confirmation needed | All list, info, health, read-only queries |
DANGEROUS | Requires | process_kill, service_control, docker start/stop, fleet_command, terraform_plan |
BLOCKED | Disabled by default | DB writes, delete operations (enable in config) |
Example: Dangerous Operation
{
"name": "system_process_kill",
"arguments": {
"pid": 1234,
"confirm": true
}
}Without confirm: true, dangerous tools return an error message explaining the requirement.
Configuration
Config File (config/default.yaml)
The server loads configuration from:
./config/default.yaml(project directory)~/.infra-ops-mcp/config.yaml(user home)Environment variables (highest priority)
Environment Variables
Variable | Description |
| GitHub personal access token |
| GitLab access token |
| AWS region |
| AWS profile name |
| GCP project ID |
| Azure subscription ID |
| PostgreSQL host |
| PostgreSQL port |
| PostgreSQL user |
| PostgreSQL password |
| PostgreSQL database |
| Redis host |
| Redis port |
| Redis password |
Host Inventory (config/hosts.yaml)
Ansible-style host definitions for remote operations:
hosts:
- host: web-01.example.com
user: deploy
port: 22
privateKey: ~/.ssh/web_servers
groups:
- webservers
- production
labels:
environment: production
role: webArchitecture
src/
├── index.ts # Entry point
├── server.ts # MCP Server + StdioTransport
├── registry.ts # ToolRegistry with permission guards
├── core/ # Platform detection, executor, permissions, errors
├── infra/ # SSH pool, circuit breaker, cache, rate limiter
├── config/ # YAML config loader, env overrides
├── tools/ # 13 tool modules (76 tools total)
└── utils/ # Parsers, formattersRequirements
Node.js >= 18.0.0
Optional: Docker, kubectl, AWS CLI, Azure CLI, gcloud, Terraform, Ansible, Trivy, Gitleaks
Tools gracefully handle missing dependencies - if Docker isn't installed, Docker tools will return appropriate error messages rather than crashing.
License
MIT
Available Tools
92 toolsaws_cloudwatch_metricsC
[SAFE] Get CloudWatch metrics
Inputs: namespace, metricName.
aws_ec2_instancesC
[SAFE] List EC2 instances
Inputs: region.
aws_lambda_functionsC
[SAFE] List Lambda functions
Inputs: region.
aws_rds_instancesC
[SAFE] List RDS instances
Inputs: region.
aws_route53_zonesB
[SAFE] List Route53 zones
Inputs: no named parameters.
aws_s3_bucketsB
[SAFE] List S3 buckets
Inputs: no named parameters.
azure_aks_clustersB
[SAFE] List AKS clusters
Inputs: no named parameters.
azure_storage_accountsB
[SAFE] List storage accounts
Inputs: no named parameters.
azure_vm_listC
[SAFE] List VMs
Inputs: no named parameters.
backup_integrity_checkB
[SAFE] Verify backup file integrity by checking existence, readability, and checksums or archive validity
Inputs: file (required).
backup_restore_testC
[DANGEROUS] Test restoring a backup by extracting to a temporary location and verifying contents
Inputs: file (required), confirm (required), targetDir.
backup_statusC
[SAFE] Check backup status by listing files in the backup directory with sizes and dates
Inputs: path.
cicd_github_workflow_runsC
[SAFE] List recent workflow runs for a GitHub Actions workflow
Inputs: owner, repo, workflowId, status.
cicd_github_workflowsC
[SAFE] List GitHub Actions workflows for a repository
Inputs: owner, repo.
cicd_gitlab_jobsC
[SAFE] List jobs for a specific GitLab CI/CD pipeline
Inputs: pipelineId (required), projectId.
cicd_gitlab_pipelinesC
[SAFE] List GitLab CI/CD pipelines for a project
Inputs: projectId.
db_mongodb_healthA
[SAFE] Check MongoDB health including stats, server status, and connections
Inputs: no named parameters.
db_mongodb_queryC
[SAFE] Execute a MongoDB find query on a collection
Inputs: collection (required), limit (required), filter.
db_mysql_healthA
[SAFE] Check MySQL database health including version, status, and connections
Inputs: no named parameters.
db_mysql_queryC
[SAFE] Execute a read-only MySQL query
Inputs: query (required), params.
db_postgres_healthA
[SAFE] Check PostgreSQL database health including version, connections, and size
Inputs: no named parameters.
db_postgres_queryC
[SAFE] Execute a read-only PostgreSQL query
Inputs: query (required), params.
db_redis_healthA
[SAFE] Check Redis health including PING, memory usage, and database size
Inputs: no named parameters.
db_redis_infoA
[SAFE] Get Redis server INFO for a specific section or all sections
Inputs: section.
dns_propagation_checkC
[SAFE] Check DNS propagation across multiple public DNS servers
Inputs: domain (required), type (required).
dns_recordsC
[SAFE] Query DNS records for a domain with optional type and server
Inputs: domain (required), type (required), server.
dns_zone_queryC
[SAFE] Query zone information including SOA and NS records for a domain
Inputs: domain (required).
docker_compose_statusC
[SAFE] Get Docker Compose project status showing all services and their states
Inputs: projectPath.
docker_container_inspectC
[SAFE] Inspect a Docker container to get detailed configuration and state information
Inputs: containerId (required).
docker_container_listC
[SAFE] List Docker containers with their status, names, and basic info
Inputs: all (required).
docker_container_logsC
[SAFE] Retrieve logs from a Docker container
Inputs: containerId (required), tail (required).
docker_container_restartC
[DANGEROUS] Restart a Docker container
Inputs: containerId (required), confirm (required).
docker_container_startC
[DANGEROUS] Start a stopped Docker container
Inputs: containerId (required), confirm (required).
docker_container_statsB
[SAFE] Get real-time resource usage statistics for a Docker container
Inputs: containerId (required).
docker_container_stopC
[DANGEROUS] Stop a running Docker container
Inputs: containerId (required), confirm (required).
docker_image_listA
[SAFE] List Docker images available on the host
Inputs: no named parameters.
docker_network_listA
[SAFE] List Docker networks
Inputs: no named parameters.
docker_volume_listB
[SAFE] List Docker volumes
Inputs: no named parameters.
gcp_compute_instancesC
[SAFE] List GCE instances
Inputs: zone.
gcp_gke_clustersB
[SAFE] List GKE clusters
Inputs: no named parameters.
iac_ansible_inventoryC
[SAFE] Show Ansible inventory in YAML format
Inputs: inventoryFile.
iac_ansible_playbook_runC
[DANGEROUS] Run an Ansible playbook in check mode (dry-run with diff)
Inputs: playbook (required), confirm (required), inventory.
iac_pulumi_stacksC
[SAFE] List all Pulumi stacks in JSON format
Inputs: workDir.
iac_terraform_planC
[DANGEROUS] Run Terraform plan to preview infrastructure changes
Inputs: confirm (required), workDir.
iac_terraform_stateB
[SAFE] Show the current Terraform state in JSON format
Inputs: workDir.
k8s_deployment_listB
[SAFE] List Kubernetes deployments in a namespace
Inputs: namespace (required).
k8s_eventsC
[SAFE] List Kubernetes cluster events for debugging and monitoring
Inputs: namespace.
k8s_node_listA
[SAFE] List Kubernetes cluster nodes with their status and resource info
Inputs: no named parameters.
k8s_pod_listA
[SAFE] List Kubernetes pods in a namespace with their status and metadata
Inputs: namespace (required).
k8s_pod_logsC
[SAFE] Retrieve logs from a Kubernetes pod
Inputs: name (required), namespace (required), tail (required).
k8s_scale_deploymentC
[DANGEROUS] Scale a Kubernetes deployment to the specified number of replicas
Inputs: name (required), namespace (required), replicas (required), confirm (required).
k8s_service_listC
[SAFE] List Kubernetes services in a namespace
Inputs: namespace (required).
monitoring_alertsB
[SAFE] Get active alerts from a Prometheus Alertmanager endpoint
Inputs: endpoint (required).
monitoring_custom_metricsC
[SAFE] Query custom metrics from a Prometheus endpoint
Inputs: endpoint (required), query.
monitoring_sla_statusC
[SAFE] Calculate SLA status and allowed downtime based on uptime percentage
Inputs: uptimePercent (required), period (required).
monitoring_uptime_checkB
[SAFE] Perform an HTTP or TCP uptime check on a target
Inputs: target (required), type (required), timeout (required).
network_active_connectionsA
[SAFE] List all active (ESTABLISHED) network connections with associated processes
Inputs: no named parameters.
network_bandwidth_testA
[SAFE] Measure current network throughput by sampling network stats over a 1 second interval
Inputs: no named parameters.
network_dns_resolveC
[SAFE] Resolve a hostname using DNS lookup with support for various record types
Inputs: hostname (required), type.
network_firewall_rulesA
[SAFE] Display current firewall rules and policies
Inputs: no named parameters.
network_interfacesA
[SAFE] List all network interfaces with their configuration (IP addresses, MAC, speed, status)
Inputs: no named parameters.
network_listening_portsA
[SAFE] List all ports currently in LISTEN state with associated processes
Inputs: no named parameters.
network_routesB
[SAFE] Display the system routing table
Inputs: no named parameters.
network_tracerouteC
[SAFE] Trace the route packets take to a destination host
Inputs: host (required), maxHops (required).
network_wifi_infoA
[SAFE] Get information about available WiFi networks and current connection
Inputs: no named parameters.
remote_fleet_commandC
[DANGEROUS] Execute a command across multiple remote hosts via SSH
Inputs: hosts (required), command (required), confirm (required).
remote_host_inventoryA
[SAFE] List configured remote hosts and check their connectivity status
Inputs: no named parameters.
remote_ssh_execC
[SAFE] Execute a command on a remote host via SSH
Inputs: host (required), command (required), user, port.
security_cert_checkB
[SAFE] Check TLS certificate details for a host including expiration
Inputs: host (required), port (required).
security_compliance_checkB
[SAFE] Run compliance benchmarks using Trivy configuration scanning
Inputs: no named parameters.
security_cve_scanB
[SAFE] Run a CVE vulnerability scan on a filesystem path using Trivy
Inputs: path (required).
security_port_auditC
[SAFE] Audit listening ports and flag well-known dangerous ports
Inputs: no named parameters.
security_secrets_scanC
[SAFE] Scan for hardcoded secrets and credentials using Gitleaks
Inputs: path (required).
storage_lvm_infoA
[SAFE] Get LVM (Logical Volume Manager) information including physical volumes, volume groups, and logical volumes
Inputs: no named parameters.
storage_mountsA
[SAFE] Get mounted filesystem information including disk layout and usage
Inputs: no named parameters.
storage_partitionsB
[SAFE] Get disk partition and block device information
Inputs: no named parameters.
storage_quotasA
[SAFE] Get filesystem quota information
Inputs: no named parameters.
storage_raid_statusA
[SAFE] Get RAID array status and configuration
Inputs: no named parameters.
storage_smart_healthC
[SAFE] Get SMART health data for storage devices
Inputs: device.
system_cpu_infoA
[SAFE] Get CPU information including manufacturer, brand, speed, cores, and current load
Inputs: no named parameters.
system_disk_usageA
[SAFE] Get disk space usage for all mounted filesystems
Inputs: no named parameters.
system_driversA
[SAFE] List system drivers. Uses driverquery on Windows, lsmod on Linux, kextstat on macOS.
Inputs: no named parameters.
system_hardware_infoA
[SAFE] Get hardware information including system manufacturer, BIOS, and baseboard details
Inputs: no named parameters.
system_memory_infoA
[SAFE] Get memory information including total, used, free RAM and swap usage
Inputs: no named parameters.
system_process_killC
[DANGEROUS] Kill a process by PID. Requires confirmation. Uses taskkill on Windows, kill on Unix.
Inputs: pid (required), confirm (required).
system_process_listB
[SAFE] List running processes with optional filtering by name and sorting by cpu, memory, or pid
Inputs: filter, sortBy.
system_scheduled_tasksA
[SAFE] List scheduled tasks. Uses schtasks on Windows, crontab -l on Linux, launchctl list on macOS.
Inputs: no named parameters.
system_service_controlA
[DANGEROUS] Start, stop, or restart a system service. Requires confirmation. Uses sc on Windows, systemctl on Linux, launchctl on macOS.
Inputs: service (required), action (required), confirm (required).
system_service_listA
[SAFE] List system services and their current status
Inputs: no named parameters.
system_uptimeA
[SAFE] Get system uptime and boot time information
Inputs: no named parameters.
system_usersB
[SAFE] Get currently logged in users
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 92 tools
Each tool targets a specific resource and action, with clear prefixes (e.g., aws_, azure_, db_) and descriptive names that prevent confusion. Even similar domains like DNS have distinct tools (dns_records vs dns_propagation_check).
All tool names follow a consistent pattern of prefix_domain_action using lowercase with underscores (e.g., aws_ec2_instances, k8s_pod_logs). Naming is highly predictable and uniform.
With 92 tools, the server is massively over-scoped. Despite covering many domains, the sheer number far exceeds typical agent capacity and suggests many overlapping or unnecessary tools (e.g., multiple DNS and network utilities that could be consolidated).
The tool set covers an extensive range of infrastructure operations: major cloud providers, databases, containers, Kubernetes, networking, storage, security, system administration, CI/CD, IaC, monitoring, and backups. There are no obvious gaps for the stated 'infra-ops' purpose.
Maintenance
Related MCP Connectors
One MCP server, 40 tools: web reading, safety and sanctions checks, DevOps checks, location.
- StudioMeyer MCP SuiteDeprecatedio.studiomeyer
8 MCP servers, 104+ tools: memory, social, PDF, email, images, calendar, scheduler, files.
Devopness MCP server for DevOps happiness! Empower AI Agents to deploy apps and infra, to any cloud.
Deploy full-stack apps with databases, storage, backups, logs, scaling, and rollback. 74 MCP tools.
Related MCP Servers
- AlicenseCqualityNot gradedmaintenanceA comprehensive all-in-one MCP server with 172 tools across 21 categories including Git operations, tmux monitoring, log aggregation, system resource monitoring, and GitHub integration. Features enterprise-grade security, intelligent caching, cross-platform support, and zero-configuration setup for Claude Desktop.10018 npm6-
- AlicenseCqualityDmaintenanceA unified MCP server for AWS that enables natural language infrastructure management, cross-service resource discovery, and dependency mapping. It features 30 intelligent tools for cost optimization, incident investigation, and multi-account operations protected by a robust safety system.305MIT
- FlicenseCqualityDmaintenanceComprehensive MCP server for managing all IBM Cloud services, offering 180+ tools across 16 domains to enable AI assistants to fully manage IBM Cloud infrastructure.1002-
- AlicenseCqualityDmaintenanceComprehensive MCP server for integrating with Zabbix monitoring systems, providing 90+ API tools across 19 categories for monitoring, alerting, and infrastructure management.10015MIT