GCP Cost
💰 An MCP server that enables AI assistants to estimate Google Cloud costs, powered by Cloud Billing Catalog API and built with Genkit for Go
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
Maintainer
Works with
Installation
Manual Installation
npx gcp-costConfiguration
Configuration Details
claude_desktop_config.json
Performance
Response Metrics
Resource Usage
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
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 loginInstall 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-serverFind 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-serverAdd 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"
}
}
}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.
GCP Cost Alternatives — Similar Cloud Services Servers
Looking for alternatives to GCP Cost? Here are other popular cloud services servers you can use with Claude, Cursor, and VS Code.
Open WebUI
★ 138.2kUser-friendly AI Interface (Supports Ollama, OpenAI API, ...)
Anything LLM
★ 60.4kThe all-in-one AI productivity accelerator. On device and privacy first with no annoying setup or configuration.
LocalAI
★ 46.4kLocalAI is the open-source AI engine. Run any model - LLMs, vision, voice, image, video - on any hardware. No GPU required.
Nacos
★ 33.0kan easy-to-use dynamic service discovery, configuration and service management platform for building AI cloud native applications.
Xiaozhi ESP32
★ 26.7k本项目为xiaozhi-esp32提供后端服务,帮助您快速搭建ESP32设备控制服务器。Backend service for xiaozhi-esp32, helps you quickly build an ESP32 device control server.
Gateway
★ 11.8kA blazing fast AI Gateway with integrated guardrails. Route to 1,600+ LLMs, 50+ AI Guardrails with 1 fast & friendly API.
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.
Set Up GCP Cost in Your Editor
Choose your AI client for step-by-step setup instructions.
Quick Config Preview
Add this to your claude_desktop_config.json or .cursor/mcp.json
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.