Infrastructure MCP — deploy, scale, DNS, secrets, containers, environments for AI agents
Infrastructure MCP Server
Cloud infrastructure management for AI agents — deploy, scale, rollback, DNS, secrets, containers, environments, costs, and health monitoring. 24 tools with Kubernetes, Vercel, Railway, Fly.io, and Custom API backends.
Tools (24)
Services (5)
| Tool | Purpose | Risk |
|------|---------|------|
| list_services | All deployed services with status | read_only |
| get_service | Service details: replicas, image, URL | read_only |
| get_logs | Service logs (last N lines or since) | read_only |
| get_resources | CPU, memory, network usage | read_only |
| get_deploy_history | Deployment history | read_only |
Deployments (4)
| Tool | Purpose | Risk |
|------|---------|------|
| deploy | Deploy service (new image/tag) | production_write |
| scale | Scale to N replicas | production_write |
| rollback | Rollback to previous version | production_write |
| restart | Rolling restart | production_write |
DNS (3)
| Tool | Purpose | Risk |
|------|---------|------|
| list_dns | List DNS records for domain | read_only |
| set_dns | Create/update DNS record | production_write |
| delete_dns | Delete DNS record | destructive |
Secrets & Env Vars (4)
| Tool | Purpose | Risk |
|------|---------|------|
| list_secrets | List secrets (names only, not values) | read_only |
| set_secret | Set a secret/env var | internal_write |
| delete_secret | Delete a secret | destructive |
| rotate_secret | Generate new secret value | internal_write |
Environments (3)
| Tool | Purpose | Risk |
|------|---------|------|
| list_environments | List envs (prod, staging, dev) | read_only |
| get_environment | Env details: services, URLs | read_only |
| promote | Promote staging → production | production_write |
Containers & Health (3)
| Tool | Purpose | Risk |
|------|---------|------|
| list_containers | Running containers/pods | read_only |
| get_cluster_health | Platform health overview | read_only |
| get_costs | Cost breakdown by service/env | read_only |
Domains & SSL (2)
| Tool | Purpose | Risk |
|------|---------|------|
| list_domains | Custom domains + SSL status | read_only |
| add_domain | Add custom domain | internal_write |
Installation
cargo install mcp-infrastructure
Configuration
| Backend | Env Vars | Best for |
|---------|----------|----------|
| Kubernetes | KUBERNETES_API_URL + KUBERNETES_TOKEN | Self-hosted, EKS, GKE, AKS |
| Vercel | VERCEL_TOKEN | Serverless, frontend, Next.js |
| Railway | RAILWAY_TOKEN | Full-stack apps, databases |
| Fly.io | FLY_API_TOKEN | Edge compute, containers |
| Custom API | INFRA_API_URL + INFRA_API_KEY | Your own platform |
Client Configuration
{
"mcpServers": {
"infrastructure": {
"command": "mcp-infrastructure",
"args": [],
"env": {
"VERCEL_TOKEN": "your-token"
}
}
}
}
Usage Examples
Deploy
"Deploy the API service with the latest image"
→ deploy(service="api", tag="latest", environment="staging")
Scale for traffic
"Scale the web service to 5 replicas"
→ scale(service="web", replicas=5)
Investigate issues
"Why is the API slow?"
→ get_logs(service="api", lines=100)
→ get_resources(service="api") — check CPU/memory
→ list_containers(service="api") — check pod health
Promote to production
"Promote staging to production"
→ promote(service="api", environment="staging")
Manage secrets
"Rotate the database password"
→ rotate_secret(name="DATABASE_URL", environment="production")
Governance
deploy,scale,rollback,promote— production_write (affects live traffic)delete_dns,delete_secret— destructive (cannot undo)set_secret— internal_write (doesn't affect traffic directly)- All read operations — safe, no side effects
License
Apache-2.0
Part of the ADK-Rust Enterprise MCP server ecosystem.
Built with ❤️ by Zavora AI