Google Universal MCP
Provides tools for interacting with Google Analytics 4 (GA4) Data and Admin APIs, enabling running reports, listing custom dimensions and metrics, and creating conversion events.
Provides tools for interacting with Google Cloud Platform services such as Compute Engine, BigQuery, and Vertex AI, allowing management and querying of cloud resources.
Provides tools for interacting with Google Cloud Storage, enabling listing buckets and managing storage resources.
Provides tools for interacting with Google Sheets, allowing exporting report data and managing spreadsheet content.
Provides tools for interacting with Google Tag Manager, enabling listing containers, viewing tags and triggers, and creating tags within workspaces.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Google Universal MCP (was-google-universal-mcp)
A self-contained, cross-platform Model Context Protocol (MCP) server for Google's ecosystem (excluding Google Ads). Exposes 1 master tool (google_universal_api) allowing AI coding assistants (Claude Desktop, Cursor, Antigravity, VS Code, Zed, etc.) to call any Google REST API endpoint—including Google Cloud (Compute, BigQuery, Storage, Vertex AI), Google Analytics 4 (Data & Admin APIs), Google Tag Manager (GTM API), Search Console, and Google Sheets. Built by Web Analytics Solution.
Prerequisites
Required | How to install | |
Node.js 18+ | running | Mac: |
Git | letting | Mac: |
Google Cloud Project | to create OAuth Client ID | |
OAuth Credentials | for authentication | Walked through below |
Related MCP server: Google Workspace MCP Server
Quick Start — 3 Steps
Step 1 — Get OAuth Credentials
Click Create Credentials -> OAuth client ID.
Select Desktop app as the Application type.
Name it anything (e.g., "Google Universal MCP").
Click Create. A modal will display your Client ID and Client Secret. Keep this window open.
(Important) Make sure the APIs you wish to access (e.g. Google Analytics Admin/Data API, Tag Manager API, BigQuery API, Search Console API) are enabled under APIs & Services > Library.
Step 2 — Connect
Run the interactive authentication setup in your terminal:
npx -y github:mnsmasum62786/was-google-universal-mcp authPaste your Client ID and Client Secret when prompted.
Your default web browser will open for Google Sign-In.
Choose your Google account and grant the requested permissions.
The CLI will securely save the tokens locally with
0600permissions at~/.was-google-universal-mcp/config.json.
Step 3 — Add to Your AI Client
Add the following configuration to your AI client's MCP configuration JSON file:
{
"mcpServers": {
"Google Universal MCP": {
"command": "npx",
"args": ["-y", "github:mnsmasum62786/was-google-universal-mcp"]
}
}
}Configuration File Locations by Client:
Claude Desktop (Mac):
~/Library/Application Support/Claude/claude_desktop_config.jsonClaude Desktop (Windows):
%APPDATA%\Claude\claude_desktop_config.jsonCursor:
~/.cursor/mcp.json(or via Cursor Settings -> MCP)Google Antigravity / Windsurf:
~/.gemini/antigravity/mcp.jsonor~/.codeium/windsurf/mcp_config.json
What You Can Ask the AI
Since this MCP exposes a universal API tool, you can ask the AI to perform any action across Google's services:
Google Analytics 4 (GA4)
"Run a GA4 report for property
properties/123456789showing active users, sessions, and conversions over the last 30 days.""List all custom dimensions and metrics configured on my GA4 property."
"Create a new GA4 conversion event for
submit_lead_form."
Google Tag Manager (GTM)
"List all containers in my GTM account
123456.""Show all tags and triggers inside GTM container
GTM-XXXXXXworkspace4.""Create a Google Analytics 4 Event tag inside my GTM container workspace."
Google Cloud Platform (GCP)
"List all Google Cloud Storage buckets in project
my-analytics-project.""Query BigQuery dataset
marketing_analyticsto show recent purchase events.""List all Compute Engine instances in region
us-central1."
Search Console & Sheets
"List search query analytics for my site
https://example.comfor the past 7 days.""Export GA4 report rows into Google Spreadsheet
1BxiMVs0XRA5...."
All Tools (1 Total)
Category | Tools | Description |
Universal API Call |
| Invoke ANY Google REST API endpoint across Google Cloud, Google Analytics 4, Google Tag Manager, Search Console, and Sheets (excluding Google Ads). You provide the full URL, method (GET/POST/PUT/PATCH/DELETE), query params, and JSON payload. |
CLI Commands
You can run these commands directly via npx -y github:mnsmasum62786/was-google-universal-mcp <command>:
auth— Interactive prompt to connect or re-connect via Google OAuth 2.0.status— Show config file location and summary of saved credentials.logout— Delete the locally stored credentials file (~/.was-google-universal-mcp/config.json).help— Print command line usage and environment variable options.
Multi-Account Setup
You can bypass the local config file by setting environment variables in your client configuration. This allows running multiple Google profiles or accounts simultaneously:
{
"mcpServers": {
"Google Work Account": {
"command": "npx",
"args": ["-y", "github:mnsmasum62786/was-google-universal-mcp"],
"env": {
"GOOGLE_CLIENT_ID": "...",
"GOOGLE_CLIENT_SECRET": "...",
"GOOGLE_REFRESH_TOKEN": "..."
}
}
}
}Troubleshooting
1. "Google Universal MCP — not configured yet"
Cause: The MCP server was started before configuring credentials.
Fix: Open your terminal and run
npx -y github:mnsmasum62786/was-google-universal-mcp auth.
2. "Token exchange failed: HTTP 400"
Cause: The OAuth code expired, or your Client Secret was copied incorrectly.
Fix: Run
authagain and complete browser sign-in immediately.
3. "API [name] not enabled"
Cause: The specific Google service API has not been enabled in your Google Cloud project.
Fix: Go to Google Cloud Console > APIs & Services > Library, search for the API (e.g. Google Analytics Data API or Google Tag Manager API), and click Enable.
4. Windows PowerShell Execution Policy Error
If you see an error like npx.ps1 cannot be loaded because running scripts is disabled:
Fix: Run the following command in PowerShell:
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned
5. Cache Issues after Updates
To force clear the npx cache and download the latest release:
Windows (PowerShell):
Remove-Item -Recurse -Force "$env:LOCALAPPDATA\npm-cache" -ErrorAction SilentlyContinue npm cache clean --forceMac / Linux:
rm -rf ~/.npm/_npx npm cache clean --force
License
MIT License. Built by Web Analytics Solution.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
One gateway, every app: Gmail, GitHub, Notion and more. Connect once, call any tool. Managed auth.
Multi-tenant GSC data fetcher for AI agents. OAuth secured.
Google Search, Shopping, Maps and AI Mode as data, plus a stealth cloud browser, for AI agents.
The agent-native cloud: database, functions, AI, storage, computers. 53 tools. OAuth or API key.
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceTurns Google Workspace into 45 MCP tools spanning Gmail, Drive, Calendar, Docs, Sheets, Slides, Chat, Tasks and Contacts, with server-side OAuth and a single bearer token so any AI client can read, send, create, and manage workspace content without a browser or Google SDK.MIT
- AlicenseAqualityCmaintenanceExposes 38 tools that let AI agents search and read Gmail, draft and send messages, find and export Drive files, and work with Sheets, Docs, Slides, Calendar, Tasks, Forms and Contacts. It routes everything through Google's official Workspace CLI, so the user's own credential is created locally and never leaves their machine.381MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI coding assistants to invoke any Google Cloud REST API endpoint — Compute Engine, Cloud Storage, BigQuery, Vertex AI, Cloud Run and more — through one universal tool that accepts a URL, HTTP method, query parameters, and JSON body. It handles Google OAuth sign-in with locally stored credentials and supports multiple accounts via environment variables.MIT
- AlicenseBqualityCmaintenanceEnables AI assistants to search, read, send and manage Gmail, Calendar, Drive, Sheets, Google Groups, Apps Script, Cloud DNS and Tag Manager resources across multiple Google accounts. Supports both service-account domain-wide delegation and multiple OAuth profiles so tools can act as different users or mailboxes.36MIT