productivity
Lambda Labs MCP Integration for LangChain
Connect Lambda Labs to LangChain through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect Lambda Labs to LangChain
Bridge LangChain agents to local KosmoKrator integration tools through MCP or headless CLI calls.
Use the MCP gateway when the agent should discover tools, or wrap kosmo integrations:call for fixed chains. The gateway is local, scoped to this integration, and starts with
--write=deny so LangChain can inspect read-capable tools without receiving write access by default.
Lambda Labs MCP Config for LangChain
Keep the gateway scoped to the integration and operation class needed by the chain.
{
"mcpServers": {
"kosmokrator-lambda-labs": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=lambda-labs",
"--write=deny"
]
}
}
} Run the Gateway Manually
kosmokrator mcp:serve --integration=lambda-labs --write=deny Why Use KosmoKrator Here
Expose only Lambda Labs instead of a broad multi-service tool list.
Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.
Start read-only, then opt into ask or allow for trusted workspaces.
Lambda Labs Tools Visible to LangChain
LangChain sees stable MCP tool names generated from the Lambda Labs integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
integration__lambda_labs__lambda_labs_list_instances | lambda-labs.lambda_labs_list_instances | Read | List all GPU instances in the Lambda Labs account. Returns instance IDs, names, status, IP addresses, and GPU configuration. |
integration__lambda_labs__lambda_labs_get_instance | lambda-labs.lambda_labs_get_instance | Read | Get details for a specific Lambda Labs GPU instance by ID. Returns full instance information including status, IP, region, and GPU type. |
integration__lambda_labs__lambda_labs_launch_instance | lambda-labs.lambda_labs_launch_instance | Write | Launch a new GPU instance on Lambda Labs. Requires a region name, instance type, SSH key IDs, and optionally a name and image. |
integration__lambda_labs__lambda_labs_list_ssh_keys | lambda-labs.lambda_labs_list_ssh_keys | Read | List all SSH keys registered in the Lambda Labs account. Returns key IDs, names, and public key fingerprints. |
integration__lambda_labs__lambda_labs_list_instance_types | lambda-labs.lambda_labs_list_instance_types | Read | List all available GPU instance types on Lambda Labs. Returns specs including GPU model, VRAM, vCPUs, memory, and pricing. |
integration__lambda_labs__lambda_labs_list_images | lambda-labs.lambda_labs_list_images | Read | List all available machine images on Lambda Labs. Returns image IDs, names, and descriptions for OS templates and custom images. |
integration__lambda_labs__lambda_labs_get_current_user | lambda-labs.lambda_labs_get_current_user | Read | Get information about the current authenticated Lambda Labs user, including email, user ID, and account status. |