Featured

Deploy OpenClaw in 60 seconds β€” 20% off logoDeploy OpenClaw in 60 seconds β€” 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger β†’
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger β†’
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free β†’
6,000+ web scrapers for your AI agent, start free logo6,000+ web scrapers for your AI agent, start free

Apify gives your agent live web data: 6,000+ prebuilt scrapers and actors, MCP-ready. Sign up free with $5 in usage credits.

Try Apify free β†’
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data β€” no proxies, no parsers, no maintenance.

Start building free β†’
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it β€” secured from day one.

Get it set up for you β†’
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free β†’
Reach 48,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here β†’

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

arnstarn/mcp-server-spotinst MCP server](https://glama.ai/mcp/servers/arnstarn/mcp-server-spotinst/badges/score.svg)](https://glama.ai/mcp/servers/arnstarn/mcp-server-spotinst) 🐍 ☁️ - MCP server for Spot.io (Spotinst) API with 23 tools for managing Ocean...

README.md

mcp-server-spotinst

![PyPI version](https://pypi.org/project/mcp-server-spotinst/) ![CI](https://github.com/arnstarn/mcp-server-spotinst/actions/workflows/ci.yml) ![License: MIT](https://opensource.org/licenses/MIT) ![Python 3.10+](https://www.python.org/downloads/)

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_accounts | List all Spotinst accounts accessible with the current token | | list_all_clusters | List ALL clusters across ALL accounts and clouds (AWS + Azure) |

AWS Ocean

| Tool | Description | |------|-------------| | list_clusters | List AWS Ocean K8s clusters | | get_cluster | Get AWS Ocean cluster details | | list_vngs | List AWS Virtual Node Groups (launch specs) | | get_vng | Get AWS VNG details | | list_elastigroups | List all Elastigroups | | get_elastigroup | Get Elastigroup details | | get_allowed_instance_types | Get allowed EC2 instance types | | get_right_sizing | Get right-sizing resource suggestions (AWS only) |

Azure Ocean

| Tool | Description | |------|-------------| | list_clusters_azure | List Azure Ocean clusters | | get_cluster_azure | Get Azure Ocean cluster details | | list_vngs_azure | List Azure Virtual Node Groups | | get_vng_azure | Get Azure VNG details |

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

| Tool | Description | |------|-------------| | get_cluster_nodes | List nodes in an Ocean cluster | | get_cluster_costs | Get aggregated cost breakdown by namespace or resource | | list_rolls | List deployment rolls | | get_roll | Get roll details | | get_cluster_log | Get scaling and activity log events |

Stateful Nodes (AWS Managed Instances)

| Tool | Description | |------|-------------| | list_stateful_nodes | List all Stateful Nodes (Managed Instances) | | get_stateful_node | Get Stateful Node details |

Scheduling & Health

| Tool | Description | |------|-------------| | get_cluster_scheduling | Get scheduling and auto-scaler configuration | | get_cluster_health | Composite health check: nodes, recent errors, active rolls |

Cost Analysis

| Tool | Description | |------|-------------| | get_cost_trending | Week-over-week (or custom period) cost comparison | | get_savings_summary | 30-day cost and savings summary |

Tag Filtering

| Tool | Description | |------|-------------| | filter_clusters_by_tag | Filter clusters by tag key/value | | filter_vngs_by_tag | Filter VNGs by tag key/value |

Export (YAML)

| Tool | Description | |------|-------------| | export_cluster_yaml | Export cluster config as YAML for GitOps/backup | | export_vng_yaml | Export VNG config as YAML for GitOps/backup |

Write Operations (require confirm=true)

| Tool | Description | |------|-------------| | remove_instances | Recommended β€” Remove instances using a named strategy (see below) | | initiate_roll | Rolling restart of nodes in an Ocean cluster | | detach_instances | Detach and optionally terminate instances from an AWS Ocean cluster | | update_vng | Update an AWS VNG configuration | | update_vng_azure | 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 | |----------|-------------|----------| | drain_and_replace | Gracefully drain pods (respects PDBs), terminate, Ocean replaces. Default and safest. | Replacing a problematic node in production | | replace | Immediately terminate, Ocean auto-replaces. No graceful drain. AWS only. | Fast replacement when drain isn't needed | | remove_permanently | 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 replacements

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"
      }
    }
  }
}

Docker

docker build -t mcp-server-spotinst .
docker run -e SPOTINST_TOKEN=your-token -e SPOTINST_ACCOUNT_ID=act-xxxxxxxx mcp-server-spotinst

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.

See related servers & alternatives β†’

Related MCP servers

Browse all β†’

Related guides

Hand-picked reading to help you choose and use Cloud & DevOps servers.