GCP MCP Server
The GCP MCP Server enables AI agents to manage Google Cloud Platform resources and retrieve Google Analytics 4 (GA4) data with 33 tools across four domains:
GA4 Analytics: Discover properties, map sites, and retrieve audience overview, top pages, traffic sources, traffic trends, device/geo breakdowns, realtime users, compare all sites, and run custom reports.
GCP Projects: List, get, create, update, delete projects, and check operation status.
IAM: List, create, delete, enable/disable service accounts; manage service account keys; view, add, remove project IAM bindings; and list available roles.
Service APIs: List, enable, disable APIs; get API state; and track enable/disable operations.
Lets AI agents manage Google Cloud Platform resources including projects, IAM, service accounts, and APIs via direct GCP REST API calls.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@GCP MCP ServerList all my GCP projects"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Google Cloud & GA4 MCP Server
A full-featured Model Context Protocol (MCP) server for managing Google Cloud Platform resources and pulling Google Analytics 4 (GA4) data. This server allows AI agents (like Claude Desktop or Antigravity) to seamlessly interface with your GCP projects and web analytics.
Features
This server exposes 33 powerful tools across 4 domains:
1. 📊 Google Analytics 4 (GA4)
Pull comprehensive web analytics for configured sites without leaving your AI environment.
ga4_discover_properties: Probe GA4 property IDs to verify access and metadata.ga4_list_configured_sites: Show current site-to-property mappings.ga4_set_site_property: Save a property ID for a specific site.ga4_audience_overview: Get users, sessions, pageviews, bounce rate, and engagement.ga4_top_pages: View the highest traffic pages for a site.ga4_traffic_sources: Break down traffic by channel (organic, direct, referral, etc.).ga4_traffic_over_time: View trends over days, weeks, or months.ga4_device_breakdown: Compare desktop, mobile, and tablet usage.ga4_geo_breakdown: See traffic distributed by country and city.ga4_realtime_users: Check live active users on the site right now.ga4_compare_all_sites: Get a quick side-by-side comparison of all configured sites.ga4_run_custom_report: Run custom queries using any dimensions and metrics.
2. 🏗️ GCP Projects Management
gcp_list_projects,gcp_get_projectgcp_create_project,gcp_update_project,gcp_delete_projectgcp_get_operation
3. 🔐 Identity and Access Management (IAM)
Service Accounts:
gcp_list_service_accounts,gcp_create_service_account,gcp_delete_service_account,gcp_enable_service_account,gcp_disable_service_account,gcp_list_service_account_keysIAM Policies:
gcp_get_project_iam_policy,gcp_add_project_iam_binding,gcp_remove_project_iam_binding,gcp_list_roles
4. ⚙️ GCP Service APIs
gcp_list_apis,gcp_enable_apis,gcp_disable_api,gcp_get_api,gcp_get_api_operation
Related MCP server: GCP MCP Server
Configuration
1. Service Account Authentication
This server uses a Google Cloud Service Account for authentication.
Create a service account in GCP and download the JSON key file.
Ensure the service account has the necessary GCP IAM roles (e.g.,
Project Creator,Security Admin, etc. depending on which tools you use).To use GA4 tools, you must also add the service account email as a Viewer inside your GA4 property's Property access management settings.
Set the path to your JSON key file using the
GOOGLE_APPLICATION_CREDENTIALSenvironment variable when running the server.
2. GA4 Sites Configuration
Your site property IDs are stored in sites.config.json in the root of this project.
Currently configured for:
crossroadworks.comalliesprettylittletreats.comdooratl.church
You can update these mappings at any time via the AI using the ga4_set_site_property tool or by editing the JSON file manually.
Installation & Setup
Clone the repository:
git clone https://github.com/natekpurcella-hue/gcp-mcp.git cd gcp-mcpInstall dependencies:
npm installBuild the server:
npm run build
Connecting to an MCP Client
To use this server with an MCP client (such as Claude Desktop, Cursor, or Antigravity), add it to your client's configuration file.
Claude Desktop
For macOS/Linux, edit ~/Library/Application Support/Claude/claude_desktop_config.json (or the equivalent path for your OS):
{
"mcpServers": {
"gcp-mcp": {
"command": "node",
"args": [
"/absolute/path/to/gcp-mcp/dist/index.js"
],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "/absolute/path/to/your/service-account-key.json"
}
}
}
}Cursor
Open Cursor Settings > Features > MCP.
Click Add New MCP Server.
Choose command and enter:
node /absolute/path/to/gcp-mcp/dist/index.jsMake sure your
GOOGLE_APPLICATION_CREDENTIALSenvironment variable is available to Cursor.
Antigravity
Edit ~/.gemini/antigravity-cli/mcp.json:
{
"mcpServers": {
"gcp-mcp": {
"command": "node",
"args": [
"/absolute/path/to/gcp-mcp/dist/index.js"
],
"env": {
"GOOGLE_APPLICATION_CREDENTIALS": "/absolute/path/to/your/service-account-key.json"
}
}
}
}Restart your MCP client, and your AI assistant will instantly have access to all GCP and Analytics capabilities!
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseBqualityDmaintenanceEnables managing Google Cloud Platform resources through natural language commands in Claude Desktop, supporting comprehensive operations across compute, storage, databases, networking, monitoring, and IAM without manual credential setup.Last updated5620
- AlicenseBqualityDmaintenanceEnables AI assistants to interact with and manage Google Cloud Platform resources including Compute Engine, Cloud Run, Storage, BigQuery, and other GCP services through a standardized MCP interface.Last updated16MIT
- AlicenseCqualityDmaintenanceEnables AI assistants to interact with Google Cloud Platform resources through natural language queries. Supports querying and managing GCP services like Compute Engine, Cloud Storage, BigQuery, and more across multiple projects and regions.Last updated92,719MIT
- Flicense-qualityDmaintenanceEnables managing Google Cloud Platform infrastructure through natural language, including VM deployment, SSH key management, remote command execution, and Terraform infrastructure-as-code operations.Last updated2
Related MCP Connectors
Hosted Google Calendar MCP server for AI agents. No self-hosting or Google Cloud setup.
Compare, estimate, and deploy cloud infrastructure across AWS, GCP, and Azure for AI agents.
Connect any AI agent to 11+ social platforms: schedule, publish & track posts via hosted MCP.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/natekpurcella-hue/gcp-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server