mcp-server-spotinst
v0.7.0MCP server for Spot.io (Spotinst) API - manage Ocean clusters, VNGs, and Elastigroups
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
probe_token_capabilities
Probe which Spot.io API endpoints the current token can access. Call this first to understand what tools will work with your token. Returns a report of accessible vs denied endpoints.
list_accounts
List all Spotinst accounts accessible with the current token.
list_all_clusters
List ALL Ocean clusters across ALL accounts and cloud providers (AWS + Azure). Scans every account in parallel and returns a unified list with account and cloud info. Returns compact summaries by default (id, name, region, account, capacity). Set verbose=true for full cluster configs (networking, instance types, autoscaler). Args: verbose: Return full configurations instead of compact summaries (default: false). Use when analyzing cluster settings, troubleshooting, or comparing configs.
| Parameter | Type | Description |
|---|---|---|
verbose | boolean |
list_clusters
List AWS Ocean Kubernetes clusters in a Spotinst account. Returns compact summaries by default (id, name, region, capacity). Set verbose=true for full cluster configs (networking, instance types, autoscaler). Args: account_id: Optional account ID to query (e.g. act-be5e7ffe). Defaults to SPOTINST_ACCOUNT_ID env var. verbose: Return full configurations instead of compact summaries (default: false). Use when analyzing cluster settings, troubleshooting, or comparing configs.
| Parameter | Type | Description |
|---|---|---|
account_id | string | |
verbose | boolean |
get_cluster
Get details of a specific AWS Ocean cluster. Args: cluster_id: The Ocean cluster ID (e.g. o-abc12345) account_id: Optional account ID to query. Defaults to SPOTINST_ACCOUNT_ID env var.
| Parameter | Type | Description |
|---|---|---|
cluster_id * | string | |
account_id | string |
list_clusters_azure
List Azure Ocean clusters in a Spotinst account. Returns compact summaries by default (id, name, capacity). Set verbose=true for full cluster configs (networking, VM sizes, autoscaler). Args: account_id: Account ID for an Azure account (e.g. act-9785011e). verbose: Return full configurations instead of compact summaries (default: false). Use when analyzing cluster settings, troubleshooting, or comparing configs.
| Parameter | Type | Description |
|---|---|---|
account_id | string | |
verbose | boolean |
get_cluster_azure
Get details of a specific Azure Ocean cluster. Args: cluster_id: The Ocean cluster ID (e.g. o-390ef886) account_id: Account ID for an Azure account.
| Parameter | Type | Description |
|---|---|---|
cluster_id * | string | |
account_id | string |
list_vngs
List AWS Ocean Virtual Node Groups (VNGs / launch specs). Returns compact summaries by default (id, name, oceanId). Set verbose=true for full VNG configs (AMI, subnets, resource limits, labels). Args: ocean_id: Optional Ocean cluster ID to filter by (e.g. o-abc12345) account_id: Optional account ID to query. Defaults to SPOTINST_ACCOUNT_ID env var. verbose: Return full configurations instead of compact summaries (default: false). Use when analyzing VNG settings, troubleshooting, or comparing configs.
| Parameter | Type | Description |
|---|---|---|
account_id | string | |
ocean_id | string | |
verbose | boolean |
get_vng
Get details of a specific AWS VNG (launch spec). Args: vng_id: The VNG/launch spec ID (e.g. ols-abc12345) account_id: Optional account ID to query. Defaults to SPOTINST_ACCOUNT_ID env var.
| Parameter | Type | Description |
|---|---|---|
vng_id * | string | |
account_id | string |
list_vngs_azure
List Azure Ocean Virtual Node Groups. Returns compact summaries by default (id, name, oceanId). Set verbose=true for full VNG configs (VM sizes, labels, resource limits). Args: ocean_id: Optional Ocean cluster ID to filter by (e.g. o-390ef886) account_id: Account ID for an Azure account. verbose: Return full configurations instead of compact summaries (default: false). Use when analyzing VNG settings, troubleshooting, or comparing configs.
| Parameter | Type | Description |
|---|---|---|
account_id | string | |
ocean_id | string | |
verbose | boolean |
get_vng_azure
Get details of a specific Azure VNG. Args: vng_id: The VNG ID (e.g. vng-14e08b61) account_id: Account ID for an Azure account.
| Parameter | Type | Description |
|---|---|---|
vng_id * | string | |
account_id | string |
list_elastigroups
List all Elastigroups in a Spotinst account. Returns compact summaries by default (id, name, region, capacity). Set verbose=true for full Elastigroup configs (compute, networking, scaling). Args: account_id: Optional account ID to query. Defaults to SPOTINST_ACCOUNT_ID env var. verbose: Return full configurations instead of compact summaries (default: false). Use when analyzing Elastigroup settings, troubleshooting, or comparing configs.
| Parameter | Type | Description |
|---|---|---|
account_id | string | |
verbose | boolean |
get_elastigroup
Get details of a specific Elastigroup. Args: group_id: The Elastigroup ID (e.g. sig-abc12345) account_id: Optional account ID to query. Defaults to SPOTINST_ACCOUNT_ID env var.
| Parameter | Type | Description |
|---|---|---|
group_id * | string | |
account_id | string |
get_cluster_nodes
List all nodes in an Ocean cluster (AWS or Azure). Args: cluster_id: The Ocean cluster ID (e.g. o-abc12345) account_id: Optional account ID to query. Defaults to SPOTINST_ACCOUNT_ID env var. cloud: Cloud provider: aws or azure (default: aws) limit: Max items to return (default: 50). Set limit=0 for all results.
| Parameter | Type | Description |
|---|---|---|
cluster_id * | string | |
account_id | string | |
cloud | string | |
limit | integer |
get_cluster_costs
Get aggregated cost breakdown for an Ocean cluster (AWS or Azure). Args: cluster_id: The Ocean cluster ID (e.g. o-abc12345) start_time: Start time in ISO 8601 format (e.g. 2026-03-01T00:00:00Z) end_time: End time in ISO 8601 format (e.g. 2026-03-20T00:00:00Z) group_by: Group costs by: namespace (default: namespace). Only 'namespace' is currently supported by the API. account_id: Optional account ID to query. Defaults to SPOTINST_ACCOUNT_ID env var. cloud: Cloud provider: aws or azure (default: aws) limit: Max namespace aggregations t…
| Parameter | Type | Description |
|---|---|---|
cluster_id * | string | |
end_time * | string | |
start_time * | string | |
account_id | string | |
cloud | string | |
group_by | string | |
limit | integer |
get_right_sizing
Get right-sizing resource suggestions for workloads in an Ocean cluster (AWS or Azure). Results are sorted by savings potential (biggest CPU delta first) and truncated to `limit`. Args: cluster_id: The Ocean cluster ID (e.g. o-abc12345) namespace: Optional namespace to filter suggestions account_id: Optional account ID to query. Defaults to SPOTINST_ACCOUNT_ID env var. cloud: Cloud provider: aws or azure (default: aws) limit: Max items to return, sorted by savings potential (default: 50). Set limit=0 for all results.
| Parameter | Type | Description |
|---|---|---|
cluster_id * | string | |
account_id | string | |
cloud | string | |
limit | integer | |
namespace | string |
list_rolls
List all deployment rolls for an Ocean cluster (AWS or Azure). Args: cluster_id: The Ocean cluster ID (e.g. o-abc12345) account_id: Optional account ID to query. Defaults to SPOTINST_ACCOUNT_ID env var. cloud: Cloud provider: aws or azure (default: aws)
| Parameter | Type | Description |
|---|---|---|
cluster_id * | string | |
account_id | string | |
cloud | string |
get_roll
Get details of a specific Ocean cluster roll (AWS or Azure). Args: cluster_id: The Ocean cluster ID (e.g. o-abc12345) roll_id: The roll ID (e.g. scr-abc12345) account_id: Optional account ID to query. Defaults to SPOTINST_ACCOUNT_ID env var. cloud: Cloud provider: aws or azure (default: aws)
| Parameter | Type | Description |
|---|---|---|
cluster_id * | string | |
roll_id * | string | |
account_id | string | |
cloud | string |
get_cluster_log
Get scaling and activity log events for an Ocean cluster (AWS or Azure). Args: cluster_id: The Ocean cluster ID (e.g. o-abc12345) from_date: Start date in YYYY-MM-DD format (e.g. 2026-03-19) to_date: End date in YYYY-MM-DD format (e.g. 2026-03-20) severity: Filter by severity: ALL, INFO, WARN, ERROR (default: ALL) limit: Max number of log entries (default: 500) account_id: Optional account ID to query. Defaults to SPOTINST_ACCOUNT_ID env var. cloud: Cloud provider: aws or azure (default: aws)
| Parameter | Type | Description |
|---|---|---|
cluster_id * | string | |
from_date * | string | |
to_date * | string | |
account_id | string | |
cloud | string | |
limit | integer | |
severity | string |
get_allowed_instance_types
Get the list of allowed EC2 instance types for an AWS Ocean cluster. Args: cluster_id: The Ocean cluster ID (e.g. o-abc12345) account_id: Optional account ID to query. Defaults to SPOTINST_ACCOUNT_ID env var.
| Parameter | Type | Description |
|---|---|---|
cluster_id * | string | |
account_id | string |
list_stateful_nodes
List all Stateful Nodes (Managed Instances) in an AWS account. Returns compact summaries by default (id, name, region, capacity). Set verbose=true for full configs (compute, networking, persistence). Args: account_id: Optional account ID to query. Defaults to SPOTINST_ACCOUNT_ID env var. verbose: Return full configurations instead of compact summaries (default: false). Use when analyzing node settings, troubleshooting, or comparing configs.
| Parameter | Type | Description |
|---|---|---|
account_id | string | |
verbose | boolean |
get_stateful_node
Get details of a specific AWS Stateful Node (Managed Instance). Args: node_id: The Managed Instance ID (e.g. smi-abc12345) account_id: Optional account ID to query. Defaults to SPOTINST_ACCOUNT_ID env var.
| Parameter | Type | Description |
|---|---|---|
node_id * | string | |
account_id | string |
list_stateful_nodes_azure
List all Azure Stateful Nodes in an account. Returns compact summaries by default (id, name, capacity). Set verbose=true for full configs (compute, networking, persistence). Args: account_id: Account ID for an Azure account. verbose: Return full configurations instead of compact summaries (default: false). Use when analyzing node settings, troubleshooting, or comparing configs.
| Parameter | Type | Description |
|---|---|---|
account_id | string | |
verbose | boolean |
get_stateful_node_azure
Get details of a specific Azure Stateful Node. Args: node_id: The Azure Stateful Node ID account_id: Account ID for an Azure account.
| Parameter | Type | Description |
|---|---|---|
node_id * | string | |
account_id | string |
get_cluster_scheduling
Get scheduling and auto-scaler configuration for an Ocean cluster (AWS or Azure). Shows shutdown hours, scheduled tasks, and auto-scaler settings. Args: cluster_id: The Ocean cluster ID (e.g. o-abc12345) account_id: Optional account ID to query. Defaults to SPOTINST_ACCOUNT_ID env var. cloud: Cloud provider: aws or azure (default: aws)
| Parameter | Type | Description |
|---|---|---|
cluster_id * | string | |
account_id | string | |
cloud | string |
get_cluster_health
Composite health check for an Ocean cluster. Returns node status, recent errors, and active rolls in one call. Args: cluster_id: The Ocean cluster ID (e.g. o-abc12345) account_id: Optional account ID to query. Defaults to SPOTINST_ACCOUNT_ID env var. cloud: Cloud provider: aws or azure (default: aws)
| Parameter | Type | Description |
|---|---|---|
cluster_id * | string | |
account_id | string | |
cloud | string |
get_cost_trending
Get cost trends over multiple time periods for an Ocean cluster. Shows week-over-week or custom period cost changes. Args: cluster_id: The Ocean cluster ID (e.g. o-abc12345) periods: Number of time periods to compare (default: 4) period_days: Days per period (default: 7 for weekly) group_by: Group costs by: namespace (default: namespace). Only 'namespace' is currently supported by the API. account_id: Optional account ID to query. Defaults to SPOTINST_ACCOUNT_ID env var. cloud: Cloud provider: aws or azure (default: aws)
| Parameter | Type | Description |
|---|---|---|
cluster_id * | string | |
account_id | string | |
cloud | string | |
group_by | string | |
period_days | integer | |
periods | integer |
get_savings_summary
Get a 30-day cost/savings summary for an Ocean cluster. Shows total spend, spot savings, and cost breakdown. Args: cluster_id: The Ocean cluster ID (e.g. o-abc12345) account_id: Optional account ID to query. Defaults to SPOTINST_ACCOUNT_ID env var. cloud: Cloud provider: aws or azure (default: aws)
| Parameter | Type | Description |
|---|---|---|
cluster_id * | string | |
account_id | string | |
cloud | string |
filter_clusters_by_tag
Filter Ocean clusters by tag key (and optionally tag value). Works for AWS and Azure. Returns compact summaries by default. Set verbose=true for full cluster configs. Args: tag_key: Tag key to filter by (e.g. environment, team) tag_value: Optional tag value to match (e.g. production). If empty, matches any value for the key. account_id: Optional account ID to query. Defaults to SPOTINST_ACCOUNT_ID env var. cloud: Cloud provider: aws or azure (default: aws) verbose: Return full configurations instead of compact summaries (default: false).…
| Parameter | Type | Description |
|---|---|---|
tag_key * | string | |
account_id | string | |
cloud | string | |
tag_value | string | |
verbose | boolean |
filter_vngs_by_tag
Filter VNGs by tag key (and optionally tag value). Works for AWS and Azure. Returns compact summaries by default. Set verbose=true for full VNG configs. Args: tag_key: Tag key to filter by (e.g. team, workload-type) tag_value: Optional tag value to match. If empty, matches any value for the key. ocean_id: Optional Ocean cluster ID to filter by account_id: Optional account ID to query. Defaults to SPOTINST_ACCOUNT_ID env var. cloud: Cloud provider: aws or azure (default: aws) verbose: Return full configurations instead of compact summarie…
| Parameter | Type | Description |
|---|---|---|
tag_key * | string | |
account_id | string | |
cloud | string | |
ocean_id | string | |
tag_value | string | |
verbose | boolean |
export_cluster_yaml
Export an Ocean cluster configuration as YAML. Useful for GitOps comparison or backup. Args: cluster_id: The Ocean cluster ID (e.g. o-abc12345) account_id: Optional account ID to query. Defaults to SPOTINST_ACCOUNT_ID env var. cloud: Cloud provider: aws or azure (default: aws)
| Parameter | Type | Description |
|---|---|---|
cluster_id * | string | |
account_id | string | |
cloud | string |
export_vng_yaml
Export a VNG configuration as YAML. Useful for GitOps comparison or backup. Args: vng_id: The VNG ID (e.g. ols-abc12345 for AWS, vng-abc12345 for Azure) account_id: Optional account ID to query. Defaults to SPOTINST_ACCOUNT_ID env var. cloud: Cloud provider: aws or azure (default: aws)
| Parameter | Type | Description |
|---|---|---|
vng_id * | string | |
account_id | string | |
cloud | string |
remove_instances
DESTRUCTIVE: Remove instances from an Ocean cluster using a named strategy. This is the RECOMMENDED tool for instance removal — it picks the right API call for you. Requires confirm=true. Strategies: - "drain_and_replace": Gracefully drain pods (respects PDBs), terminate, Ocean replaces. Uses rolling restart. SAFEST option for production. (Default if not specified) - "replace": Immediately terminate instances, Ocean auto-scales replacements. Faster but no graceful drain — pods are killed abruptly. - "remove_permanently": Terminate instances AN…
| Parameter | Type | Description |
|---|---|---|
cluster_id * | string | |
instance_ids * | string | |
account_id | string | |
batch_size_percentage | integer | |
cloud | string | |
confirm | boolean | |
strategy | string |
initiate_roll
DESTRUCTIVE: Initiate a rolling restart of nodes in an Ocean cluster. This will drain and replace nodes in batches. Requires confirm=true. Args: cluster_id: The Ocean cluster ID (e.g. o-abc12345) confirm: Must be true to execute. Safety guard against accidental rolls. batch_size_percentage: Percentage of nodes to roll per batch (default: 20) batch_min_healthy_percentage: Min healthy nodes per batch (default: 50) respect_pdb: Respect PodDisruptionBudgets (default: true) launch_spec_ids: Comma-separated VNG IDs to roll (e.g. ols-abc,ols-de…
| Parameter | Type | Description |
|---|---|---|
cluster_id * | string | |
account_id | string | |
batch_min_healthy_percentage | integer | |
batch_size_percentage | integer | |
cloud | string | |
confirm | boolean | |
instance_ids | string | |
launch_spec_ids | string | |
respect_pdb | boolean |
detach_instances
DESTRUCTIVE: Detach and optionally terminate instances from an AWS Ocean cluster. Requires confirm=true. Args: cluster_id: The Ocean cluster ID (e.g. o-abc12345) instance_ids: Comma-separated EC2 instance IDs (e.g. i-abc123,i-def456) confirm: Must be true to execute. Safety guard. should_terminate: Terminate instances after detach (default: true) should_decrement_capacity: Reduce target capacity (default: true) account_id: Optional account ID. Defaults to SPOTINST_ACCOUNT_ID env var.
| Parameter | Type | Description |
|---|---|---|
cluster_id * | string | |
instance_ids * | string | |
account_id | string | |
confirm | boolean | |
should_decrement_capacity | boolean | |
should_terminate | boolean |
update_vng
DESTRUCTIVE: Update an AWS VNG (launch spec) configuration. Requires confirm=true. Pass updates as a JSON string. The Spot.io API requires `userData` to be **base64-encoded**. This tool auto-encodes plaintext userData by default (set encode_user_data=false to opt out if you're passing already-encoded data). Args: vng_id: The VNG/launch spec ID (e.g. ols-abc12345) updates_json: JSON string of fields to update (e.g. '{"resourceLimits": {"maxInstanceCount": 20}}') confirm: Must be true to execute. Safety guard. account_id: Optional account ID.…
| Parameter | Type | Description |
|---|---|---|
updates_json * | string | |
vng_id * | string | |
account_id | string | |
auto_apply_tags | ||
confirm | boolean | |
encode_user_data | boolean |
update_vng_azure
DESTRUCTIVE: Update an Azure VNG configuration. Requires confirm=true. Pass updates as a JSON string. Args: vng_id: The VNG ID (e.g. vng-14e08b61) updates_json: JSON string of fields to update confirm: Must be true to execute. Safety guard. account_id: Account ID for an Azure account.
| Parameter | Type | Description |
|---|---|---|
updates_json * | string | |
vng_id * | string | |
account_id | string | |
confirm | boolean |
create_vng
DESTRUCTIVE: Create a new AWS VNG (launch spec) under an Ocean cluster. Requires confirm=true. Pass the launch spec fields as a JSON string. `oceanId` is injected from the `ocean_id` argument; don't include it in `spec_json`. Like update_vng, plaintext `userData` is auto-encoded to base64 by default. Args: ocean_id: The parent Ocean cluster ID (e.g. o-abcd1234). Required. spec_json: JSON string of launch spec fields (name, instanceTypes, labels, taints, resourceLimits, userData, etc.). Do not include `oceanId`. confirm: Must be true…
| Parameter | Type | Description |
|---|---|---|
ocean_id * | string | |
spec_json * | string | |
account_id | string | |
confirm | boolean | |
encode_user_data | boolean | |
initial_nodes |
delete_vng
DESTRUCTIVE: Delete an AWS VNG (launch spec). Requires confirm=true. Args: vng_id: The VNG/launch spec ID to delete. confirm: Must be true to execute. Safety guard. account_id: Optional account ID. Defaults to SPOTINST_ACCOUNT_ID env var. delete_nodes: If true, drain + detach + terminate all nodes in this VNG. If false (default), VNG is deleted but nodes continue until they naturally terminate or are moved. force_delete: If true, delete even if this is the only non-template VNG.
| Parameter | Type | Description |
|---|---|---|
vng_id * | string | |
account_id | string | |
confirm | boolean | |
delete_nodes | boolean | |
force_delete | boolean |