Skip to main content
Glama
MCP Cloud Services Server

MCP Cloud Services Server

MCP Cloud Services Server

TypeScript Node.js MCP npm

Comprehensive MCP (Model Context Protocol) server for cloud services management. Supports AWS, Azure, and GCP with resource management, cost analysis, monitoring, and security features.

🎯 Ne İşe Yarar?

MCP Cloud Services Server, AI asistanlarının (Cursor, Claude Desktop, vb.) cloud kaynaklarını yönetmesi, maliyetleri analiz etmesi, monitoring yapması ve güvenlik kontrolleri gerçekleştirmesi için kapsamlı bir MCP server'dır.

Temel Özellikler

  • ☁️ Multi-Cloud Desteği: AWS, Azure, GCP desteği

  • 📊 Resource Management: List, create, delete, start, stop operations

  • 💰 Cost Analysis: Cost breakdown, trends, billing analysis

  • 📈 Monitoring: Metrics, alarms, health checks

  • 🔒 Security: Security scanning, compliance checks, encryption analysis

  • 🔐 Credential Management: Secure credential storage and management

Related MCP server: Cloud Pilot MCP

🚀 Nasıl Çalışır?

MCP Cloud Services Server, Model Context Protocol (MCP) standardını kullanarak AI asistanlarına cloud yönetim yetenekleri sağlar. Server, MCP protokolü üzerinden tool'ları expose eder ve AI asistanları bu tool'ları kullanarak cloud işlemlerini gerçekleştirebilir.

Mimari

AI Assistant (Cursor/Claude)
    ↓ (MCP Protocol)
MCP Cloud Services Server
    ↓ (SDK Calls)
Cloud Provider APIs (AWS/Azure/GCP)

Server, her cloud provider için adapter pattern kullanarak SDK çağrılarını yönetir. Credentials güvenli bir şekilde saklanır ve yönetilir.

📦 Kurulum

Gereksinimler

  • Node.js 18 veya üzeri

  • npm veya yarn

  • TypeScript (dev dependency)

  • Cloud provider credentials (AWS, Azure, or GCP)

Adımlar

  1. Repository'yi klonlayın:

git clone https://github.com/code-alchemist01/Cloud-mcp_server.git
cd Cloud-mcp_server
  1. Bağımlılıkları yükleyin:

npm install
  1. Projeyi derleyin:

npm run build
  1. Cloud Credentials Yapılandırın (aşağıdaki bölüme bakın)

  2. Test edin:

npm start

🔐 Credentials Yapılandırması

Neden Credentials Gerekiyor?

Cloud provider'lar (AWS, Azure, GCP) güvenlik nedeniyle tüm API çağrılarında authentication gerektirir. Bu credentials, kimlik doğrulama ve yetkilendirme için kullanılır. Server, bu credentials'ları kullanarak cloud API'lerine güvenli bir şekilde bağlanır.

AWS Credentials

AWS için Access Key ID ve Secret Access Key gereklidir. Bu credentials, AWS IAM'de oluşturulur ve gerekli izinlere sahip olmalıdır.

Yöntem 1: Environment Variables (Önerilen)

export AWS_ACCESS_KEY_ID=your_access_key_id
export AWS_SECRET_ACCESS_KEY=your_secret_access_key
export AWS_REGION=us-east-1

Yöntem 2: AWS Credentials Dosyası

~/.aws/credentials (Linux/Mac)
C:\Users\YourUsername\.aws\credentials (Windows)

[default]
aws_access_key_id = your_access_key_id
aws_secret_access_key = your_secret_access_key

Yöntem 3: MCP Config İçinde

{
  "mcpServers": {
    "cloud-services": {
      "command": "node",
      "args": ["..."],
      "env": {
        "AWS_ACCESS_KEY_ID": "your_access_key_id",
        "AWS_SECRET_ACCESS_KEY": "your_secret_access_key",
        "AWS_REGION": "us-east-1"
      }
    }
  }
}

