productivity
RunPod MCP Integration for LangChain
Connect RunPod to LangChain through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.
Connect RunPod 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.
RunPod MCP Config for LangChain
Keep the gateway scoped to the integration and operation class needed by the chain.
{
"mcpServers": {
"kosmokrator-runpod": {
"type": "stdio",
"command": "kosmo",
"args": [
"mcp:serve",
"--integration=runpod",
"--write=deny"
]
}
}
} Run the Gateway Manually
kosmokrator mcp:serve --integration=runpod --write=deny Why Use KosmoKrator Here
Expose only RunPod 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.
RunPod Tools Visible to LangChain
LangChain sees stable MCP tool names generated from the RunPod integration catalog.
| MCP tool | Source function | Type | Description |
|---|---|---|---|
integration__runpod__runpod_list_pods | runpod.runpod_list_pods | Read | List all GPU pods in your RunPod account. Returns pod IDs, names, status, GPU types, and runtime details. |
integration__runpod__runpod_get_pod | runpod.runpod_get_pod | Read | Get detailed information about a specific RunPod GPU pod, including its status, GPU type, runtime, ports, and configuration. Use the pod ID obtained from runpod_list_pods. |
integration__runpod__runpod_list_templates | runpod.runpod_list_templates | Read | List all available RunPod templates. Returns template IDs, names, images, and machine configurations. |
integration__runpod__runpod_list_network_volumes | runpod.runpod_list_network_volumes | Read | List all network volumes in your RunPod account. Returns volume IDs, names, sizes, and data center information. |
integration__runpod__runpod_list_endpoints | runpod.runpod_list_endpoints | Read | List all RunPod endpoints. Returns endpoint IDs, names, statuses, and configuration details. |
integration__runpod__runpod_list_serverless | runpod.runpod_list_serverless | Read | List all serverless endpoints in your RunPod account. Returns endpoint IDs, names, statuses, and worker configurations. |
integration__runpod__runpod_get_current_user | runpod.runpod_get_current_user | Read | Get the profile of the currently authenticated RunPod user, including name, email, and account details. |