Enables the management and orchestration of Kubernetes clusters within the CloudStack infrastructure, including container orchestration platform lifecycle operations and performance monitoring.
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., "@CloudStack MCP Serverlist all running virtual machines and their current IP addresses"
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.
CloudStack MCP Server
A comprehensive Model Context Protocol (MCP) server that provides complete CloudStack infrastructure management through natural language interactions with Claude Desktop. This implementation offers extensive coverage of CloudStack 4.20 APIs with 477+ MCP tools covering 735+ API methods across 32 categories.
Overview
The CloudStack MCP Server enables seamless cloud infrastructure management by bridging CloudStack APIs with Claude's natural language interface. Users can perform complex infrastructure operations using conversational commands, eliminating the need to learn CloudStack's API syntax or command-line tools.
Key Statistics:
Extensive API Coverage: 477+ MCP tools covering 735+ CloudStack API methods (93% coverage)
Comprehensive Categories: 32 CloudStack API categories implemented including new infrastructure features
Enterprise Security: 96 dangerous operations protected with confirmation system
Natural Language Interface: Zero learning curve for infrastructure management
Production Ready: Enterprise-grade reliability with comprehensive safety controls
Features
ποΈ Infrastructure Management
Virtual Machine Operations: Complete lifecycle management including deployment, scaling, migration, and monitoring
Storage Management: Volume operations, snapshot management, backup and restore capabilities
Image Store Management: Complete backend storage management with NFS, S3, and Swift support
Pod Management: Infrastructure pod operations including creation, dedication, and IP range management
Network Administration: VPC management, load balancing, firewall rules, and network ACLs
Security Groups: Ingress/egress rule management and security policy enforcement
π₯ Identity & Access Management
Account Administration: User lifecycle management with role-based access control
Domain Management: Hierarchical domain structures and resource organization
Project Management: Multi-tenant collaboration spaces with user assignments
LDAP Integration: Enterprise directory service synchronization
π Advanced Networking
VPC & Networking: Virtual Private Cloud configuration and management
VPN Services: Site-to-site and remote access VPN connectivity
Load Balancing: Application load balancer configuration with health checks
SSL Certificate Management: Complete certificate lifecycle including issuance, upload, revocation, and CA provider management
π Monitoring & Analytics
Resource Metrics: Infrastructure performance monitoring and capacity planning
Event Management: System event tracking and alert configuration
Quota Management: Resource limit enforcement and billing integration
AutoScale Management: Automatic scaling policies and performance thresholds
π§ Advanced Features
Template & ISO Management: Image lifecycle with cross-zone replication
Kubernetes Integration: Container orchestration platform management
Object Storage: S3-compatible storage with lifecycle policies
Hardware Integration: NetScaler, UCS, and bare metal server management
Tungsten Fabric SDN: Software-defined networking with micro-segmentation
π‘οΈ Enterprise Security & Safety
Dangerous Action Confirmation: Foolproof confirmation system protecting 96 destructive operations
Smart Operation Detection: Automatic identification of delete, destroy, purge, scale, and restart operations
Rich Context Warnings: Detailed operation descriptions with severity levels and impact assessment
Confirmation Requirements: Mandatory typed confirmation for critical operations (e.g., "destroy permanently")
Infrastructure Protection: Critical protections for image store deletion and pod management operations
Environment Controls: Smart bypasses for development while enforcing production safety
Comprehensive Auditing: Full security audit trails with correlation tracking and compliance reporting
Operation Categories: Protection across VM, Storage, Network, VPC, Kubernetes, Infrastructure, and Certificate operations
Memory Management: Efficient tracking with automatic cleanup and configurable timeout policies
Test Coverage & Quality Assurance
Enterprise-Grade Testing Framework (v2.3.0+)
Complete Test Suite: 12 integration test files covering all enterprise operations
350+ Test Cases: Systematic testing across VM, Storage, Network, Account, Kubernetes, Load Balancer, VPN, Template/ISO, System Administration, Security/Compliance, Monitoring/Analytics, and Enterprise Integration operations
Advanced Mocking Framework: Custom TestFramework class with 50+ CloudStack client method mocks
Complete Error Handling: Tests for API errors, network timeouts, permission issues, and resource constraints
CRUD Operation Coverage: Create, Read, Update, Delete patterns for all resource types
Edge Case Testing: Comprehensive validation of error conditions and boundary scenarios
Test Structure
Quality Metrics
Test Coverage: 350+ test cases across 12 major operation categories
Error Scenarios: 80+ error handling and edge case tests
Mock Coverage: All CloudStack API methods systematically mocked with 65+ Phase 3 client methods
Enterprise Operations: Complete coverage of System Administration, Security/Compliance, Monitoring/Analytics, and Enterprise Integration
CI/CD Ready: Full Jest integration with coverage reporting
Installation
Prerequisites
Node.js: Version 18.0 or higher
Claude Desktop: Latest version with MCP support
CloudStack Access: Valid API credentials with appropriate permissions
Step 1: Clone and Build
Step 2: Configure CloudStack Connection
π Secure Configuration with Environment Variables (Recommended)
For security, use environment variables instead of hardcoded credentials:
Edit .env with your actual credentials:
Alternative: File-based Configuration
If you prefer file-based configuration (not recommended for production):
Edit config/cloudstack.json with placeholder values (actual credentials should be in environment variables):
Step 3: Claude Desktop Integration
Add the MCP server to your Claude Desktop configuration:
macOS/Linux: ~/.config/claude/claude_desktop_config.json
Windows: %APPDATA%\\Claude\\claude_desktop_config.json
Step 4: Verify Installation
Restart Claude Desktop
Start a new conversation
Test the connection with: "List my CloudStack virtual machines"
Configuration
Environment Variables
The server supports comprehensive configuration through environment variables for secure credential management:
Production Environment:
Development Environment:
Configuration Control:
Multiple Environments
Configure multiple CloudStack environments for different use cases:
Switch environments in Claude by specifying: "List VMs in development environment"
Usage Examples
Infrastructure Discovery
Virtual Machine Management
Network Operations
Security Management
Infrastructure Management
Development
Local Development Setup
Project Structure
API Coverage
Complete Implementation Status
Category | API Methods | MCP Tools | Coverage |
Virtual Machine | 72 | 80 | 100% |
Storage & Volumes | 105 | 28 | 100% |
Networking | 85 | 59 | 100% |
Load Balancer | 34 | 30 | 100% |
Security | 22 | 19 | 100% |
Account Management | 16 | 17 | 100% |
Templates & ISOs | 35 | 25 | 100% |
AutoScale | 21 | 21 | 100% |
Image Store | 20 | 6 | 100% |
Pod Management | 9 | 5 | 100% |
Certificate Management | 10 | 4 | 100% |
Total | 735+ | 477+ | 93% |
For detailed API coverage analysis, see API Coverage Documentation.
Future Roadmap
High Priority Improvements
Architecture: Modular tool organization and lazy loading implementation
Performance: Connection pooling and intelligent caching strategies
Testing: Enhanced test coverage and integration test suite
Security: API key rotation and role-based access control
Medium Priority Features
Monitoring: Health checks, metrics collection, and audit logging
Enterprise: Multi-tenant isolation and backup automation
Development: Comprehensive TypeScript types and documentation
Future Enhancements
CloudStack 5.x: API compatibility when available
User Interface: Web dashboard and CLI tools
AI Integration: Resource optimization and cost management
Real-time: Event streaming and live updates
View the complete roadmap in our development todo list.
Contributing
We welcome contributions to improve the CloudStack MCP Server:
Fork the repository and create a feature branch
Implement changes with appropriate tests
Run quality checks:
npm run lint && npm testSubmit a pull request with detailed description
Development Guidelines
Follow TypeScript best practices
Maintain test coverage above 90%
Include documentation for new features
Use conventional commit messages
Security Considerations
API Credentials: Store securely and rotate regularly
Network Access: Use HTTPS for all CloudStack communications
Permissions: Follow principle of least privilege
Audit Logging: Enable for production environments
License
This project is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. See LICENSE for details.
Commercial Use: Contact the maintainers for commercial licensing options.
Support
Issues: Report bugs via GitHub Issues
Documentation: See docs/ directory for detailed guides
Community: Join discussions in our repository
Note: This application uses AI-assisted development techniques. While extensively tested, please review and validate functionality for your specific environment before production deployment.