RunPod
DevOpsby runpod
通过兼容 MCP 的客户端直接管理 RunPod 云资源,可创建、查询、更新、启停和删除 pods、serverless endpoints、templates、network volumes 及镜像认证。
什么是 RunPod?
通过兼容 MCP 的客户端直接管理 RunPod 云资源,可创建、查询、更新、启停和删除 pods、serverless endpoints、templates、network volumes 及镜像认证。
核心功能 (26 个工具)
list-podsget-podcreate-podupdate-podstart-podstop-poddelete-podlist-endpointsget-endpointcreate-endpointupdate-endpointdelete-endpointlist-templatesget-templatecreate-templateupdate-templatedelete-templatelist-network-volumesget-network-volumecreate-network-volumeupdate-network-volumedelete-network-volumelist-container-registry-authsget-container-registry-authcreate-container-registry-authdelete-container-registry-authREADME
Runpod MCP server
The official Runpod Model Context Protocol (MCP) server. It lets MCP clients such as Claude Code, Claude Desktop, Cursor, Windsurf, and VS Code manage your Runpod Pods, Serverless endpoints, templates, network volumes, and more.
We host it for you at https://mcp.getrunpod.io/ — point your client at that URL and sign in with Runpod. Nothing to install, no API key on disk. Or run it locally from npm as @runpod/mcp-server.
Quick start
The guided installer detects the clients you have installed, asks which to configure, and writes the config for you:
npx @runpod/mcp-server@latest add
It offers two connection modes:
- Hosted (recommended) — points the client at the hosted server and authenticates with "Sign in with Runpod" (OAuth). No API key is stored on disk.
- Local — runs the server through
npxand stores aRUNPOD_API_KEYin the client's config.
To undo later:
npx @runpod/mcp-server@latest remove
Or install the whole Runpod plugin
For the full agent setup, the official plugin marketplace bundles this server with a router skill plus five more — runpod-mcp, runpodctl, flash, runpod-usage, and companion-clis:
npx skills add runpod/runpod-plugins-official
That works in Claude Code, Codex, Cursor, Copilot, Windsurf, Cline, Gemini, opencode, and 17+ other agents, and installs the skills — pair it with npx @runpod/mcp-server@latest add above for the control-plane tools.
In Claude Code, the native plugin route also wires up the hosted MCP server for you (OAuth included), so no separate setup is needed:
/plugin marketplace add runpod/runpod-plugins-official
/plugin install runpod@runpod
Requirements
- Node.js 18 or higher.
- A Runpod account and API key.
Connect to the hosted server
To configure a client by hand, point it at the hosted server over HTTP (no local process, no API key stored).
Claude Code:
claude mcp add --transport http runpod -s user https://mcp.getrunpod.io/
Other clients (Cursor, VS Code, Claude Desktop connectors, …) — use a URL-based MCP entry:
{
"mcpServers": {
"runpod": {
"url": "https://mcp.getrunpod.io/"
}
}
}
An OAuth-capable client starts the "Sign in with Runpod" flow automatically on first connect: it opens a browser, you log in to the Runpod console and approve, and the server obtains a Runpod API key scoped to your session. Nothing is stored on disk.
Prefer your own API key over OAuth? Append
--header "Authorization: Bearer YOUR_API_KEY"to theclaude mcp addcommand (or add aheadersblock in the JSON). The server forwards that key to the Runpod API directly.
Run locally with npx
Run the server as a local stdio process with your own API key:
RUNPOD_API_KEY=YOUR_API_KEY npx -y @runpod/mcp-server@latest
Or install via Smithery:
npx -y @smithery/cli install @runpod/runpod-mcp-ts --client claude
Local client setup
Local clients launch the stdio server and set RUNPOD_API_KEY in the environment.
Claude Code:
claude mcp add runpod -s user \
-e RUNPOD_API_KEY=YOUR_API_KEY \
-- npx -y @runpod/mcp-server@latest
Use -s project for a project-local server. Verify with claude mcp list; in a session, /mcp reconnects.
Claude Desktop, Cursor, VS Code, Windsurf, and other clients — use the same command in the client's MCP config:
{
"mcpServers": {
"runpod": {
"command": "npx",
"args": ["-y", "@runpod/mcp-server@latest"],
"env": {
"RUNPOD_API_KEY": "YOUR_API_KEY"
}
}
}
}
Claude Desktop's config lives at ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows); restart the app after saving. For a broader list of clients, see the MCP clients directory.
Usage examples
Ask your MCP client in natural language:
List all my Runpod Pods.
Create a Runpod Pod named test-pod with image
runpod/pytorch:2.1.0-py3.10-cuda11.8.0-devel-ubuntu22.04,
GPU type NVIDIA GeForce RTX 4090, 1 GPU.
Create a Serverless endpoint named my-endpoint with image
runpod/test-output:0.0.1, GPU pool AMPERE_80, 0 min workers, 3 max workers.
On the v2 API (the default), endpoints are image-based — pass an image and a GPU pool (a pool value from list-gpu-types), not a template.
See docs/configuration.md for REST v1/v2 selection and the templateId migration note, private image pull (registry credentials vs ECR delegation), and large-output handling.
Security
This server acts with the full permissions of the supplied API key.
- Never share your API key.
- Be deliberate with destructive tools.
- Each request authenticates with its own caller-supplied token, which is forwarded to the Runpod API and never persisted server-side. The server never holds a credential of its own and never shares one across users.
Local development
git clone https://github.com/runpod/runpod-mcp.git
cd runpod-mcp
pnpm install
pnpm build
Run the local build directly:
RUNPOD_API_KEY=YOUR_API_KEY node dist/stdio.mjs
After changes:
pnpm type-check
pnpm lint
pnpm test # offline unit suite — no network or API key required
pnpm build
This project uses changesets for versioning and npm publishing; every PR with user-facing changes needs a changeset. See CLAUDE.md and docs/context.md for full contributor guidance, architecture, and the test suite.
License
Apache-2.0
常见问题
RunPod 是什么?
通过兼容 MCP 的客户端直接管理 RunPod 云资源,可创建、查询、更新、启停和删除 pods、serverless endpoints、templates、network volumes 及镜像认证。
RunPod 提供哪些工具?
提供 26 个工具,包括 list-pods、get-pod、create-pod 等。
相关 Skills
更新日志
by alirezarezvani
基于 Conventional Commits 自动解析提交记录、判断语义化版本升级并生成规范 changelog,适合在 CI、发版前检查提交格式并批量输出可审计发布说明。
✎ 自动生成和管理更新日志与发布说明,帮团队把版本变更说清楚;聚焦版本化与流程自动化,省时又更规范。
可观测性设计
by alirezarezvani
面向生产系统规划可落地的可观测性体系,串起指标、日志、链路追踪与 SLI/SLO、错误预算、告警和仪表盘设计,适合搭建监控平台与优化故障响应。
✎ 把监控、日志、链路追踪串起来,帮助团队从设计阶段构建可观测性,排障更快、系统演进更稳。
环境密钥管理
by alirezarezvani
统一梳理dev/staging/prod的.env和密钥流程,自动生成.env.example、校验必填变量、扫描Git历史泄漏,并联动Vault、AWS SSM、1Password、Doppler完成轮换。
✎ 统一管理环境变量、密钥与配置,减少泄露和部署混乱,安全治理与团队协作一起做好,DevOps 场景很省心。
相关 MCP Server
kubefwd
编辑精选by txn2
kubefwd 是让 AI 帮你批量转发 Kubernetes 服务到本地的开发神器。
✎ 微服务开发者最头疼的本地调试问题,它一键搞定——自动分配 IP 避免端口冲突,还能用自然语言查询状态。但依赖 AI 工作流,纯命令行爱好者可能觉得不够直接。
Cloudflare
编辑精选by Cloudflare
Cloudflare MCP Server 是让你用自然语言管理 Workers、KV 和 R2 等云资源的工具。
✎ 这个工具解决了开发者频繁切换控制台和文档的痛点,特别适合那些在 Cloudflare 上部署无服务器应用、需要快速调试或管理配置的团队。不过,由于它依赖多个子服务器,初次设置可能有点繁琐,建议先从 Workers Bindings 这类核心功能入手。
Terraform
编辑精选by hashicorp
Terraform MCP Server 是让 AI 助手直接操作 Terraform Registry 和 HCP Terraform 的桥梁。
✎ 如果你经常在 Terraform 里翻文档找模块配置,这个服务器能省不少时间——直接问 Claude 就能生成准确的代码片段。最适合管理多云基础设施的团队,但注意它目前只适合本地使用,别在生产环境里暴露 HTTP 端点。