# Lium GPU Cloud

Lets your agent rent a GPU pod on Lium, run a command on it and tear it down. Billing runs per second.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 7
- Author: Datura-ai
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/Datura-ai/lium
- Updated: 2026-10-24
- HTML: https://affpapa.org/en/nevibecode/mcp/lium-gpu-cloud

## What it does

The server wires an agent into the Lium platform, where NVIDIA GPU machines are rented out. Through MCP tools the agent picks a node, executes commands on it and removes the pod once the job is done. Billing is per second and keeps running until removal, so a pod left behind keeps costing money.

Under the hood sits the `lium.io` Python package, launched with `uvx`. The same package ships a CLI and an SDK. The CLI covers `lium ls` for listing nodes, `lium quote` for pricing a job, `lium up` to rent, `lium scp` to copy files over and `lium ssh` to get a shell. On the SDK side there is the `@lium.machine` decorator, which pushes a function's execution onto a GPU pod, and the `Lium()` client for longer orchestration code.

A `LIUM_API_KEY` is required — it goes into the environment when you register the server. You create the key in your Lium account. Without it the server cannot authenticate.

## Requirements
- Needs: Python and uv (commands run via uvx)
- Environment variables: `LIUM_API_KEY` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add lium -e LIUM_API_KEY=<LIUM_API_KEY> -- uvx lium.io
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from lium.io <command>

### Codex

**Platform CLI**
```bash
codex mcp add lium-gpu-cloud --env LIUM_API_KEY=<LIUM_API_KEY> -- uvx lium.io
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from lium.io <command>

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "lium-gpu-cloud": {
            "command": "uvx",
            "args": [
                "lium.io"
            ],
            "env": {
                "LIUM_API_KEY": "<LIUM_API_KEY>"
            }
        }
    }
}
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from lium.io <command>

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "lium-gpu-cloud": {
            "type": "stdio",
            "command": "uvx",
            "args": [
                "lium.io"
            ],
            "env": {
                "LIUM_API_KEY": "<LIUM_API_KEY>"
            }
        }
    }
}
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from lium.io <command>

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e LIUM_API_KEY=<LIUM_API_KEY> lium-gpu-cloud uvx lium.io
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from lium.io <command>

## When to use it
- rent a GPU pod for a specific job
- run a command on a remote GPU machine
- list available nodes and their hourly price
- copy a script onto a pod and execute it
- remove a pod to stop per-second billing

## Example prompts
- Rent an A100 pod and tell me the hourly price
- Run `nvidia-smi` on my pod and show me the output
- Remove pod `swift-fox-c8`, I'm done with it

## Similar
- [GitHub](https://affpapa.org/en/nevibecode/mcp/github.md) — MCP server · ★ 33918
- [Netdata](https://affpapa.org/en/nevibecode/mcp/netdata.md) — MCP server · ★ 81115
- [Oh My Posh Validator](https://affpapa.org/en/nevibecode/mcp/oh-my-posh-validator.md) — MCP server · ★ 23643
- [Keploy](https://affpapa.org/en/nevibecode/mcp/keploy.md) — MCP server · ★ 18727
- [Coder](https://affpapa.org/en/nevibecode/mcp/coder.md) — MCP server · ★ 17160
- [mcp](https://affpapa.org/en/nevibecode/mcp/kubeshark-mcp.md) — MCP server · ★ 12109

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
