AWS Spot Instance CLI

v1.0.0Cloud Servicesstable

CLI for exploring AWS EC2 Spot inventory. Inspect AWS Spot instance types, saving, price, and interruption frequency.

aiawsaws-spotaws-spot-clidevops
Share:
161
Stars
0
Downloads
0
Weekly
0/5

What is AWS Spot Instance CLI?

AWS Spot Instance CLI is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to cli for exploring aws ec2 spot inventory. inspect aws spot instance types, saving, price, and interruption frequency.

CLI for exploring AWS EC2 Spot inventory. Inspect AWS Spot instance types, saving, price, and interruption frequency.

This server falls under the Cloud Services category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • CLI for exploring AWS EC2 Spot inventory. Inspect AWS Spot i

Use Cases

Explore EC2 Spot inventory
Savings and interruption analysis
Cost optimization
alexei-led

Maintainer

LicenseApache-2.0
Languagego
Versionv1.0.0
UpdatedMay 5, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx spotinfo

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use AWS Spot Instance CLI

Spotinfo is a CLI tool and MCP server for exploring AWS EC2 Spot Instance inventory, giving AI assistants access to live Spot price data, interruption frequency statistics, placement scores, and savings compared to On-Demand pricing. It integrates with the AWS Spot Advisor dataset and optionally fetches live pricing via the EC2 API, making it valuable for DevOps teams optimizing cloud costs or selecting the right instance types for fault-tolerant workloads. Through its MCP interface, Claude can answer questions like 'which m5 instance type has the best spot savings and lowest interruption rate in us-east-1?'

Prerequisites

  • spotinfo binary installed (via Homebrew, direct download, or Go build)
  • AWS credentials optionally configured for placement scores and live pricing (requires ec2:DescribeSpotPriceHistory and ec2:GetSpotPlacementScores IAM permissions)
  • Go 1.24+ if building from source
  • Claude Desktop or another MCP-compatible client
1

Install spotinfo

Install the spotinfo binary using Homebrew on macOS, or download the release binary for Linux/Windows.

# macOS
brew tap alexei-led/tap
brew install alexei-led/tap/spotinfo

# Linux (amd64)
curl -L https://github.com/alexei-led/spotinfo/releases/latest/download/spotinfo_linux_amd64.tar.gz | tar xz
sudo mv spotinfo /usr/local/bin/
2

Verify the installation

Run spotinfo to confirm the binary is accessible and check the version.

spotinfo --version
3

Configure AWS credentials (optional but recommended)

Configure AWS credentials to enable live pricing and placement score features. Without credentials, spotinfo falls back to cached Spot Advisor data.

aws configure
# Ensure the IAM entity has:
# - ec2:DescribeSpotPriceHistory
# - ec2:GetSpotPlacementScores
4

Add the MCP server to your client config

Add the spotinfo MCP server to your Claude Desktop configuration. The --mcp flag starts spotinfo in MCP server mode.

{
  "mcpServers": {
    "spotinfo": {
      "command": "spotinfo",
      "args": ["--mcp"]
    }
  }
}
5

Restart Claude Desktop and query Spot data

Restart Claude Desktop and ask it about AWS Spot instances. The server will respond with pricing, interruption frequency, and placement scores from AWS Spot Advisor.

AWS Spot Instance CLI Examples

Client configuration

Add this to your Claude Desktop claude_desktop_config.json. The spotinfo binary must be on your PATH.

{
  "mcpServers": {
    "spotinfo": {
      "command": "spotinfo",
      "args": ["--mcp"]
    }
  }
}

Prompts to try

Use these prompts to explore Spot instance options and optimize costs through Claude.

- "What are the cheapest m5 Spot instances in us-east-1 with a low interruption rate?"
- "Compare Spot savings and interruption frequency for c5.xlarge across us-east-1 and eu-west-1"
- "Find Spot instances with 4 vCPUs and 16 GB RAM that have a placement score above 8"
- "Which t3 instance types have the highest Spot savings percentage right now?"
- "Show me all Spot instances matching 'c5.*' sorted by interruption frequency"

Troubleshooting AWS Spot Instance CLI

'spotinfo: command not found' when Claude tries to start the server

Ensure the spotinfo binary is installed and on the PATH that Claude Desktop uses. On macOS, use the full binary path in the command field (e.g., '/usr/local/bin/spotinfo') or run 'which spotinfo' to find it.

Placement scores not available or returning zero

Placement scores require valid AWS credentials with ec2:GetSpotPlacementScores permission. Run 'aws sts get-caller-identity' to confirm credentials are active, and verify the IAM policy includes the required EC2 actions.

Spot data appears stale or outdated

Spotinfo uses the AWS Spot Advisor dataset as its primary source, which is updated periodically. For live prices, ensure AWS credentials are configured so spotinfo can call ec2:DescribeSpotPriceHistory. Pass --region explicitly if you need data for a specific region.

Frequently Asked Questions about AWS Spot Instance CLI

What is AWS Spot Instance CLI?

AWS Spot Instance CLI is a Model Context Protocol (MCP) server that cli for exploring aws ec2 spot inventory. inspect aws spot instance types, saving, price, and interruption frequency. It connects AI assistants to external tools and data sources through a standardized interface.

How do I install AWS Spot Instance CLI?

Follow the installation instructions on the AWS Spot Instance CLI GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with AWS Spot Instance CLI?

AWS Spot Instance CLI works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is AWS Spot Instance CLI free to use?

Yes, AWS Spot Instance CLI is open source and available under the Apache-2.0 license. You can use it freely in both personal and commercial projects.

Browse More Cloud Services MCP Servers

Explore all cloud services servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "spotinfo": { "command": "npx", "args": ["-y", "spotinfo"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use AWS Spot Instance CLI?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides