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.
Click on "Deploy 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., "@Google Universal MCPShow me all Google Cloud Storage buckets in project my-analytics-project."
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 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-seo-mcp
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.
This server cannot be deployed
Maintenance
Related MCP Connectors
Universal AI API Orchestrator — 1,554 tools, 96 services. One install.
Remote streamable-HTTP MCP server running on a single Cloudflare Worker. Your assistant gets live Airbnb, Amazon, Booking.com, Google Flights, Maps and Reddit data, social search on X, Instagram and TikTok, the Meta Ad Library, and image/video generation without any keys. Connect your own accounts to let it send WhatsApp or Telegram messages, work an IMAP inbox, manage Meta Ads campaigns and publish to X and LinkedIn. OAuth 2.1 with PKCE; stored credentials are AES-256-GCM encrypted.
The OpenRouter for tools. One MCP connection gives any AI agent 254 hosted tools, pay per call.
Verified, pay-per-use API tools for AI agents through one authenticated connection.
Related MCP Servers
- AlicenseBqualityDmaintenanceConnects AI assistants to Google Workspace (Gmail, Drive, Docs, Sheets, Slides, Calendar, Tasks, Forms, Chat, Contacts) through your own OAuth app, providing around 120 tools for managing email, files, calendar, and more.100MIT
- AlicenseBqualityCmaintenanceProvides AI agents with hands-on control of Google SEO and analytics tools including Search Console, GA4, Tag Manager, Indexing API, and PageSpeed Insights, with self-configuring OAuth2.3312 npmMIT
- AlicenseNot gradedqualityBmaintenanceTurns 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
- AlicenseAqualityBmaintenanceExposes 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.3858 npm1MIT