MCP server: One MCP server.

Kilawatt

@kilawattcloudRun by its publisher: served from their own domain, namespace checked by the registry.MCP server · External

Kilawatt Cloud MCP Server for AI Agent GPU Orchestration

Cloud infrastructurev0.1.3MITJavaScript
Freeno charge per call

Runs on your machine from its package; the steps are below.

What it does

  1. Reads
  2. Writes
  3. High impact

At most: moves money, runs code or commands, deletes data, or sends messages for you.

What it costs

Free

Odel charges nothing per call. The publisher may charge for its own service.

Runs locally over stdio

This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).

npmkilawatt-mcp-serverv0.1.3

Run

npx -y kilawatt-mcp-server

MCP client config

{
  "mcpServers": {
    "kilawatt": {
      "command": "npx",
      "args": [
        "-y",
        "kilawatt-mcp-server"
      ]
    }
  }
}
README3 min read

kilawatt-mcp-server

Build Status npm version License

Model Context Protocol (MCP) server for Kilawatt Cloud GPU provisioning. Enables Cursor, Claude Desktop, and other AI agents to programmatically request and manage real GPU compute nodes.

This server calls the real Kilawatt gateway. Every response is an actual HTTP result from https://www.kilawattcloud.dev/api/public/v1. There are no mock or fabricated responses.

Installation

Install and run via npx:

bash
npx -y kilawatt-mcp-server

Configuration

Set your Kilawatt API key as an environment variable before running the server:

bash
export KILAWATT_API_KEY=kw_live_YOUR_KEY_HERE

The API key must start with kw_live_. API keys are issued through your Kilawatt Cloud account. Contact hello@kilawattcloud.dev for assistance if you don't have access to generate keys yet.

Optionally, override the gateway URL:

bash
export KILAWATT_BASE_URL=https://www.kilawattcloud.dev/api/public/v1

Use with Claude Desktop / Cursor

Add this configuration to your MCP client settings:

json
{
  "mcpServers": {
    "kilawatt": {
      "command": "npx",
      "args": ["-y", "kilawatt-mcp-server"],
      "env": {
        "KILAWATT_API_KEY": "kw_live_YOUR_KEY_HERE"
      }
    }
  }
}

Replace kw_live_YOUR_KEY_HERE with your Kilawatt API key.

Running the Server

Start the MCP server:

bash
npm start

Or directly:

bash
node index.js

The server listens on stdio for MCP requests from your agent.

Available Tools

deploy_gpu_node

Provision real GPU compute on Kilawatt Cloud. This immediately charges the caller's Kilawatt wallet and starts an actual machine. Set dry_run: true to validate pricing, routing, and account balance without provisioning.

Parameters:

ParameterTypeRequiredDefaultRangeDescription
gpu_typestringNo"nvidia-h100"N/AGPU model identifier, e.g. nvidia-h100, nvidia-h200, nvidia-b200
card_countintegerNo11–64Number of GPUs to provision
duration_secondsnumberNo6001–86400How long the node is needed, in seconds. Billed up front.
routing_policystringNo"lowest_cost"lowest_cost, lowest_latency, zero_quotaHow the smart order router picks a node
dry_runbooleanNofalseN/APrice and pre-authorize only. Returns cost estimate and routing order without provisioning or charging.

Example: Deploy 4 H100 GPUs for 1 hour at lowest cost

javascript
{
  "name": "deploy_gpu_node",
  "arguments": {
    "gpu_type": "nvidia-h100",
    "card_count": 4,
    "duration_seconds": 3600,
    "routing_policy": "lowest_cost",
    "dry_run": false
  }
}

Example: Dry-run to check pricing

javascript
{
  "name": "deploy_gpu_node",
  "arguments": {
    "gpu_type": "nvidia-b200",
    "card_count": 2,
    "duration_seconds": 1800,
    "dry_run": true
  }
}

Tool results are formatted from the real HTTP response returned by the Kilawatt gateway.

Error Handling

All errors are descriptive and indicate whether anything was provisioned or charged. Common scenarios:

  • 400 Bad Request: Invalid arguments (e.g., card_count > 64). Fix and retry.
  • 401 Unauthorized: API key missing, malformed, or revoked. Issue a new key in your Kilawatt account or contact hello@kilawattcloud.dev.
  • 402 Payment Required: Insufficient balance or spend cap. Top up in the Kilawatt wallet.
  • 429 Rate Limited: Concurrency or rate limit hit. Retry after a delay.
  • 503 No Capacity: No nodes available matching your criteria. Try a different gpu_type or smaller card_count.
  • Timeout: Gateway did not respond within 60 seconds. No compute was provisioned; retry if needed.

License

MIT

Similar modules

Browse Cloud infrastructure