Spotinst MCP Server
The Spotinst MCP Server provides comprehensive management, monitoring, and cost analysis for Spot.io (Spotinst) cloud infrastructure, supporting AWS and Azure Ocean Kubernetes clusters with multi-account access.
Cross-Account & Cross-Cloud Management
List all accessible Spotinst accounts
List all Ocean clusters across all accounts and cloud providers (AWS + Azure) in a single call
AWS Ocean Clusters
List/get details of AWS Ocean Kubernetes clusters, Virtual Node Groups (VNGs), and Elastigroups
Get allowed EC2 instance types and right-sizing resource suggestions
Azure Ocean Clusters
List/get details of Azure Ocean clusters and Azure Virtual Node Groups
Cluster Operations (AWS & Azure)
List nodes, get aggregated cost breakdowns by namespace or resource
List/get deployment rolls and scaling/activity log events
Stateful Nodes
List and get details of AWS Managed Instances (Stateful Nodes)
Scheduling & Health
Get scheduling and auto-scaler configuration
Composite health checks combining node status, recent errors, and active rolls
Cost Analysis
Week-over-week (or custom period) cost trend comparisons
30-day cost and savings summaries
Tag Filtering & Config Export
Filter clusters and VNGs by tag key/value
Export cluster and VNG configurations as YAML for GitOps/backup
Write / Destructive Operations (require confirm=true)
Remove instances using named strategies:
drain_and_replace,replace, orremove_permanentlyInitiate rolling restarts of cluster nodes (with batch size control)
Detach and optionally terminate instances from AWS Ocean clusters
Update AWS and Azure VNG configurations
Allows exporting Ocean cluster and Virtual Node Group (VNG) configurations in YAML format, supporting GitOps workflows and configuration backups.
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., "@Spotinst MCP ServerList all my Ocean clusters across all clouds and show their current status"
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.
mcp-server-spotinst
MCP server for the Spot.io (Spotinst) API. Supports both AWS and Azure Ocean clusters with multi-account access.
Tools (34)
Cross-Account
Tool | Description |
| List all Spotinst accounts accessible with the current token |
| List ALL clusters across ALL accounts and clouds (AWS + Azure) |
AWS Ocean
Tool | Description |
| List AWS Ocean K8s clusters |
| Get AWS Ocean cluster details |
| List AWS Virtual Node Groups (launch specs) |
| Get AWS VNG details |
| List all Elastigroups |
| Get Elastigroup details |
| Get allowed EC2 instance types |
| Get right-sizing resource suggestions (AWS only) |
Azure Ocean
Tool | Description |
| List Azure Ocean clusters |
| Get Azure Ocean cluster details |
| List Azure Virtual Node Groups |
| Get Azure VNG details |
Both Clouds (pass cloud="azure" for Azure)
Tool | Description |
| List nodes in an Ocean cluster |
| Get aggregated cost breakdown by namespace or resource |
| List deployment rolls |
| Get roll details |
| Get scaling and activity log events |
Stateful Nodes (AWS Managed Instances)
Tool | Description |
| List all Stateful Nodes (Managed Instances) |
| Get Stateful Node details |
Scheduling & Health
Tool | Description |
| Get scheduling and auto-scaler configuration |
| Composite health check: nodes, recent errors, active rolls |
Cost Analysis
Tool | Description |
| Week-over-week (or custom period) cost comparison |
| 30-day cost and savings summary |
Tag Filtering
Tool | Description |
| Filter clusters by tag key/value |
| Filter VNGs by tag key/value |
Export (YAML)
Tool | Description |
| Export cluster config as YAML for GitOps/backup |
| Export VNG config as YAML for GitOps/backup |
Write Operations (require confirm=true)
Tool | Description |
| Recommended — Remove instances using a named strategy (see below) |
| Rolling restart of nodes in an Ocean cluster |
| Detach and optionally terminate instances from an AWS Ocean cluster |
| Update an AWS VNG configuration |
| Update an Azure VNG configuration |
All tools accept an optional account_id parameter to query any account.
Instance Removal Strategies
The remove_instances tool provides a safe, intent-based interface for removing instances. Instead of remembering which API flags to set, you pick a strategy:
Strategy | What happens | Use case |
| Gracefully drain pods (respects PDBs), terminate, Ocean replaces. Default and safest. | Replacing a problematic node in production |
| Immediately terminate, Ocean auto-replaces. No graceful drain. AWS only. | Fast replacement when drain isn't needed |
| Terminate + reduce cluster capacity. No replacement. AWS only. | Downsizing the cluster |
When confirm=false (default), the tool shows a detailed execution plan so you can review before proceeding:
remove_instances("o-abc123", "i-abc123", strategy="drain_and_replace")
→ SAFETY: Action NOT executed. Set confirm=true to proceed.
DRAIN AND REPLACE 1 instance(s) in cluster o-abc123:
Instances: ['i-abc123']
Method: Rolling restart (20% per batch)
- Pods will be gracefully drained (PDBs respected)
- Instances will be terminated after drain
- Ocean will automatically launch replacementsSetup
Environment Variables
export SPOTINST_TOKEN="your-spotinst-api-token"
export SPOTINST_ACCOUNT_ID="act-xxxxxxxx"Install with pip
pip install mcp-server-spotinstInstall with uvx (no install needed)
uvx mcp-server-spotinstClaude Code Config
Add to ~/.mcp.json:
{
"mcpServers": {
"spotinst": {
"command": "uvx",
"args": ["mcp-server-spotinst"],
"env": {
"SPOTINST_TOKEN": "your-token",
"SPOTINST_ACCOUNT_ID": "act-xxxxxxxx"
}
}
}
}Docker
docker build -t mcp-server-spotinst .
docker run -e SPOTINST_TOKEN=your-token -e SPOTINST_ACCOUNT_ID=act-xxxxxxxx mcp-server-spotinstRun Standalone
mcp-server-spotinstMulti-Account Usage
Your personal API token can access multiple Spotinst accounts. Use list_accounts to see all available accounts, then pass account_id to any tool:
list_clusters(account_id="act-be5e7ffe")
get_cluster_nodes("o-390ef886", account_id="act-9785011e", cloud="azure")Or use list_all_clusters for a single-call inventory across everything.
API Reference
Uses the Spot.io REST API at https://api.spotinst.io.
Latest Blog Posts
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/arnstarn/mcp-server-spotinst'
If you have feedback or need assistance with the MCP directory API, please join our Discord server