Rackspace Spot MCP Server
Provides tools for managing Kubernetes clusters hosted on Rackspace Spot, including creating and deleting cloudspaces, managing spot and on-demand node pools, and generating kubeconfig files for kubectl access.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Rackspace Spot MCP Server list my cloudspaces and show spot prices for node pools"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Rackspace Spot MCP Server
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
Using npx (recommended)
No installation required - run directly with npx:
npx rackspace-spot-mcpGlobal Installation
npm install -g rackspace-spot-mcp
rackspace-spot-mcpFrom 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.jsWhen 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
Log in to the Rackspace Spot Console
Navigate to API Access > Terraform in the sidebar
Click Get New Token to generate a refresh token
Copy the token for use with this MCP server
Configuration
Environment Variables
Variable | Required | Description |
| Yes | Your Rackspace Spot API refresh token |
| No | Set to |
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-mcpThis 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 all available Rackspace Spot regions |
| Get details about a specific region |
| List available machine types with specs |
| Get details about a specific server class |
| List organizations and their namespaces |
Cloudspace Management
Tool | Description |
| List all Kubernetes clusters in a namespace |
| Get details about a specific cluster |
| Create a new Kubernetes cluster |
| Delete a cluster (irreversible) |
Spot Node Pools (Auction Pricing)
Tool | Description |
| List spot node pools in a cloudspace |
| Get details about a spot node pool |
| Create a spot node pool with bid price |
| Delete a spot node pool |
On-Demand Node Pools (Fixed Pricing)
Tool | Description |
| List on-demand node pools |
| Get details about an on-demand pool |
| Create an on-demand node pool |
| Delete an on-demand node pool |
Utilities
Tool | Description |
| Generate kubeconfig for kubectl access |
| Get current market prices and capacity |
| Get historical pricing for a server class |
| 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-clientTesting
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:
Generated Types: TypeScript types are auto-generated from the official Rackspace Spot OpenAPI 3.0 specification using
openapi-typescriptType-Safe Client: The
openapi-fetchlibrary provides a type-safe HTTP clientMCP Server: Built with
@modelcontextprotocol/sdkfor 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 toolscreate_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
Scored across 22 tools
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.
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.
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.
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
Related MCP Connectors
Manage Rackspace Spot Kubernetes Cloudspaces, node pools, and VMs from your AI assistant.
Provides capabilities that let LLM agents perform a range of infrastructure management tasks.
Deploy applications and manage governed Kubernetes preview spaces and capacity.
Provides read access to your GKE and Kubernetes resources.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables 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.910 npm1MIT
- AlicenseBqualityBmaintenanceEnables AI agents to inspect and operate a Kubernetes cluster safely, with read-only mode and namespace allowlist for mutations.1072 PyPI2MIT
- FlicenseNot gradedqualityDmaintenanceProvides 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.-
- FlicenseNot gradedqualityCmaintenanceProvides read-only Kubernetes cluster operations via MCP, enabling LLMs to query nodes, pods, logs, events, and watch real-time status for troubleshooting.2-