GCP Cost

v1.0.0Cloud Servicesstable

💰 An MCP server that enables AI assistants to estimate Google Cloud costs, powered by Cloud Billing Catalog API and built with Genkit for Go

cloud-billinggcpgenkitgolanggoogle-cloud
Share:
17
Stars
0
Downloads
0
Weekly
0/5

What is GCP Cost?

GCP Cost is a Model Context Protocol (MCP) server that allows AI assistants like Claude, Cursor, and VS Code to 💰 an mcp server that enables ai assistants to estimate google cloud costs, powered by cloud billing catalog api and built with genkit for go

💰 An MCP server that enables AI assistants to estimate Google Cloud costs, powered by Cloud Billing Catalog API and built with Genkit for Go

This server falls under the Cloud Services category on MCPgee, the world's largest MCP server directory with 33,000+ servers.

Features

  • 💰 An MCP server that enables AI assistants to estimate Googl

Use Cases

Google Cloud cost estimation
Cloud Billing Catalog integration
LicenseMIT
Languagego
Versionv1.0.0
UpdatedMay 18, 2026
Statushealthy
Maintenanceactive

Works with

ClaudeOpenAIwindowsmacoslinux

Installation

Manual Installation

npx gcp-cost

Configuration

Configuration Details

Config File

claude_desktop_config.json

Performance

Response Metrics

Response Time< 200ms
ThroughputMedium

Resource Usage

Memory UsageLow
CPU UsageLow

How to Set Up and Use GCP Cost

GCP Cost MCP Server connects AI assistants to the Google Cloud Billing Catalog API, enabling real-time cost estimation for any Google Cloud service directly from a conversation. Built with Genkit for Go, it exposes five tools for listing GCP services, browsing SKUs, retrieving per-SKU pricing, estimating costs with automatic free-tier deduction, and generating dynamic estimation guides — so developers and architects can answer 'how much will this cost?' without leaving their AI assistant.

Prerequisites

  • Go 1.21 or higher (for building from source), or Homebrew for the pre-built binary install
  • Google Cloud account with billing enabled
  • Google Cloud authentication configured via 'gcloud auth application-default login' or a service account JSON file
  • An MCP-compatible AI client such as Claude Desktop or Cursor
1

Authenticate with Google Cloud

Run the application default login flow so the server can access the Cloud Billing Catalog API without additional credentials.

gcloud auth application-default login
2

Install the binary via Homebrew (recommended on macOS)

The easiest installation method on macOS is Homebrew. This installs a pre-built binary and adds it to your PATH.

brew tap nozomi-koborinai/tap
brew install gcp-cost-mcp-server
3

Find the binary path

You need the full binary path for the Claude Desktop configuration. Run 'which' to get it after installing.

which gcp-cost-mcp-server
# Typical output: /opt/homebrew/bin/gcp-cost-mcp-server
4

Add the server to Claude Desktop configuration

Edit your Claude Desktop config file and add the gcp-cost server block, pointing to the installed binary. No API key environment variable is needed when using application default credentials.

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

Restart Claude Desktop and test a cost query

Restart Claude Desktop. Ask Claude how much a specific Google Cloud service would cost to verify the tools are working and billing catalog data is being fetched.

GCP Cost Examples

Client configuration (Claude Desktop with service account)

Claude Desktop configuration using a service account JSON file for environments where application default credentials are not available.

{
  "mcpServers": {
    "gcp-cost": {
      "command": "/opt/homebrew/bin/gcp-cost-mcp-server",
      "env": {
        "GOOGLE_APPLICATION_CREDENTIALS": "/path/to/service-account.json"
      }
    }
  }
}

Prompts to try

Cost estimation prompts that use the five GCP billing tools to retrieve real pricing from the Google Cloud Billing Catalog API.

- "How much would Cloud Run cost for 2 instances running 24/7?"
- "What is the service ID for Compute Engine?"
- "List available SKUs for Cloud Storage in the us-central1 region"
- "Get the price for the Vertex AI online prediction SKU"
- "Estimate the monthly cost for my architecture based on this diagram"

Troubleshooting GCP Cost

Server fails with 'Application Default Credentials not found'

Run 'gcloud auth application-default login' to create ADC credentials. Alternatively, set the GOOGLE_APPLICATION_CREDENTIALS environment variable in your config to the path of a service account JSON file.

Billing Catalog API returns 403 permission denied

The authenticated account or service account needs the 'Cloud Billing Viewer' IAM role (roles/billing.viewer) at the organization or project level. Grant this role in the Google Cloud Console under IAM & Admin.

brew install fails on Apple Silicon Mac

Ensure Homebrew is installed for Apple Silicon (/opt/homebrew/bin/brew). If the tap is not found, run 'brew update' first. For x86 Homebrew installations, download the pre-built binary directly from the GitHub Releases page instead.

Frequently Asked Questions about GCP Cost

What is GCP Cost?

GCP Cost is a Model Context Protocol (MCP) server that 💰 an mcp server that enables ai assistants to estimate google cloud costs, powered by cloud billing catalog api and built with genkit for go It connects AI assistants to external tools and data sources through a standardized interface.

How do I install GCP Cost?

Follow the installation instructions on the GCP Cost GitHub repository. Clone the repo, install dependencies, and add the server config to your AI client.

Which AI clients work with GCP Cost?

GCP Cost works with all major MCP-compatible AI clients including Claude Desktop, Claude Code, Cursor, VS Code (GitHub Copilot), Windsurf, and Cline.

Is GCP Cost free to use?

Yes, GCP Cost is open source and available under the MIT license. You can use it freely in both personal and commercial projects.

Browse More Cloud Services MCP Servers

Explore all cloud services servers available in the MCPgee directory. Each server includes setup guides for Claude, Cursor, and VS Code.

Quick Config Preview

{ "mcpServers": { "gcp-cost": { "command": "npx", "args": ["-y", "gcp-cost"] } } }

Add this to your claude_desktop_config.json or .cursor/mcp.json

Read the full setup guide →

Ready to use GCP Cost?

Browse our complete directory of 33,000+ MCP servers, read setup guides for your editor, and start building with the Model Context Protocol.

33,000+ ServersFree & Open SourceStep-by-Step Guides