RunPod

DevOps

by runpod

通过兼容 MCP 的客户端直接管理 RunPod 云资源,可创建、查询、更新、启停和删除 pods、serverless endpoints、templates、network volumes 及镜像认证。

什么是 RunPod

通过兼容 MCP 的客户端直接管理 RunPod 云资源,可创建、查询、更新、启停和删除 pods、serverless endpoints、templates、network volumes 及镜像认证。

核心功能 (26 个工具)

list-pods
get-pod
create-pod
update-pod
start-pod
stop-pod
delete-pod
list-endpoints
get-endpoint
create-endpoint
update-endpoint
delete-endpoint
list-templates
get-template
create-template
update-template
delete-template
list-network-volumes
get-network-volume
create-network-volume
update-network-volume
delete-network-volume
list-container-registry-auths
get-container-registry-auth
create-container-registry-auth
delete-container-registry-auth

README

Runpod MCP server

smithery badge

This Model Context Protocol (MCP) server lets you manage Runpod infrastructure through any MCP-compatible client. It provides tools for working with Pods, Serverless endpoints, templates, network volumes, and container registry authentications.

Quick start

Requirements

Running with npx

You can run the server directly without installation:

bash
RUNPOD_API_KEY=YOUR_API_KEY npx @runpod/mcp-server@latest

Installing via Smithery

To install for Claude Desktop automatically via Smithery:

bash
npx -y @smithery/cli install @runpod/runpod-mcp-ts --client claude

Setting up with your client

Most MCP clients use a JSON configuration file with the same general structure. The examples below show the npx approach (recommended for most users) and the local build approach (for development). Replace YOUR_API_KEY with your actual Runpod API key.

Claude Code

Add the MCP server globally so it's available across all your projects:

bash
claude mcp add runpod -s user \
  -e RUNPOD_API_KEY=YOUR_API_KEY \
  -- npx -y @runpod/mcp-server@latest

Or add it to a specific project (creates a .mcp.json file you can commit):

bash
claude mcp add runpod -s project \
  -e RUNPOD_API_KEY=YOUR_API_KEY \
  -- npx -y @runpod/mcp-server@latest

Verify the server is connected with claude mcp list. If you're in an active session, type /mcp to reconnect without restarting.

Claude Desktop

Edit the config file at ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

json
{
  "mcpServers": {
    "runpod": {
      "command": "npx",
      "args": ["-y", "@runpod/mcp-server@latest"],
      "env": {
        "RUNPOD_API_KEY": "YOUR_API_KEY"
      }
    }
  }
}

Restart Claude Desktop after saving.

Cursor

Add the following to .cursor/mcp.json in your project directory, or ~/.cursor/mcp.json for global access:

json
{
  "mcpServers": {
    "runpod": {
      "command": "npx",
      "args": ["-y", "@runpod/mcp-server@latest"],
      "env": {
        "RUNPOD_API_KEY": "YOUR_API_KEY"
      }
    }
  }
}

Windsurf

Open Windsurf settings (Cmd+Shift+P → "Open Windsurf Settings"), navigate to the Cascade section, and enable MCP. Then edit ~/.codeium/windsurf/mcp_config.json:

json
{
  "mcpServers": {
    "runpod": {
      "command": "npx",
      "args": ["-y", "@runpod/mcp-server@latest"],
      "env": {
        "RUNPOD_API_KEY": "YOUR_API_KEY"
      }
    }
  }
}

VS Code (GitHub Copilot)

MCP works in VS Code's agent mode (requires VS Code 1.101+). Add the following to .vscode/mcp.json in your workspace:

json
{
  "mcpServers": {
    "runpod": {
      "command": "npx",
      "args": ["-y", "@runpod/mcp-server@latest"],
      "env": {
        "RUNPOD_API_KEY": "YOUR_API_KEY"
      }
    }
  }
}

Click the "Start" button next to the server entry to connect.

Cline

Open Cline in VS Code, click the hamburger menu (☰), and go to MCP Servers. You can add servers through the marketplace or manually configure in Cline's settings using the same JSON structure shown above.

JetBrains IDEs

Create a mcp.json file at ~/.junie/mcp.json (global) or .junie/mcp/ in your project:

json
{
  "mcpServers": {
    "runpod": {
      "command": "npx",
      "args": ["-y", "@runpod/mcp-server@latest"],
      "env": {
        "RUNPOD_API_KEY": "YOUR_API_KEY"
      }
    }
  }
}

Other clients

This server uses stdio transport and works with any MCP-compatible client. The configuration pattern is the same across all clients — point the command to npx with @runpod/mcp-server@latest as the argument, and set RUNPOD_API_KEY in the environment. For a full list of MCP clients, see the official MCP clients page.

Using a local build

If you want to run from a local clone of the repo (for development or to test unreleased changes):

bash
git clone https://github.com/runpod/runpod-mcp.git
cd runpod-mcp
pnpm install
pnpm build

Then replace the command and args in any of the configurations above with:

json
{
  "command": "node",
  "args": ["/absolute/path/to/runpod-mcp/dist/index.mjs"]
}

