摘要
让你的 AI 检查 Rubrik 备份:集群健康状况和容量、SLA Domain、受保护对象及其 SLA 合规、快照、失败的作业和任务报告、异常检测和威胁狩猎结果。通过服务账号只读访问 GraphQL。
引导式设置
2 分钟将 Rubrik Security Cloud 连接到 Claude
开始 AnythingMCP Cloud 免费试用,在引导式设置中连接 Rubrik Security Cloud,再把你的 MCP URL 添加到 Claude。无需代码,也无需自行运行服务器。
无需信用卡 · 7 天试用 · 提供自托管方案
AnythingMCP 已收录在 Claude 的连接器目录中:一键添加到 Claude (在新标签页中打开),然后登录并选择 Claude 可以使用哪些 MCP 服务器。
试试这样问
Rubrik Security Cloud 的示例提示
点击任意提示即可复制,然后粘贴到 Claude、ChatGPT、Cursor、Gemini、Copilot 或 OpenClaw 中,在该连接器上运行。
Claude 是 AI,可能会出错。请核对回答。
💡 无需安装? 直接使用 cloud.anythingmcp.com。 登录、点击 Connectors → Rubrik Security Cloud、粘贴凭证、生成 MCP API key,即可完成。无 Docker、无
git clone、无本地服务器。
Rubrik Security Cloud + Claude
让你的 AI 检查 Rubrik 备份:集群健康状况和容量、SLA Domain、受保护对象及其 SLA 合规、快照、失败的作业和任务报告、异常检测和威胁狩猎结果。通过服务账号只读访问 GraphQL。
前提条件
完整的设置说明已内置在连接器中 (在 store 中选择连接器时可见)。所需环境变量:
RUBRIK_ACCOUNT, RUBRIK_CLIENT_ID, RUBRIK_CLIENT_SECRET
步骤 1 — 获取凭证
设置大约需要 5 分钟。你需要一个 Rubrik Security Cloud(RSC)账号,并能在 RSC 中访问 Settings, Users and Access 来添加服务账号。
- 在 RSC 中打开 Settings, Users and Access, Service Accounts,添加一个服务账号(service account)。给它分配一个能查看 AI 需要看到的内容的角色:一个只读的自定义角色,具备集群、SLA Domain、对象、事件和威胁分析(threat analytics)的查看权限即可。
- 下载服务账号的 JSON 文件。其中包含
client_id(以client|开头)、client_secret和access_token_uri(https://<account>.my.rubrik.com/api/client_token)。 - 把
RUBRIK_ACCOUNT设为你的账号名:即 RSC 地址和access_token_uri中.my.rubrik.com前面的部分,小写,不带https://,例如acme.my.rubrik.com对应acme。 - 把
client_id复制到RUBRIK_CLIENT_ID,把client_secret复制到RUBRIK_CLIENT_SECRET。 - 安装连接器,运行
rubrik_get_account检查连接:它会返回账号 ID 和 RSC 的部署版本。
Cloud 和自托管的方式相同:连接器使用同一个服务账号调用你账号的 GraphQL API https://<account>.my.rubrik.com/api/graphql;无需登记任何 Redirect URL。
令牌自动续期:连接器在 https://<account>.my.rubrik.com/api/client_token 用 client id 和 secret 换取访问令牌(client credentials 授权),并以 Authorization: Bearer 发送。令牌默认有效 12 小时(在 RSC 的会话设置中最长可设为 24 小时),会在过期前以及收到 401 后自动续期。
妥善保存 secret:RSC 只显示一次 client_secret。如果丢失,请新建一个服务账号并填入它的值。
角色决定 AI 能看到什么:AI 只能看到服务账号的角色有权查看的内容。缺少查看权限时会返回 403。
ID、时间和分页:集群 ID 是 UUID。受保护对象有一个 id(供 rubrik_list_snapshots 使用)和一个 fid(供事件和异常筛选使用)。时间为 UTC 的 ISO 8601 格式。列表接受 first(默认 25,最多 200)和 after:只要 pageInfo.hasNextPage 为 true,就把 after 设为 pageInfo.endCursor 再次调用;count 是总数。
通用 GraphQL 工具:rubrik_graphql_schema_url 返回 schema 的地址,rubrik_graphql_schema 读取 Rubrik 在其 PowerShell SDK 仓库中发布的 RSC 公开 schema 的一部分,rubrik_graphql_query 可执行任何其他只读查询。发布的 schema 可能比你账号的部署新几天或旧几天(rubrik_get_account 会显示部署版本)。
常见错误:请求令牌时返回 400,表示 RUBRIK_CLIENT_ID 不是 JSON 中的 client_id(以 client| 开头),或 secret 属于另一个服务账号。401 表示 RSC 拒绝了该服务账号:请重新复制这两个值;如果 secret 已丢失或被轮换,请新建服务账号。403 表示服务账号已登录,但其角色无权读取这些数据。完全没有响应,说明 RUBRIK_ACCOUNT 填错了:请从 RSC 地址或 access_token_uri 中获取账号名。
可读取的内容:账号 ID 和部署版本;集群,包括连接状态、健康状况、版本、以字节计的容量、预计可用时长(runway)和支持终止日期;SLA Domain,包括快照计划、保留期、保留锁定以及受保护对象数量;受保护对象(虚拟机、数据库、文件集、云和 SaaS 对象),包括保护状态和 SLA 合规状态、最近一次快照、错过的快照和大小;按状态、对象类型、集群或 SLA Domain 统计的合规数量;对象的快照,包括过期日期以及异常、隔离和保留锁定标记;活动(备份、归档、复制、恢复),包括状态、错误原因和解决办法,以及单个系列的时间线;Task Details 报告,包括耗时和传输的字节数;按快照列出的异常检测结果,包括新建、修改、删除和可疑文件的数量;威胁狩猎及其按对象列出的结果,包括最近一个干净的快照。
安装时默认关闭:rubrik_graphql_mutation 和 rubrik_graphql_subscription。它们可执行任意 GraphQL mutation 或 subscription;mutation 可以启动备份和恢复,或删除数据,所以只在确有需要时才开启。请在连接器页面只开启你需要的工具;AI 在每次更改前都会先征得你的确认。其他所有工具都是只读的。
限制:只读工具不会执行备份、启动恢复、分配 SLA Domain 或隔离任何内容;不支持在快照内按文件搜索,也不涵盖 Rubrik CDM 集群的 REST API。
步骤 2 — 安装 adapter
curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d
步骤 3 — 在 Claude 中添加连接器
你的服务器 URL: 在 AnythingMCP 中打开 MCP Servers → 此连接器所在的服务器,复制它的 URL(
https://cloud.anythingmcp.com/mcp/…)。本指南中出现YOUR_SERVER_ID的地方都用它替换。
推荐路径:在 claude.ai web 上工作,无需触碰任何配置文件。
- 在 Claude 中打开 Customize → Connectors。
- 点击 +,然后点击 Add custom connector。
- 输入名称(例如
Rubrik Security Cloud)和远程 MCP 服务器 URLhttps://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID,然后点击 Add。 - 点击 Connect,登录 AnythingMCP(OAuth)并允许访问。
下面所有工具都会出现在你的聊天中,开始输入提示。
可用工具
| Tool | What it does |
|---|---|
rubrik_get_account | Read the Rubrik Security Cloud account behind the service account: the account id and the RSC deployment version |
rubrik_list_clusters | List the Rubrik clusters (CDM appliances, Cloud Clusters) registered in the account, sorted by name: id (cluster UUID), name, type… |
rubrik_get_cluster | Read one Rubrik cluster by its UUID: name, type, status, version, health and system status message, time zone, address, encryption… |
rubrik_list_sla_domains | List SLA Domains (backup policies) sorted by name, with the number of protected objects: id, name, description, whether it is the default… |
rubrik_get_sla_domain | Read one SLA Domain by id with its full snapshot schedule (minute, hourly, daily, weekly, monthly, quarterly and yearly frequency and… |
rubrik_list_protected_objects | List workloads (protected objects such as VMs, databases, filesets, cloud and SaaS objects) with their protection and SLA compliance: id… |
rubrik_get_compliance_summary | Count protected objects per group, for a compliance overview: group_by ComplianceStatus (default) answers how many objects are in or out of… |
rubrik_list_snapshots | List the snapshots (recovery points) of one protected object, newest first by default: id, date, expiration date, on-demand or SLA… |
rubrik_list_events | List recent activity (event series: backups, archival, replication, recoveries, anomalies, threat hunts and other jobs), newest update… |
rubrik_get_event_series | Read one activity series with its individual activities (time, type, status, severity, message, progress and error info), to see why a… |
rubrik_list_task_details | List finished backup, archival, replication and recovery tasks (the Task Details report), newest end time first: object, type, location… |
rubrik_list_anomalies | List anomaly detection results (ransomware and unusual change analysis per snapshot), newest snapshot first: whether it is an anomaly… |
rubrik_list_threat_hunts | List threat hunts (scans of backups for indicators of compromise): hunt id, name, type, status, start time, creator, cluster and the scan… |
rubrik_get_threat_hunt_summary | Read the result of one threat hunt per scanned object: status, totals, and for each object its location, scan status, matched snapshots and… |
rubrik_graphql_schema_url | Return the URL of the GraphQL schema (SDL) |
rubrik_graphql_schema | Fetch the GraphQL schema: a summary, one type, a search slice or the full SDL |
rubrik_graphql_query | Run an arbitrary GraphQL query |
rubrik_graphql_mutation | Run an arbitrary GraphQL mutation |
rubrik_graphql_subscription | Run an arbitrary GraphQL subscription (if the API supports it) |
示例提示
- "我的所有 Rubrik 集群都已连接且运行正常吗?每个集群还剩多少容量和 runway?"
- "有多少对象不符合 SLA,分别是哪些?"
- "过去 24 小时内有哪些备份作业失败了,各自的原因是什么?"
- "虚拟机 sql-prod-01 在过去 7 天内有哪些恢复点?"
- "本周异常检测是否标记了任何快照?哪些威胁狩猎发现了匹配项?"
FAQ
Claude Code 和 Claude Desktop 一样工作吗? 是的,两者都指向 https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID。
下一步
这份指南对你有帮助吗?