MCP server for Google Cloud Billing integration
Project description
Google Cloud Billing MCP Server
A Model Context Protocol (MCP) server for Google Cloud Billing integration. This server provides tools for interacting with Google Cloud Billing API, enabling Claude and other AI assistants to help you analyze and understand your Google Cloud costs.
Features
- Billing Account Management: View billing accounts and their details
- Project Billing: Retrieve billing information for specific projects
- Services & SKUs: List available services and their SKUs
- Billing History: Access billing history for accounts
- Resources: Access metadata about Google Cloud Billing objects
- Prompts: Templates for common Google Cloud Billing workflows
Installation
pip install mcp-google_cloud_billing
Configuration
Obtaining API Credentials
To use this MCP server, you need to set up Google Cloud API credentials:
-
Create a Google Cloud Project (if you don't already have one):
- Go to Google Cloud Console
- Click on "New Project" and follow the instructions
-
Enable the Cloud Billing API:
- In your project, go to "APIs & Services" > "Library"
- Search for "Cloud Billing API" and enable it
-
Create a Service Account:
- Go to "IAM & Admin" > "Service Accounts"
- Click "Create Service Account"
- Give it a name and description
- Grant it the "Billing Account Viewer" role (or more permissions if needed)
- Create a JSON key file and download it
-
Set Environment Variables:
GOOGLE_CLOUD_BILLING_API_KEY: The API key or access token (can be generated from the service account JSON)GOOGLE_CLOUD_BILLING_PROJECT_ID: Your Google Cloud Project IDGOOGLE_CLOUD_BILLING_SERVICE_ACCOUNT: Path to the service account JSON file (optional)
Security Notes
- Keep your service account credentials secure and never commit them to version control
- Only grant the minimum necessary permissions to your service account
- Consider implementing credential rotation policies
- This MCP server is read-only for Google Cloud Billing to ensure safety
Usage
Starting the server directly
mcp-google_cloud_billing
Using with Claude Desktop
Add the following to your claude_desktop_config.json file:
{
"mcpServers": {
"google-cloud-billing": {
"command": "uvx",
"args": [
"mcp-google_cloud_billing"
],
"env": {
"GOOGLE_CLOUD_BILLING_API_KEY": "your_api_key_or_token",
"GOOGLE_CLOUD_BILLING_PROJECT_ID": "your-project-id",
"GOOGLE_CLOUD_BILLING_SERVICE_ACCOUNT": "/path/to/service-account.json"
}
}
}
}
Replace the environment variables with your actual Google Cloud Billing credentials.
Available Tools
- list_billing_accounts: List all billing accounts the user has access to
- get_billing_account: Get details of a specific billing account
- list_project_billing_info: Get billing information for a project
- list_billing_account_projects: List all projects linked to a billing account
- get_services_for_billing_account: List all services available for a billing account
- get_service_skus: Get SKU information for a particular service
- get_billing_history: Get billing history for a specific account
Available Resources
- google_cloud_billing://accounts: List of all Google Cloud Billing accounts
- google_cloud_billing://account/{account_id}: Details of a specific billing account
- google_cloud_billing://project/{project_id}: Billing information for a specific project
- google_cloud_billing://services/{account_id}: Services available for a billing account
Available Prompts
- analyze_billing: Template for analyzing billing data
- budget_planning: Template for planning a Google Cloud budget
- cost_optimization: Template for optimizing costs of specific Google Cloud services
Version
0.0.1
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_google_cloud_billing-0.0.3.tar.gz.
File metadata
- Download URL: mcp_google_cloud_billing-0.0.3.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8d63bcde267109585ca14185e3906054f4c9c681021193cc42091026cca4b77
|
|
| MD5 |
9b70fba60a88be6c4412ad8f459548a3
|
|
| BLAKE2b-256 |
57cebebb9365ac25e0dfc2c71c7b9cdb16ba6bd89c2332de26a5067a77a62860
|
File details
Details for the file mcp_google_cloud_billing-0.0.3-py3-none-any.whl.
File metadata
- Download URL: mcp_google_cloud_billing-0.0.3-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c0b8255e01ed7bcf67c2f1a96c178eebed8ab3cc189de00734b04c5eba78271d
|
|
| MD5 |
e57cbe87c7c3d92599e79450b9450d16
|
|
| BLAKE2b-256 |
e3c8538b279b4775b9e7cca105b75d801c212cac27c37b428ae9dbf677aecf2e
|