Skip to main content
Glama
Rackspace Spot MCP Server

Rackspace Spot MCP Server

by pm990320

Rackspace Spot MCP Server

npm version License: MIT

A Model Context Protocol (MCP) server for Rackspace Spot - a managed Kubernetes platform with auction-based pricing.

Features

This MCP server provides tools for managing your Rackspace Spot infrastructure:

  • Regions & Server Classes: List available regions and machine types

  • Organizations: List organizations and their namespaces

  • Cloudspaces: Create, list, get, and delete Kubernetes clusters

  • Spot Node Pools: Manage auction-based worker nodes with bid pricing

  • On-Demand Node Pools: Manage fixed-price worker nodes

  • Kubeconfig: Generate kubeconfig files for kubectl access

  • Pricing: Get current market prices and historical pricing data

  • Read-Only Mode: Optionally hide create/delete operations for safety

Related MCP server: homelab-mcp

Prerequisites

  • Node.js 18+

  • A Rackspace Spot account

  • A refresh token from the Rackspace Spot console

Installation

No installation required - run directly with npx:

npx rackspace-spot-mcp

Global Installation

npm install -g rackspace-spot-mcp
rackspace-spot-mcp

From Source

# Clone the repository
git clone https://github.com/pm990320/rackspace-spot-mcp.git
cd rackspace-spot-mcp

# Install dependencies
npm install

# Build the project
npm run build

# Run the server
RACKSPACE_SPOT_REFRESH_TOKEN=your-token node dist/index.js

When using a local build with Claude Desktop or Claude Code, point to the built dist/index.js:

{
  "mcpServers": {
    "rackspace-spot": {
      "command": "node",
      "args": ["/path/to/rackspace-spot-mcp/dist/index.js"],
      "env": {
        "RACKSPACE_SPOT_REFRESH_TOKEN": "your-refresh-token-here"
      }
    }
  }
}

Getting Your Refresh Token

  1. Log in to the Rackspace Spot Console

  2. Navigate to API Access > Terraform in the sidebar

  3. Click Get New Token to generate a refresh token

  4. Copy the token for use with this MCP server

Configuration

Environment Variables

Variable

Required

Description

RACKSPACE_SPOT_REFRESH_TOKEN

Yes

Your Rackspace Spot API refresh token

RACKSPACE_SPOT_READ_ONLY

No

Set to true or 1 to hide create/delete operations

Read-Only Mode

For safety, you can run the server in read-only mode which hides all create and delete tools:

RACKSPACE_SPOT_READ_ONLY=true npx rackspace-spot-mcp

This is recommended for exploratory use or when you want to prevent accidental modifications.

Usage with Claude Desktop

Add the server to your Claude Desktop configuration file:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

{
  "mcpServers": {
    "rackspace-spot": {
      "command": "npx",
      "args": ["-y", "rackspace-spot-mcp"],
      "env": {
        "RACKSPACE_SPOT_REFRESH_TOKEN": "your-refresh-token-here"
      }
    }
  }
}

Read-Only Configuration

{
  "mcpServers": {
    "rackspace-spot": {
      "command": "npx",
      "args": ["-y", "rackspace-spot-mcp"],
      "env": {
        "RACKSPACE_SPOT_REFRESH_TOKEN": "your-refresh-token-here",
        "RACKSPACE_SPOT_READ_ONLY": "true"
      }
    }
  }
}

Usage with Claude Code

Add to your ~/.claude.json (global) or project's .claude.json:

{
  "mcpServers": {
    "rackspace-spot": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "rackspace-spot-mcp"],
      "env": {
        "RACKSPACE_SPOT_REFRESH_TOKEN": "your-refresh-token-here",
        "RACKSPACE_SPOT_READ_ONLY": "true"
      }
    }
  }
}

Available Tools

Infrastructure Discovery

Tool

Description

list_regions

List all available Rackspace Spot regions

get_region

Get details about a specific region

list_server_classes

List available machine types with specs

get_server_class

Get details about a specific server class

list_organizations

List organizations and their namespaces

Cloudspace Management

Tool

Description

list_cloudspaces

List all Kubernetes clusters in a namespace

get_cloudspace

Get details about a specific cluster

create_cloudspace

Create a new Kubernetes cluster

delete_cloudspace

Delete a cluster (irreversible)

Spot Node Pools (Auction Pricing)

