Token导航 LogoToken导航TokenDH.com
Spotinst MCP Server logo
运维云端stdio官方级别未说明来源级核验

Spotinst MCP Server

MCP Server

一个用于管理Spotinst平台上AWS和Azure Ocean集群的多账户跨云工具集,支持集群监控、成本分析和自动化操作。

工具数

34

提示词数

0

GitHub Stars

0

资源数

0
成本优化PythonClaudeClaude

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

arnstarn

提供方

arnstarn

最后核验

2026/5/17 20:21

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

pip install mcp-server-spotinst

详细介绍

mcp服务器spotins

](https://pypi.org/project/mcp-server-spotinst/) ![CI](https://github.com/arnstarn/mcp-server-spotinst/actions/workflows/ci.yml) ![License: MIT](https://opensource.org/licenses/MIT) ![Python 3.10+](https://www.python.org/downloads/)

MCP服务器 Spot.io(Spotinst) API支持具有多帐户访问权限的AWS和Azure Ocean集群。

工具(34)

跨账户

工具说明
list_accounts列出当前令牌可访问的所有Spotinst帐户
list_all_clusters列出所有帐户和云(AWS+Azure)上的所有集群

AWS海洋

工具说明
list_clusters列出AWS Ocean K8s集群
get_cluster获取AWS Ocean集群详细信息
list_vngs列出AWS虚拟节点组(启动规范)
get_vng获取AWS VNG详细信息
list_elastigroups列出所有弹性组
get_elastigroup获取Elastigroup详细信息
get_allowed_instance_types获取允许的EC2实例类型
get_right_sizing获取正确的资源规模建议(仅限AWS)

蓝天碧海

工具说明
list_clusters_azure列出Azure Ocean集群
get_cluster_azure获取Azure Ocean群集详细信息
list_vngs_azure列出Azure虚拟节点组
get_vng_azure获取Azure VNG详细信息

两云(通过 cloud="azure" 适用于Azure)

工具说明
get_cluster_nodes列出Ocean集群中的节点
get_cluster_costs按命名空间或资源获取聚合成本明细
list_rolls列出部署卷
get_roll获取卷详细信息
get_cluster_log获取缩放和活动日志事件

状态节点(AWS托管实例)

工具说明
list_stateful_nodes列出所有有状态节点(托管实例)
get_stateful_node获取状态节点详细信息

日程安排和健康

工具说明
get_cluster_scheduling获取调度和自动缩放器配置
get_cluster_health复合健康检查:节点、最近的错误、活动滚动

成本分析

工具说明
get_cost_trending每周(或自定义期间)成本比较
get_savings_summary30天成本和节省汇总

标签筛选

工具说明
filter_clusters_by_tag按标签键/值过滤集群
filter_vngs_by_tag按标签键/值过滤VNG

导出(YAML)

工具说明
export_cluster_yaml将集群配置导出为用于GitOps/backup的YAML
export_vng_yaml将VNG配置导出为用于GitOps/backup的YAML

写入操作(必需 confirm=true)

工具说明
remove_instances推荐 --使用命名策略删除实例(见下文)
initiate_rollOcean集群中节点的滚动重启
detach_instances从AWS Ocean集群中分离实例,并可选择终止实例
update_vng更新AWS VNG配置
update_vng_azure更新Azure VNG配置

所有工具都接受可选 account_id 参数来查询任何帐户。

实例删除策略

remove_instances 该工具为删除实例提供了一个安全的、基于意图的接口。您不需要记住要设置哪些API标志,而是选择一种策略:

策略发生了什么用例
drain_and_replace优雅地排空吊舱(尊重PDB),终止,海洋更换。 默认且最安全。更换生产中有问题的节点
replace立即终止,海洋自动更换。没有优雅的排水。仅限AWS。不需要排水时快速更换
remove_permanently终止+减少集群容量。无需更换。仅限AWS。缩小集群规模

confirm=false (默认),该工具显示详细的执行计划,以便您在继续之前进行查看:

remove_instances("o-abc123", "i-abc123", strategy="drain_and_replace")

→ SAFETY: Action NOT executed. Set confirm=true to proceed.
  DRAIN AND REPLACE 1 instance(s) in cluster o-abc123:
    Instances: ['i-abc123']
    Method: Rolling restart (20% per batch)
    - Pods will be gracefully drained (PDBs respected)
    - Instances will be terminated after drain
    - Ocean will automatically launch replacements

设置

环境变量

export SPOTINST_TOKEN="your-spotinst-api-token"
export SPOTINST_ACCOUNT_ID="act-xxxxxxxx"

使用pip安装

pip install mcp-server-spotinst

使用uvx安装(无需安装)

uvx mcp-server-spotinst

Claude代码配置

添加 ~/.mcp.json:

{
  "mcpServers": {
    "spotinst": {
      "command": "uvx",
      "args": ["mcp-server-spotinst"],
      "env": {
        "SPOTINST_TOKEN": "your-token",
        "SPOTINST_ACCOUNT_ID": "act-xxxxxxxx"
      }
    }
  }
}

码头工人

docker build -t mcp-server-spotinst .
docker run -e SPOTINST_TOKEN=your-token -e SPOTINST_ACCOUNT_ID=act-xxxxxxxx mcp-server-spotinst

独立运行

mcp-server-spotinst

多账户使用

您的个人API令牌可以访问多个Spotinst帐户。使用 list_accounts 查看所有可用帐户,然后传递 account_id 任何工具:

list_clusters(account_id="act-be5e7ffe")
get_cluster_nodes("o-390ef886", account_id="act-9785011e", cloud="azure")

或使用 list_all_clusters 用于所有产品的单次通话库存。

API 参考

使用 Spot.io REST APIhttps://api.spotinst.io.

目录标签

目录标签

成本优化PythonClaude云原生工具本地部署Kubernetes运维基础设施即代码多云管理

支持客户端

Claude

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

token

部署方式(deploymentType,部署类型)

remote-capable

工具数量(toolCount,工具数)

34

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdiotokenremote-capable

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP