An MCP server that enables AI assistants to estimate Google Cloud costs, powered by Cloud Billing Catalog API and built with Python.
Inspired from https://github.com/nozomi-koborinai/gcp-cost-mcp-server who built this is GoLang
This project is a Python port of the gcp-cost-mcp-server. It provides tools to interact with Google Cloud's pricing data and estimate costs, including automatic free tier deductions.
mcp_server/: Core application logic.pricing/: Google Cloud Billing API client.freetier/: Free tier information retrieval and scraping.models/: Data structures and Pydantic models.utils/: Common utilities and auth helpers.
tests/: Unit and integration tests.
- Install
uvif you haven't already. - Clone this repository.
- Run
uv syncto install dependencies. - Set up Application Default Credentials:
gcloud auth application-default login
Run the MCP server (stdio by default):
uv run python -m mcp_server.mainRun in SSE mode (for Cloud Run):
uv run python -m mcp_server.main sse