Tool

Description

list_spot_node_pools

List spot node pools in a cloudspace

get_spot_node_pool

Get details about a spot node pool

create_spot_node_pool

Create a spot node pool with bid price

delete_spot_node_pool

Delete a spot node pool

On-Demand Node Pools (Fixed Pricing)

Tool

Description

list_ondemand_node_pools

List on-demand node pools

get_ondemand_node_pool

Get details about an on-demand pool

create_ondemand_node_pool

Create an on-demand node pool

delete_ondemand_node_pool

Delete an on-demand node pool

Utilities

Tool

Description

get_kubeconfig

Generate kubeconfig for kubectl access

get_market_pricing

Get current market prices and capacity

get_price_history

Get historical pricing for a server class

get_percentile_pricing

Get price distribution data

Example Interactions

Create a new cloudspace

"Create a new Kubernetes cluster called 'my-app' in the us-central-dfw-1 region"

Add spot nodes with bidding

"Add a spot node pool with 3 medium-sized servers, bidding $0.05 per hour"

Check pricing before bidding

"What are the current market prices for m3.medium servers in DFW?"

Get cluster access

"Generate a kubeconfig for my production cloudspace"

Development

# Watch mode for development
npm run dev

# Run type checking
npm run typecheck

# Run unit tests
npm test

# Run integration tests (requires RACKSPACE_SPOT_REFRESH_TOKEN)
RACKSPACE_SPOT_REFRESH_TOKEN=your-token npm run test:integration

# Regenerate API types from OpenAPI spec
npm run generate-client

Testing

The project includes comprehensive tests:

  • Unit Tests: Test the SpotClient methods with mocked responses

  • Integration Tests: Test the full MCP server including tool discovery and read-only mode

  • Live API Tests: Optionally test against the real Rackspace Spot API (requires token)

Architecture

This MCP server uses a hybrid approach:

  1. Generated Types: TypeScript types are auto-generated from the official Rackspace Spot OpenAPI 3.0 specification using openapi-typescript

  2. Type-Safe Client: The openapi-fetch library provides a type-safe HTTP client

  3. MCP Server: Built with @modelcontextprotocol/sdk for LLM integration

License

MIT

Disclaimer

This is a third-party, community-maintained MCP server and is not officially published or supported by Rackspace Technology.

Available Tools

22 tools
create_cloudspaceB

Create a new Kubernetes cloudspace (cluster) in a specific region. The cloudspace will be fully managed by Rackspace Spot. Supports optional profile selection when multiple Rackspace Spot profiles are configured.

Inputs: name (required), region (required), profile, namespace, +1 more.

create_ondemand_node_poolA

Create a new on-demand node pool with fixed pricing and guaranteed availability. Supports optional profile selection when multiple Rackspace Spot profiles are configured.

Inputs: name (required), cloudspaceName (required), serverClassName (required), profile, +4 more.

create_spot_node_poolB

Create a new spot node pool with auction-based pricing. Set a maximum bid price per hour for significant cost savings. Supports optional profile selection when multiple Rackspace Spot profiles are configured.

Inputs: name (required), bidPrice (required), cloudspaceName (required), serverClassName (required), +5 more.

delete_cloudspaceA

Delete a cloudspace and all its associated resources. This action is irreversible. Supports optional profile selection when multiple Rackspace Spot profiles are configured.

Inputs: name (required), profile, namespace.

delete_ondemand_node_poolB

Delete an on-demand node pool from a cloudspace. Supports optional profile selection when multiple Rackspace Spot profiles are configured.

Inputs: name (required), profile, namespace.

delete_spot_node_poolB

Delete a spot node pool from a cloudspace. Supports optional profile selection when multiple Rackspace Spot profiles are configured.

Inputs: name (required), profile, namespace.

get_cloudspaceA

Get detailed information about a specific cloudspace including its status, region, and configuration. Supports optional profile selection when multiple Rackspace Spot profiles are configured.

Inputs: name (required), profile, namespace.

get_kubeconfigB

Generate a kubeconfig file for accessing a cloudspace's Kubernetes cluster with kubectl. Supports optional profile selection when multiple Rackspace Spot profiles are configured.

Inputs: cloudspaceName (required), profile, organizationName.

get_market_pricingB

Get current market pricing and capacity information for all server classes across regions. Useful for determining optimal bid prices. Supports optional profile selection when multiple Rackspace Spot profiles are configured.