After making changes to the source, re-run pnpm build and restart or reconnect the MCP server for changes to take effect.

Usage examples

List all Pods

code
Can you list all my Runpod Pods?

Create a new Pod

code
Create a new Runpod Pod with the following specifications:
- Name: test-pod
- Image: runpod/pytorch:2.1.0-py3.10-cuda11.8.0-devel-ubuntu22.04
- GPU Type: NVIDIA GeForce RTX 4090
- GPU Count: 1

Create a Serverless endpoint

code
Create a Runpod Serverless endpoint with the following configuration:
- Name: my-endpoint
- Template ID: 30zmvf89kd
- Minimum workers: 0
- Maximum workers: 3

Contributing

To get started with local development, clone the repo and build:

bash
git clone https://github.com/runpod/runpod-mcp.git
cd runpod-mcp
pnpm install
pnpm build

After making changes, rebuild with pnpm build. In Claude Code, type /mcp to reconnect to the updated server without restarting your session. You can also use pnpm build:watch for auto-rebuilding during development.

All tools live in src/index.ts. The server uses two backends: the REST API (runpodRequest()) for authenticated CRUD operations, and the GraphQL API (graphqlRequest()) for public read-only queries like GPU types and data centers. Follow existing patterns when adding new tools — kebab-case names, Zod schemas with .describe(), and JSON stringified responses.

This project uses changesets for versioning and npm publishing. Every PR with user-facing changes needs a changeset file at .changeset/DESCRIPTIVE_NAME.md:

markdown
---
"@runpod/mcp-server": minor
---

Description of what changed and why.

Use patch for bug fixes, minor for new tools or features, and major for breaking changes. The .changeset/ directory is gitignored, so use git add -f to stage changeset files.

See CLAUDE.md for the full development guide including architecture details, tool conventions, and known issues.

Security considerations

This server requires your Runpod API key, which grants full access to your Runpod account. Never share your API key. Be cautious about what operations you perform, and consider setting up a separate API key with limited permissions. Do not use this in a production environment without proper security measures.

License

Apache-2.0

常见问题

RunPod 是什么?

通过兼容 MCP 的客户端直接管理 RunPod 云资源,可创建、查询、更新、启停和删除 pods、serverless endpoints、templates、network volumes 及镜像认证。

RunPod 提供哪些工具?

提供 26 个工具,包括 list-pods、get-pod、create-pod

相关 Skills

可观测性设计

by alirezarezvani

Universal
热门

面向生产系统规划可落地的可观测性体系,串起指标、日志、链路追踪与 SLI/SLO、错误预算、告警和仪表盘设计,适合搭建监控平台与优化故障响应。

把监控、日志、链路追踪串起来,帮助团队从设计阶段构建可观测性,排障更快、系统演进更稳。

DevOps
未扫描9.0k

资深开发运维

by alirezarezvani

Universal
热门

覆盖 CI/CD 流水线生成、Terraform 基建脚手架和自动化部署,适合在 AWS、GCP、Azure 上搭建云原生发布流程,管理 Docker/Kubernetes 基础设施并持续优化交付。

把CI/CD、基础设施即代码、容器与监控串成一条交付链,尤其适合AWS/GCP/Azure多云团队高效落地。

DevOps
未扫描9.0k

环境密钥管理

by alirezarezvani

Universal
热门

统一梳理dev/staging/prod的.env和密钥流程,自动生成.env.example、校验必填变量、扫描Git历史泄漏,并联动Vault、AWS SSM、1Password、Doppler完成轮换。

统一管理环境变量、密钥与配置,减少泄露和部署混乱,安全治理与团队协作一起做好,DevOps 场景很省心。

DevOps
未扫描9.0k

相关 MCP Server

kubefwd

编辑精选

by txn2

热门

kubefwd 是让 AI 帮你批量转发 Kubernetes 服务到本地的开发神器。

微服务开发者最头疼的本地调试问题,它一键搞定——自动分配 IP 避免端口冲突,还能用自然语言查询状态。但依赖 AI 工作流,纯命令行爱好者可能觉得不够直接。

DevOps
4.1k

Cloudflare

编辑精选

by Cloudflare

热门

Cloudflare MCP Server 是让你用自然语言管理 Workers、KV 和 R2 等云资源的工具。

这个工具解决了开发者频繁切换控制台和文档的痛点,特别适合那些在 Cloudflare 上部署无服务器应用、需要快速调试或管理配置的团队。不过,由于它依赖多个子服务器,初次设置可能有点繁琐,建议先从 Workers Bindings 这类核心功能入手。

DevOps
3.6k

Terraform

编辑精选

by hashicorp

Terraform MCP Server 是让 AI 助手直接操作 Terraform Registry 和 HCP Terraform 的桥梁。

如果你经常在 Terraform 里翻文档找模块配置,这个服务器能省不少时间——直接问 Claude 就能生成准确的代码片段。最适合管理多云基础设施的团队,但注意它目前只适合本地使用,别在生产环境里暴露 HTTP 端点。

DevOps
1.3k

评论