MCP Hub
Back to servers

Spotinst MCP Server

An MCP server for the Spot.io API that enables management of AWS and Azure Ocean clusters across multiple accounts. It provides tools for cluster inventory, node management, cost analysis, and scaling operations through natural language.

glama
Updated
Mar 21, 2026

mcp-server-spotinst

PyPI version CI License: MIT Python 3.10+

MCP server for the Spot.io (Spotinst) API. Supports both AWS and Azure Ocean clusters with multi-account access.

Tools (23)

Cross-Account

ToolDescription
list_accountsList all Spotinst accounts accessible with the current token
list_all_clustersList ALL clusters across ALL accounts and clouds (AWS + Azure)

AWS Ocean

ToolDescription
list_clustersList AWS Ocean K8s clusters
get_clusterGet AWS Ocean cluster details
list_vngsList AWS Virtual Node Groups (launch specs)
get_vngGet AWS VNG details
list_elastigroupsList all Elastigroups
get_elastigroupGet Elastigroup details
get_allowed_instance_typesGet allowed EC2 instance types
get_right_sizingGet right-sizing resource suggestions (AWS only)

Azure Ocean

ToolDescription
list_clusters_azureList Azure Ocean clusters
get_cluster_azureGet Azure Ocean cluster details
list_vngs_azureList Azure Virtual Node Groups
get_vng_azureGet Azure VNG details

Both Clouds (pass cloud="azure" for Azure)

ToolDescription
get_cluster_nodesList nodes in an Ocean cluster
get_cluster_costsGet aggregated cost breakdown by namespace or resource
list_rollsList deployment rolls
get_rollGet roll details
get_cluster_logGet scaling and activity log events

Write Operations (require confirm=true)

ToolDescription
initiate_rollRolling restart of nodes in an Ocean cluster
detach_instancesDetach and optionally terminate instances from an AWS Ocean cluster
update_vngUpdate an AWS VNG configuration
update_vng_azureUpdate an Azure VNG configuration

All tools accept an optional account_id parameter to query any account.

Setup

Environment Variables

export SPOTINST_TOKEN="your-spotinst-api-token"
export SPOTINST_ACCOUNT_ID="act-xxxxxxxx"

Install with pip

pip install mcp-server-spotinst

Install with uvx (no install needed)

uvx mcp-server-spotinst

Claude Code Config

Add to ~/.mcp.json:

{
  "mcpServers": {
    "spotinst": {
      "command": "uvx",
      "args": ["mcp-server-spotinst"],
      "env": {
        "SPOTINST_TOKEN": "your-token",
        "SPOTINST_ACCOUNT_ID": "act-xxxxxxxx"
      }
    }
  }
}

Run Standalone

mcp-server-spotinst

Multi-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.

Reviews

No reviews yet

Sign in to write a review

Spotinst MCP Server — MCP Server | MCP Hub