Gerekli IAM İzinleri:

  • ec2:DescribeInstances, ec2:StartInstances, ec2:StopInstances

  • s3:ListBuckets, s3:GetBucketLocation

  • lambda:ListFunctions, lambda:GetFunction

  • rds:DescribeDBInstances

  • cloudwatch:GetMetricStatistics

  • ce:GetCostAndUsage

Azure Credentials

Azure için Service Principal (Client ID, Client Secret, Tenant ID) veya Azure CLI login gereklidir. Ayrıca Subscription ID zorunludur.

Yöntem 1: Environment Variables

export AZURE_CLIENT_ID=your_client_id
export AZURE_CLIENT_SECRET=your_client_secret
export AZURE_TENANT_ID=your_tenant_id
export AZURE_SUBSCRIPTION_ID=your_subscription_id

Yöntem 2: Azure CLI Login (En Kolay)

az login
# Bu DefaultAzureCredential kullanır
export AZURE_SUBSCRIPTION_ID=your_subscription_id

Yöntem 3: MCP Config İçinde

{
  "mcpServers": {
    "cloud-services": {
      "command": "node",
      "args": ["..."],
      "env": {
        "AZURE_CLIENT_ID": "your_client_id",
        "AZURE_CLIENT_SECRET": "your_secret",
        "AZURE_TENANT_ID": "your_tenant_id",
        "AZURE_SUBSCRIPTION_ID": "your_subscription_id"
      }
    }
  }
}

Service Principal Oluşturma:

az ad sp create-for-rbac --name "mcp-cloud-services" --role contributor

Gerekli RBAC İzinleri:

  • Reader (kaynakları listeleme için)

  • Virtual Machine Contributor (VM yönetimi için)

  • Storage Account Contributor (storage yönetimi için)

GCP Credentials

GCP için Service Account JSON dosyası veya gcloud CLI gereklidir. Ayrıca Project ID zorunludur.

Yöntem 1: Service Account JSON (Önerilen)

export GCP_PROJECT_ID=your_project_id
export GOOGLE_APPLICATION_CREDENTIALS=/path/to/service-account-key.json

Yöntem 2: gcloud CLI

gcloud auth application-default login
gcloud config set project YOUR_PROJECT_ID
export GCP_PROJECT_ID=$(gcloud config get-value project)

Yöntem 3: MCP Config İçinde

{
  "mcpServers": {
    "cloud-services": {
      "command": "node",
      "args": ["..."],
      "env": {
        "GCP_PROJECT_ID": "your_project_id",
        "GOOGLE_APPLICATION_CREDENTIALS": "C:\\path\\to\\service-account-key.json"
      }
    }
  }
}

Service Account Oluşturma:

  1. GCP Console → IAM & Admin → Service Accounts

  2. Create Service Account

  3. Grant roles: Compute Viewer, Storage Viewer, Cloud Functions Viewer

  4. Create JSON key ve indir

