NK

nozomi-koborinai/gcp-cost-mcp-server

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

23 stars 2 forks Качество 79 Тренд 14MIT

Сервер MCP, который позволяет помощникам ИИ оценивать затраты Google Cloud, основанный на API Cloud Billing Catalog и построенный с помощью Genkit for Go

Обзор

Это неофициальный проект, и он не связан, не одобрен и не поддерживается Google или командой Genkit. Сервер MCP (Model Context Protocol) для оценки эксплуатационных расходов Google Cloud. Вместо того, чтобы вручную использовать Google Cloud Pricing Calculator, вы можете получить оценку стоимости GCP непосредственно от помощников ИИ, таких как Claude Desktop, Gemini CLI или Cursor. Каждый инструмент есть. Помощники ИИ самостоятельно решают, какие инструменты вызывать и в каком порядке на основе контекста: Показать поток данных - выход одного инструмента подает вход другого. get estimation guide и estimate cost: они внутренне решают свои собственные зависимости, сокращая поездки туда и обратно.

Обзор (машинный перевод)

Примечание: Это неофициальный проект, который не поддерживается и не поддерживается Google или командой Genkit.

Сервер MCP (Model Context Protocol) для оценки эксплуатационных расходов Google Cloud.

Вместо того, чтобы вручную использовать Google Cloud Pricing Calculator, вы можете получить оценку стоимости GCP непосредственно от помощников ИИ, таких как Claude Desktop, Gemini CLI или Cursor.

Особенности

Доступные инструменты

| Инструмент | Описание [скрыто] [скрыто] [скрыто] [скрыто] get_estimation_guide Начать здесь! Динамически генерирует руководства по оценке из анализа SKU для любой службы GCP. | classify_resource_cost | Классифицирует поведение выставления счетов за ресурсы Terraform и оценивает исходный уровень авторизованного счета | | list_services | Список всех доступных сервисов Google Cloud с их идентификаторами | | list_skus | Список SKUs (размещаемых статей) для конкретной услуги | get_sku_price | Получает информацию о ценах для конкретного SKU | | estimate_cost | Расчет стоимости на основе SKU и суммы использования, ** с автоматическим свободным вычетом уровня **

###Инструментальные отношения

Каждый инструмент является **независимым и не имеющим гражданства **. Помощники ИИ самостоятельно решают, какие инструменты вызывать и в каком порядке на основе контекста:

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Показан фрагмент оригинального README. Открыть оригинал.

GCP Cost MCP Server

Note: This is an unofficial project and is not affiliated with, endorsed by, or supported by Google or the Genkit team.

An MCP (Model Context Protocol) server for estimating Google Cloud running costs.

Instead of manually using the Google Cloud Pricing Calculator, you can get GCP cost estimates directly from AI assistants like Claude Desktop, Gemini CLI, or Cursor.

Features

Available Tools

Tool Description
get_estimation_guide Start here! Dynamically generates estimation guides from SKU analysis for any GCP service
classify_resource_cost Classifies Terraform resource billing behavior and estimates an authorized-count baseline
list_services Lists all available Google Cloud services with their IDs
list_skus Lists SKUs (billable items) for a specific service
get_sku_price Gets pricing details for a specific SKU
estimate_cost Calculates cost based on SKU and usage amount, with automatic free tier deduction

Tool Relationships

Each tool is independent and stateless. AI assistants autonomously decide which tools to call and in what order based on context:

graph TB
    guide["get_estimation_guide─────────────────IN: service_nameOUT: required params, pricingfactors, free tier info, tips─────────────────Internally resolvesservice & SKU lookup"]

    classify["classify_resource_cost─────────────────IN: Terraform resource type,resource attributesOUT: billing trigger, SKU,warnings, monthly estimate"]

    services["list_services─────────────────IN: name filter (opt)OUT: service_id, display_name"]

    skus["list_skus─────────────────IN: service_id, region, keywordOUT: sku_id, display_name,categories, regions"]

    price["get_sku_price─────────────────IN: sku_id, currencyOUT: price/unit, pricing tiers"]

    cost["estimate_cost─────────────────IN: sku_id, usage_amountOUT: estimated cost withautomatic free tier deduction─────────────────Internally resolves pricing"]

    services -- "service_id" --> skus
    skus -- "sku_id" --> price
    skus -- "sku_id" --> cost

Solid arrows show data flow — one tool’s output feeds another’s input. get_estimation_guide and estimate_cost are self-contained: they internally resolve their own dependencies, reducing round-trips.

Use Case How AI Uses the Tools
Quick estimate get_estimation_guide → gather user requirements → estimate_cost
Multi-service Multiple get_estimation_guide + estimate_cost calls in parallel
Explore pricing list_services → list_skus → get_sku_price
Открыть полный README на GitHub

Установка

npx @modelcontextprotocol/inspector ./gcp-cost-mcp-server
Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

{ "mcpServers": { "gcp-cost": { "command": "/opt/homebrew/bin/gcp-cost-mcp-server" } } }