lambda-cloud-mcp
This server gives an MCP agent read-only visibility into Lambda Cloud GPU pricing, live capacity, and your account resources.
list_instance_types — GPU types with USD/hour price, specs, and regions with capacity now; sorted cheapest first, with an
only_availablefilter to hide sold-out types.cheapest_available_instance — finds the cheapest type with capacity right now, filtered by
min_gpus,gpu_contains(e.g. "H100"),region, andmax_hourly_usd; returns{"found": false}if nothing matches.list_instances — lists your running instances.
get_instance — returns details for one instance by
instance_id.list_ssh_keys — lists SSH keys in your account.
list_file_systems — lists persistent file systems.
list_images — lists available machine images.
list_regions — lists Lambda Cloud regions.
Note: no launch, restart, or terminate tools appear in this schema; per the README those write tools only exist when
LAMBDA_MCP_ALLOW_WRITE=1is set, andlaunch_instancerequires amax_hourly_usdprice cap.
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., "@lambda-cloud-mcp What's the cheapest H100 instance available right now?"
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.
lambda-cloud-mcp
An MCP server for the Lambda Cloud API. It lets an AI agent (Claude Code, Claude Desktop, or any MCP client) check GPU prices and capacity, find the cheapest GPU that is available right now, and see your instances.
If you turn it on, the agent can also launch, restart and terminate instances, with a hard price limit.
Not affiliated with Lambda. Tested against mocked responses built from the public API docs; live test pending.
Why
Lambda has a clean REST API but, as of September 2026, no official MCP server. Agents that train or serve models need to answer simple questions fast: "Is there an H100 free? Where? How much per hour?" This server answers them in one tool call.
Related MCP server: gpu.nz MCP server
Tools
Read-only (always on):
Tool | What it does | API call |
| Types with price in USD/hour, specs, regions with capacity. Sorted cheapest first. |
|
| Cheapest type with capacity now. Filters: |
|
| Your running instances |
|
| One instance by id |
|
| SSH keys in your account |
|
| Persistent file systems |
|
| Available machine images |
|
| Regions |
|
Write tools (cost money, only with LAMBDA_MCP_ALLOW_WRITE=1):
Tool | What it does | API call |
| Launch one instance. Requires |
|
| Restart instances by id |
|
| Terminate instances by id. Irreversible. |
|
Install
You need an API key from the Lambda Cloud API keys page.
Run with uv (no install step):
LAMBDA_API_KEY=your-key uvx --from git+https://github.com/tonydzi/lambda-cloud-mcp lambda-cloud-mcpOr with pip:
pip install git+https://github.com/tonydzi/lambda-cloud-mcp
LAMBDA_API_KEY=your-key lambda-cloud-mcpPython 3.10 or newer.
Configure
Claude Code
Read-only:
claude mcp add lambda-cloud -e LAMBDA_API_KEY=your-key -- \
uvx --from git+https://github.com/tonydzi/lambda-cloud-mcp lambda-cloud-mcpWith launch / terminate enabled:
claude mcp add lambda-cloud -e LAMBDA_API_KEY=your-key -e LAMBDA_MCP_ALLOW_WRITE=1 -- \
uvx --from git+https://github.com/tonydzi/lambda-cloud-mcp lambda-cloud-mcpClaude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"lambda-cloud": {
"command": "uvx",
"args": ["--from", "git+https://github.com/tonydzi/lambda-cloud-mcp", "lambda-cloud-mcp"],
"env": {
"LAMBDA_API_KEY": "your-key"
}
}
}
}Add "LAMBDA_MCP_ALLOW_WRITE": "1" to env only if you want the agent to spend money.
Safety
Read-only by default. Without
LAMBDA_MCP_ALLOW_WRITE=1the write tools are not even shown to the agent. They also check the flag again when called. Only the exact value1turns it on.Price limit on launch.
launch_instancehas no default formax_hourly_usd. The server reads the current price from the API and refuses if it is higher. Price is per instance per hour, as returned by the API (price_cents_per_hour).Capacity check. Launch is refused if the region is not in
regions_with_capacity_available.One instance per launch call. No bulk launches.
Key handling. The key is read only from
LAMBDA_API_KEY, sent asAuthorization: Bearer, and never logged or returned in errors.API errors come back as readable text with Lambda's error
code, e.g.Lambda API 401 on /instances: global/invalid-api-key.
Lambda rate-limits the API to about 1 request per second, and launch to 1 request per 12 seconds.
Source of truth
Every endpoint and field comes from Lambda's public OpenAPI spec, version 1.10.0:
Development
uv venv && uv pip install -e ".[test]"
.venv/bin/pytest -qTests use respx to mock HTTP. No real API calls, no key needed.
Environment variables
Variable | Required | Meaning |
| yes | Your Lambda Cloud API key |
| no |
|
| no | Override base URL (default |
License
MIT
— Anton Dziatkovskii · github.com/tonydzi
READ THIS WITH AI
One click and an agent reads the repo, pulls out the patterns and helps you apply them to your own work.
Read this repo: https://github.com/tonydzi/lambda-cloud-mcp (“lambda-cloud-mcp” - MCP server for the Lambda Cloud API: GPU prices, live capacity, cheapest-available lookup, and env-gated launch/terminate with a price cap. Read-only by default). Work out what problem it actually solves, pull out the reusable patterns and help me apply them to my own setup. Start by asking what I am working on.— TonyDzi, Palo Alto AI Research Lab · second brain, agent coordination, persistent memory: github.com/tonydzi
🧩 One piece of a working system
This repository is one piece lifted out of a live operation: one engineer running a fleet of machines, built with Claude as implementation collaborator; the machines reach consensus with each other and wake the human only for money or the irreversible. It was extracted after it survived production, not written as a demo — and it runs on its own: nothing here phones home to the rest.
See how the whole thing fits together → SYSTEM.md
AI contributors
This project is built by a human + AI team, and the git log says so: Claude writes most of the code, Codex and Grok review it, Gemini feeds the research. Each is credited on a commit only if its output changed that commit's content — no decorative credits. Lab-wide policy, one source for every repo: AI-CONTRIBUTORS.md.
Available Tools
8 toolscheapest_available_instanceA
Find the cheapest instance type that has capacity now. Filters: min_gpus, gpu_contains (e.g. "H100"), region (e.g. "us-east-1"), max_hourly_usd. Returns {"found": false} if nothing matches.
Inputs: region, min_gpus, gpu_contains, max_hourly_usd. Returns: object
get_instanceB
Get details of one instance by id.
Inputs: instance_id (required). Returns: object
list_file_systemsA
List your persistent file systems.
Inputs: no named parameters. Returns: result
list_imagesB
List available machine images.
Inputs: no named parameters. Returns: result
list_instancesA
List your running instances.
Inputs: no named parameters. Returns: result
list_instance_typesA
List Lambda Cloud instance types with price (USD/hour), specs and the regions that have capacity right now. Sorted from cheapest.
Inputs: only_available. Returns: result
list_regionsA
List Lambda Cloud regions.
Inputs: no named parameters. Returns: result
list_ssh_keysA
List SSH keys saved in your Lambda Cloud account.
Inputs: no named parameters. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
The tools are mostly distinct, each targeting a different resource such as images, regions, instance types, running instances, SSH keys, or file systems. The only potential confusion is between list_instance_types and cheapest_available_instance, since the former already includes price and capacity data, but their intents are still reasonably clear.
Most tools follow a consistent list_<resource> or get_<resource> pattern, making the naming predictable. cheapest_available_instance breaks this verb-first convention and would be more consistent as find_cheapest_instance or get_cheapest_instance.
Eight tools is well within the ideal range for a focused cloud-inspection server, and each tool has a clear purpose. The count feels appropriately scoped without unnecessary redundancy.
The tool set is heavily read-only, covering listing and getting resources but lacking any create, update, or delete operations. For a Lambda Cloud management server, the absence of launch/terminate instance operations and SSH key or file system creation is a significant gap that would prevent agents from taking meaningful actions.
Maintenance
Related MCP Connectors
Rent cloud GPUs from AI agents: live prices, VRAM estimates, launch, logs and stop.
AI cloud for agents: launch GPUs, run jobs that stop their own billing, schedule runs.
GPU compute for agents: run commands on an L4/A100/H100, watch logs, billed per second.
Provides capabilities that let LLM agents perform a range of infrastructure management tasks.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables agents to manage Lambda Cloud GPU instances over SSH, including executing commands, running background jobs, transferring files, and terminating instances, while also exposing UI-configured capacity alerts and auto-provisioning settings.-

gpu.nz MCP serverofficial
AlicenseNot gradedqualityCmaintenanceEnables AI agents to search live GPU offers, estimate model VRAM, rent and monitor cloud GPU servers with ready templates, read logs, and stop or destroy them when done. Browsing and VRAM estimates work without an API key, while server management requires one.1MIT
Runcrateofficial
AlicenseNot gradedqualityBmaintenanceEnables AI agents to work with a GPU cloud: check live GPU prices, launch GPUs on ready images, run commands as jobs that stop billing when the command exits, schedule runs, move files, and check spend. Access is scoped to one signed-in environment and capped by its monthly budget.MIT
GPU Finder MCP serverofficial
AlicenseAqualityBmaintenanceEnables agents to query live cloud GPU pricing, stock availability, and up to 12 months of price history across 30+ hyperscalers, neoclouds, and marketplaces, including comparisons of cheapest listed versus cheapest in-stock offers. All tools are read-only, with provider listings and GPU catalogs available at no cost.881 npmMIT