Inputs: profile.

get_ondemand_node_poolB

Get detailed information about a specific on-demand node pool. Supports optional profile selection when multiple Rackspace Spot profiles are configured.

Inputs: name (required), profile, namespace.

get_percentile_pricingA

Get percentile pricing information showing price distribution for server classes. Useful for setting competitive bid prices. Supports optional profile selection when multiple Rackspace Spot profiles are configured.

Inputs: profile.

get_price_historyB

Get historical price data for a specific server class in a region. Useful for understanding price trends. Supports optional profile selection when multiple Rackspace Spot profiles are configured.

Inputs: region (required), serverClass (required), profile.

get_regionB

Get detailed information about a specific Rackspace Spot region by name. Supports optional profile selection when multiple Rackspace Spot profiles are configured.

Inputs: name (required), profile.

get_server_classA

Get detailed information about a specific server class by name. Supports optional profile selection when multiple Rackspace Spot profiles are configured.

Inputs: name (required), profile.

get_spot_node_poolA

Get detailed information about a specific spot node pool including bid price, node count, and status. Supports optional profile selection when multiple Rackspace Spot profiles are configured.

Inputs: name (required), profile, namespace.

list_cloudspacesA

List all Kubernetes cloudspaces (clusters) in a specific organization namespace. Supports optional profile selection when multiple Rackspace Spot profiles are configured.

Inputs: profile, namespace.

list_configured_profilesA

List configured Rackspace Spot MCP profiles and their defaults. Use these profile aliases with other tools when multiple tokens or organizations are configured.

Inputs: no named parameters.

list_ondemand_node_poolsB

List all on-demand node pools in a cloudspace. On-demand nodes have fixed pricing and guaranteed availability. Supports optional profile selection when multiple Rackspace Spot profiles are configured.

Inputs: cloudspaceName (required), profile, namespace.

list_organizationsA

List all organizations the user has access to. Returns organization names and their associated namespaces (org-xxx format) needed for other API calls. Supports optional profile selection when multiple Rackspace Spot profiles are configured.

Inputs: profile.

list_regionsA

List all available Rackspace Spot regions where cloudspaces can be deployed. Returns region names, countries, and provider information. Supports optional profile selection when multiple Rackspace Spot profiles are configured.

Inputs: profile.

list_server_classesA

List all available server classes (machine types) that can be used for node pools. Returns CPU, memory, and pricing information. Supports optional profile selection when multiple Rackspace Spot profiles are configured.

Inputs: profile.

list_spot_node_poolsA

List all spot node pools in a cloudspace. Spot nodes use auction-based pricing for significant cost savings. Supports optional profile selection when multiple Rackspace Spot profiles are configured.

Inputs: cloudspaceName (required), profile, namespace.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 22 tools

    Disambiguation5/5

    Each tool targets a distinct resource+action pair: regions, server classes, organizations, cloudspaces, spot node pools, on-demand node pools, plus pricing and kubeconfig. The spot vs on-demand node pool families are cleanly separated by naming and description, and the three pricing tools (market, history, percentile) are distinguished by their specific purposes.

    Naming Consistency5/5

    All 22 tools follow a strict snake_case verb_noun pattern (list_regions, get_cloudspace, create_spot_node_pool, delete_ondemand_node_pool). The resource suffix consistently distinguishes spot vs on-demand pools, making the naming highly predictable.

    Tool Count4/5

    22 tools is on the heavier side, but each earns its place given the domain spans regions, server classes, orgs, cloudspaces, two node-pool types, and pricing. The list/get/create/delete symmetry across resource families justifies the count rather than feeling redundant.

    Completeness3/5

    Read and create/delete are well covered for cloudspaces and both node-pool types, and pricing/kubeconfig are included. However, there are no update operations, which are significant for lifecycle tasks like scaling node pools or changing a bid price, forcing delete-and-recreate workarounds.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables AI assistants to interact with and manage Kubernetes clusters, supporting operations on pods, deployments, services, configmaps, secrets, namespaces, metrics, and events with built-in safety features for destructive actions.
      9
      10 npm
      1
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Provides a read-only interface to Kubernetes clusters, enabling LLMs to list pods, get pod status and logs, fetch deployment manifests, and perform pod health analysis with resource trend tracking.
      -