cloud-tools

io.github.munhq由 GitHub 账号 munhq 发布v0.2.0更新于 Oct 27, 2026

Multi-cloud cost, inventory and waste analysis over MCP: AWS, GCP, Cloudflare and OVH.

已验证STDIO仅桌面云端与基础设施金融

概览

AI 生成的概览

只读的 MCP 服务器,让助手查询 AWS、GCP、Cloudflare 和 OVH 的云支出、资源清单与浪费情况。

可以做什么
  • 检查服务器能访问哪些云,以及缺少哪些配置
  • 按云查询并比较成本,GCP 成本来自 BigQuery 账单导出
  • 列出 GCP、Cloudflare 和 OVH 的资源清单
  • 报告 AWS 和 GCP 的浪费,如闲置或规格过大的实例、未挂载资源和未使用的承诺用量
  • 列出承诺用量与 GCP 建议,并汇总所有可访问云的整体情况
适用场景
适合让助手审计多云支出、找出浪费资源,同时不必在对话中交出凭据。由于浪费分析仅支持 AWS 和 GCP,主要适用于这两类账户。
运行要求
通过 npx 以 stdio 在本地运行,也可使用预编译二进制或容器。凭据来自本机环境变量:AWS 密钥或配置文件、GCP 应用默认凭据、CLOUDFLARE_API_TOKEN 与 CLOUDFLARE_ACCOUNT_ID,以及 OVH_APPLICATION_KEY、OVH_APPLICATION_SECRET 和 OVH_CONSUMER_KEY。GCP 成本需要 CLOUD_TOOLS_GCP_PROJECTS 和 CLOUD_TOOLS_GCP_BILLING_TABLE。需要能访问各云厂商 API。
安装前请注意
README 说明 npm 包尚未发布,npx 安装要等后续版本,目前只能从源码构建。服务器会读取环境中的真实云凭据,应仅授予只读权限。浪费总量为零可能意味着覆盖不完整,需查看 coverage 字段和 errors 列表。错误信息可能引用云厂商响应,包含项目、账户或资源名称。

安装

在 SourceWeft 中

  1. 打开 控制台中的 cloud-tools,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

[cloud-tools]

[MCP Registry] [Smithery] [Glama]

[Install in Cursor] [Install in VS Code]

Multi-cloud cost, inventory and waste analysis in Rust — exposed as an MCP server so an AI agent can query spend and waste directly, and as an HTTP API for everything else.

It reports spend and waste: idle instances, oversized nodes, previous-generation hardware, unattached resources, and commitments you are not using.

Eight tools, one shape

Every tool takes cloud and nothing else it does not need. Credentials never appear in a tool call — the server reads them from its own environment, so the agent never handles a secret and never needs to be told one.

json
{ "cloud": "aws" }{ "cloud": "gcp" }

Start with check_access. It takes no arguments, contacts no cloud, and reports which clouds this server can reach and what is missing for the ones it cannot.

ToolAWSGCPCloudflareOVH
check_accessreports configuration for all four
get_costsyesneeds a billing tableyesyes
compare_costsyesneeds a billing table——
get_inventory—yesyesyes
get_wasteyesyes——
get_commitmentsyesyes——
get_recommendations—yes——
get_cross_cloud_summaryevery cloud the server can reach

A dash is not a silent empty result. The tool answers, for example, waste analysis is not implemented for ovh; supported: aws, gcp, so an agent cannot read a gap as a clean bill.

Reading a zero correctly

get_waste and get_inventory return a coverage field and an errors list. A zero total means one of two entirely different things:

coveragemeaning
completeNothing is wasted.
PARTIAL — N API call(s) failed…Part of the account could not be read.

A partial result is not a clean bill of health.

Configuring the server

Credentials are read from the environment of the machine running cloud-tools. Nothing is stored, and every call is read-only.

AWS

Resolved in this order, first match winning:

  1. AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY
  2. ~/.aws/credentials, profile from AWS_PROFILE, otherwise [default]
  3. An ECS task role
  4. An EC2 instance role

An SSO-only profile is not read directly. Export it first: aws configure export-credentials --profile <name> --format env.

To scan a different account, pass a role to assume. A role ARN is not a secret, so it stays an argument:

json
{ "cloud": "aws", "target": { "role_arn": "arn:aws:iam::…:role/ReadOnly" } }

CLOUD_TOOLS_AWS_ROLE_ARN and CLOUD_TOOLS_AWS_EXTERNAL_ID set a default for that, if every call should assume the same role.

get_waste reads EC2 instances, volumes, snapshots, AMIs, Elastic IPs, key pairs and reserved instances; RDS; S3; Lambda; DynamoDB; ECS; ElastiCache; load balancers; NAT gateways; CloudWatch log groups with no retention; and Compute Optimizer. Idle and oversized come from CloudWatch CPU series, so they are measured rather than guessed.

GCP

Application Default Credentials — gcloud auth application-default login is enough — or GOOGLE_APPLICATION_CREDENTIALS pointing at a service-account file.

VariablePurpose
CLOUD_TOOLS_GCP_PROJECTSComma-separated project IDs to query
CLOUD_TOOLS_GCP_BILLING_TABLEBigQuery billing export, project.dataset.table

Projects can also be chosen per call with target.project_ids, which is how one agent scans several.

billing_table matters. Google publishes no per-service spend API, so real costs come from the BigQuery billing export. Without it, get_costs falls back to the Budgets API and labels the result "source": "budgets" with a note saying these are budget amounts, not spend. compare_costs requires it outright.

Cloudflare

CLOUDFLARE_API_TOKEN     a token with read access to account resourcesCLOUDFLARE_ACCOUNT_ID

OVH

OVH_APPLICATION_KEYOVH_APPLICATION_SECRETOVH_CONSUMER_KEYOVH_ENDPOINT             ovh-eu (default), ovh-us or ovh-ca

Install

Not released yet. The newest tag is v0.1.0, which shipped .tar.gz archives under the old asset names, and @munhq/cloud-tools is not on npm. The three commands below start working the moment v0.2.0 is tagged. Until then, build from source: cargo build --release.

As an MCP server

bash
claude mcp add cloud-tools -- npx -y @munhq/cloud-tools

Anything that reads a JSON config — Claude Desktop, Cursor, Windsurf, Zed, Cline:

json
{ "mcpServers": { "cloud-tools": { "command": "npx", "args": ["-y", "@munhq/cloud-tools"] } } }

The npm package is a small wrapper, because the server is a compiled binary and not JavaScript. On install it resolves the release asset for your platform, verifies it against the published SHA256SUMS, caches it under ~/.cache/cloud-tools/bin/ and executes it.

As a binary

Prebuilt binaries for Linux, macOS and Windows, x86_64 and arm64, are attached to each release. The script below downloads the one for your machine and checks it against SHA256SUMS:

bash
curl -sSL https://raw.githubusercontent.com/munhq/cloud-tools/main/install.sh | bash

Or take a single asset directly:

bash
curl -fsSLO https://github.com/munhq/cloud-tools/releases/latest/download/cloud-tools-x86_64-linuxchmod +x cloud-tools-x86_64-linux

As a container

bash
docker run -i --rm \  -e AWS_ACCESS_KEY_ID -e AWS_SECRET_ACCESS_KEY -e AWS_REGION \  munhq/cloud-tools

Running it

Built as a library (cloud_tools) with an optional binary. Two feature flags, both on by default:

  • mcp — MCP server over stdio and streamable HTTP, via rmcp
  • http — HTTP API via axum
bash
cargo build --release./target/release/cloud-tools            # MCP server on stdio

As an MCP server it plugs into any MCP-capable agent. The agent calls the tools above directly and reasons over the results.

To embed it instead, depend on the library and turn the binary features off:

toml
cloud-tools = { git = "https://github.com/munhq/cloud-tools", default-features = false }

Status

Working and used against live AWS, GCP, Cloudflare and OVH accounts. Waste analysis exists for AWS and GCP only — Cloudflare and OVH have none at all, not merely fewer rules, and get_waste says so rather than returning an empty list. AWS has no inventory tool yet, though the listing calls behind one already exist. Contributions adding provider coverage are welcome.

Privacy Policy

cloud-tools collects nothing. There is no telemetry, no analytics and no phone-home of any kind — verified by the fact that the only hosts in the source are cloud provider APIs plus github.com, which the npm wrapper uses to download the binary for your platform.

What is collected. Nothing. No account, no sign-up, no identifier.

What is processed, and where. Credentials you pass are used to sign requests to your own cloud provider and are held in memory for the life of that call. The server runs on your machine, so nothing is sent to munhq or to any third party. The responses go back to the MCP client that asked for them and nowhere else.

Storage and retention. Nothing is written to disk and nothing is retained. The one exception is the npm wrapper, which caches the downloaded binary under ~/.cache/cloud-tools/bin/ so it is not re-fetched on every run. That cache holds a program, never your data or your credentials.

Logging. Diagnostics go to stderr, which your MCP client captures. Credentials are never logged. Error messages quote the provider's own response, which may name a project, an account id or a resource — the same information the tool was asked to report.

Third-party sharing. None. The only network destinations are the cloud APIs of the providers whose credentials you supply: AWS (*.amazonaws.com), Google Cloud (*.googleapis.com), Cloudflare (api.cloudflare.com) and OVH (*.api.ovh.com, api.us.ovhcloud.com).

Permissions. Read-only is sufficient for every tool. All eight declare readOnlyHint: true, and nothing in this server creates, modifies or deletes a cloud resource.

Contact. [email protected]. The canonical version of this policy is at https://munhq.com/privacy/cloud-tools.

Licence

Apache-2.0. See LICENSE.

来源:README.md,提交 7e564e1

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.2.0最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分