Gerekli IAM Rolleri:

  • Compute Viewer (compute instance'ları görüntüleme)

  • Storage Viewer (storage bucket'ları görüntüleme)

  • Cloud Functions Viewer (function'ları görüntüleme)

  • Monitoring Viewer (metrics için)

  • Billing Account Viewer (cost analysis için)

📦 MCP Client'lara Kurulum

Cursor IDE

1. MCP Config Dosyasını Oluştur/Düzenle

Windows:

%APPDATA%\Cursor\User\globalStorage\mcp.json

macOS/Linux:

~/.config/Cursor/User/globalStorage/mcp.json

Workspace-specific (Önerilen):

<project-root>/.cursor/mcp.json

2. Config İçeriği

{
  "mcpServers": {
    "cloud-services": {
      "command": "node",
      "args": [
        "C:\\Users\\YourUsername\\path\\to\\Cloud-mcp_server\\dist\\index.js"
      ],
      "env": {
        "AWS_ACCESS_KEY_ID": "your_key",
        "AWS_SECRET_ACCESS_KEY": "your_secret",
        "AWS_REGION": "us-east-1"
      }
    }
  }
}

3. Cursor'u Yeniden Başlatın

Claude Desktop

1. MCP Config Dosyasını Oluştur/Düzenle

Windows:

%APPDATA%\Claude\claude_desktop_config.json

macOS:

~/Library/Application Support/Claude/claude_desktop_config.json

Linux:

~/.config/Claude/claude_desktop_config.json

2. Config İçeriği

{
  "mcpServers": {
    "cloud-services": {
      "command": "node",
      "args": [
        "/absolute/path/to/Cloud-mcp_server/dist/index.js"
      ],
      "env": {
        "AWS_ACCESS_KEY_ID": "your_key",
        "AWS_SECRET_ACCESS_KEY": "your_secret"
      }
    }
  }
}

Diğer MCP Client'lar

Herhangi bir MCP protokolü destekleyen client için, server'ı stdio transport ile başlatın:

{
  "mcpServers": {
    "cloud-services": {
      "command": "node",
      "args": ["/path/to/dist/index.js"],
      "env": {
        "AWS_ACCESS_KEY_ID": "...",
        "AWS_SECRET_ACCESS_KEY": "..."
      }
    }
  }
}

🛠️ Kullanım

MCP Client'larda Kullanım

MCP server kurulduktan sonra, client'ınızın chat arayüzünde doğal dil komutları kullanarak cloud işlemlerini gerçekleştirebilirsiniz.

Örnek Kullanımlar

AWS:

AWS'deki tüm EC2 instance'ları listele
S3 bucket'ları göster
i-1234567890abcdef0 instance'ını başlat
Lambda function'larını listele

Azure:

Azure'daki tüm virtual machine'leri listele
Storage account'ları göster

GCP:

GCP'deki tüm compute instance'ları listele
Storage bucket'ları göster
Cloud function'ları listele

Cost Analysis:

AWS maliyetlerini analiz et: 2024-01-01 ile 2024-01-31 arası
Servis bazlı maliyet dökümünü göster

Monitoring:

i-1234567890abcdef0 instance'ının CPU kullanımını göster
AWS alarm'larını listele

Security:

AWS kaynaklarında güvenlik açıklarını tara
CIS compliance kontrolü yap
Encryption durumunu kontrol et

📋 MCP Tools (26 Araç)

AWS Tools (6)

  • aws_list_ec2_instances - EC2 instance'ları listele

  • aws_list_s3_buckets - S3 bucket'ları listele

  • aws_list_lambda_functions - Lambda function'ları listele

  • aws_list_rds_instances - RDS instance'ları listele

  • aws_start_ec2_instance - EC2 instance başlat

  • aws_stop_ec2_instance - EC2 instance durdur

Azure Tools (2)

  • azure_list_virtual_machines - Virtual machine'leri listele

  • azure_list_storage_accounts - Storage account'ları listele

GCP Tools (3)

  • gcp_list_compute_instances - Compute instance'ları listele

  • gcp_list_storage_buckets - Storage bucket'ları listele

  • gcp_list_cloud_functions - Cloud function'ları listele

Resource Management Tools (5)

  • list_resources - Tüm cloud kaynaklarını listele

  • get_resource - Kaynak detaylarını getir

  • start_resource - Kaynağı başlat

  • stop_resource - Kaynağı durdur

  • delete_resource - Kaynağı sil (dikkatli kullanın)

Cost Analysis Tools (3)

  • analyze_costs - Maliyet analizi yap

  • get_cost_by_service - Servis bazlı maliyet dökümü

  • estimate_monthly_cost - Aylık maliyet tahmini

Monitoring Tools (3)

  • get_metrics - Resource metrics'lerini getir

  • list_alarms - Monitoring alarm'larını listele

  • get_resource_health - Resource health durumunu kontrol et

Security Tools (4)

  • scan_security_issues - Güvenlik açıklarını tara

  • check_compliance - Compliance kontrolü yap

  • analyze_permissions - IAM permission analizi

  • check_encryption - Encryption durumunu kontrol et

📁 Proje Yapısı

Cloud-mcp_server/
├── src/
│   ├── index.ts                 # MCP server ana giriş noktası
│   ├── server.ts                # MCP server implementasyonu
│   ├── tools/                   # MCP tools
│   │   ├── aws-tools.ts         # AWS specific tools
│   │   ├── azure-tools.ts       # Azure specific tools
│   │   ├── gcp-tools.ts         # GCP specific tools
│   │   ├── resource-management.ts # Resource management tools
│   │   ├── cost-analysis.ts     # Cost analysis tools
│   │   ├── monitoring.ts         # Monitoring tools
│   │   └── security.ts           # Security tools
│   ├── adapters/                 # Cloud provider adapters
│   │   ├── aws-adapter.ts       # AWS SDK adapter
│   │   ├── azure-adapter.ts     # Azure SDK adapter
│   │   └── gcp-adapter.ts       # GCP SDK adapter
│   ├── utils/                    # Yardımcı fonksiyonlar
│   │   ├── credential-manager.ts
│   │   ├── formatters.ts
│   │   └── validators.ts
│   └── types/                    # TypeScript tip tanımları
│       └── index.ts
├── dist/                         # Derlenmiş JavaScript dosyaları
├── package.json
├── tsconfig.json
└── README.md

🔧 Geliştirme

Development Modu

npm run dev

Build

npm run build

Test

npm test

🔒 Güvenlik

  • Credentials güvenli saklanır (~/.cloud-services-mcp/credentials.json)

  • Environment variables desteği

  • Input validation ve sanitization

  • Error handling

  • Secure credential management

Önemli: Credentials'ları asla kod içine hardcode etmeyin. Her zaman environment variables veya güvenli credential store kullanın.

📊 Çıktı Formatları

  • JSON - Structured data responses

  • Markdown - Raporlar ve dokümantasyon

  • Text - Plain text output

🤝 Katkıda Bulunma

  1. Fork edin

  2. Feature branch oluşturun (git checkout -b feature/amazing-feature)

  3. Commit edin (git commit -m 'Add amazing feature')

  4. Push edin (git push origin feature/amazing-feature)

  5. Pull Request açın

📄 Lisans

MIT License - Detaylar için LICENSE dosyasına bakın.

🔗 MCP Client Desteği

Bu MCP server aşağıdaki client'lar ile uyumludur:

  • ✅ Cursor IDE - Tam destek

  • ✅ Claude Desktop - Tam destek

  • ✅ Anthropic API - MCP protokolü üzerinden

  • ✅ Diğer MCP Client'lar - Standart MCP protokolü destekleyen tüm client'lar

🙏 Teşekkürler

📞 İletişim

Sorularınız veya önerileriniz için issue açabilirsiniz.


⭐ Bu projeyi beğendiyseniz yıldız vermeyi unutmayın!

Available Tools

26 tools
analyze_costsC

Analyze cloud costs for AWS, Azure, or GCP

Inputs: provider (required), startDate (required), endDate (required), granularity.

analyze_permissionsC

Analyze IAM permissions and access policies

Inputs: provider (required).

aws_list_ec2_instancesC

List all EC2 instances in AWS

Inputs: region.

aws_list_lambda_functionsC

List all Lambda functions in AWS

Inputs: region.

aws_list_rds_instancesB

List all RDS database instances in AWS

Inputs: region.

aws_list_s3_bucketsC

List all S3 buckets in AWS

Inputs: region.

aws_start_ec2_instanceC

Start an EC2 instance

Inputs: instanceId (required), region.

aws_stop_ec2_instanceC

Stop an EC2 instance

Inputs: instanceId (required), region.

azure_list_storage_accountsC

List all Storage Accounts in Azure

Inputs: subscriptionId, location.

azure_list_virtual_machinesC

List all Virtual Machines in Azure

Inputs: subscriptionId, location.

check_complianceB

Check compliance with security standards (CIS, SOC2, etc.)

Inputs: provider (required), standard.

check_encryptionC

Check encryption status of cloud resources

Inputs: provider (required), resourceId (required), resourceType (required).

delete_resourceB

Delete a cloud resource (use with caution)

Inputs: provider (required), resourceId (required), resourceType (required), confirm (required).

estimate_monthly_costC

Estimate monthly cost based on current usage

Inputs: provider (required).

gcp_list_cloud_functionsC

List all Cloud Functions in GCP

Inputs: projectId, region.

gcp_list_compute_instancesC

List all Compute Engine instances in GCP

Inputs: projectId, region.

gcp_list_storage_bucketsC

List all Cloud Storage buckets in GCP

Inputs: projectId, region.

get_cost_by_serviceC

Get cost breakdown by service

Inputs: provider (required), startDate (required), endDate (required).

get_metricsC

Get metrics for a cloud resource

Inputs: provider (required), resourceId (required), metricName (required), startTime (required), +2 more.

get_resourceC

Get detailed information about a specific resource

Inputs: provider (required), resourceId (required), resourceType (required).

get_resource_healthC

Get health status of a cloud resource

Inputs: provider (required), resourceId (required), resourceType (required).

list_alarmsC

List monitoring alarms

Inputs: provider (required), resourceId.

list_resourcesC

List cloud resources (instances, storage, databases, functions) across AWS, Azure, or GCP

Inputs: provider (required), type, region.

scan_security_issuesC

Scan cloud resources for security issues

Inputs: provider (required), resourceId.

start_resourceC

Start a cloud resource (instance, function, etc.)

Inputs: provider (required), resourceId (required), resourceType (required).

stop_resourceC

Stop a cloud resource

Inputs: provider (required), resourceId (required), resourceType (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    C2.8/5.0

    Scored across 26 tools

    Disambiguation3/5

    The tools have clear distinctions between cloud providers (AWS, Azure, GCP) and resource types, but there is significant overlap in functionality. For example, 'list_resources' appears to duplicate the purpose of provider-specific list tools like 'aws_list_ec2_instances' and 'azure_list_virtual_machines', which could confuse an agent about which tool to use for listing. Additionally, 'start_resource' and 'stop_resource' overlap with provider-specific start/stop tools like 'aws_start_ec2_instance', creating ambiguity in tool selection.

    Naming Consistency2/5

    The naming conventions are inconsistent and mixed. Some tools use a 'provider_action_resource' pattern (e.g., 'aws_list_ec2_instances'), while others use a 'action_resource' pattern (e.g., 'list_resources', 'get_resource'). There is also variation in verb usage, such as 'analyze' vs. 'check' vs. 'scan', and some tools include provider prefixes while others do not. This lack of a predictable pattern makes the tool set harder to navigate and understand.

    Tool Count2/5

    With 26 tools, the count is too high for the server's purpose of cloud services management. The duplication of functionality, such as having both generic and provider-specific list/start/stop tools, suggests bloat rather than necessity. A more streamlined set of 10-15 tools could cover the same domain effectively, making the current count feel heavy and potentially overwhelming for agents.

    Completeness4/5

    The tool set provides comprehensive coverage for cloud management, including listing, starting, stopping, analyzing costs, checking compliance, and scanning security issues across multiple providers. However, there are minor gaps, such as the absence of update or modify tools for resources (e.g., no 'update_resource' or 'modify_configuration'), which might require workarounds. Overall, the surface is largely complete for core operations.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Connects AI assistants to AWS infrastructure through AWS IAM Identity Center for secure, natural language management of cloud resources across multiple accounts. It enables users to execute AWS CLI commands, monitor resources, and run remote shell commands on EC2 instances via Systems Manager.
      1,185 npm
      15
      ISC
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides AI agents with natural language control over AWS, Azure, GCP, and Alibaba Cloud infrastructure through dynamic API discovery and execution. Supports 51,900+ cloud operations and includes OpenTofu integration for complete infrastructure lifecycle management.
      3
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to manage VNG Cloud infrastructure including compute, storage, networking, and Kubernetes resources through natural language commands.
      Apache 2.0