Google Webmaster MCP
Allows running custom reports with dimensions and metrics, listing accessible accounts and properties, and retrieving metadata for available dimensions and metrics in GA4.
Provides access to search analytics data (clicks, impressions, CTR, position), URL inspection for indexing status and mobile usability, sitemap management, and site property listing.
Enables management of tags, triggers, and variables; supports tag creation (HTML, GA4 Event, GA4 Config), workspace versioning, container publishing, and validation of common issues before deployment.
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., "@Google Webmaster MCPcheck indexing status for https://example.com/blog-post"
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 Webmaster MCP
Local MCP server and CLI toolkit for Google Search Console, Google Tag Manager, GA4, sitemap, and SEO audit workflows.
google-webmaster-mcp is intended to be project-agnostic: bring your own Google OAuth credentials, Search Console property, GTM container, and GA4 property. It does not depend on Ehukai Media websites or services.
What It Does
Runs an MCP stdio server with tools for GSC, GTM, and GA4.
Provides global CLI commands for audits, sitemap submission, GTM validation, GA4 setup, and GTM publishing.
Includes
seo-auditfor bounded technical SEO checks against a URL.Stores OAuth tokens in the user config directory at
~/.config/google-webmaster-mcp/.
Related MCP server: SEO Analytics MCP Server
Install
From a Cold Clone
git clone https://github.com/ehukaimedia/google-webmaster-mcp.git
cd google-webmaster-mcp
npm ci
npm run build
npm install -g .From npm
After the first public npm release:
npm install -g google-webmaster-mcpConfigure Authentication
Create an OAuth Desktop App in Google Cloud, then provide the client ID and secret through your environment or a local .env file:
GOOGLE_CLIENT_ID=your_client_id
GOOGLE_CLIENT_SECRET=your_client_secretAuthenticate once per Google account/profile:
google-webmaster-mcp-auth
google-webmaster-mcp-auth --profile=client_aTo use a saved profile for CLI or MCP runs:
export GOOGLE_TOKEN_PROFILE=client_aToken files are stored under ~/.config/google-webmaster-mcp/ with private file permissions.
Configure Project Context
Run CLI commands from a project directory with these environment variables available:
GTM_ID=GTM-XXXXXXX
GSC_SITE=sc-domain:example.com
GA4_PROPERTY_ID=123456789
GA4_MID=G-XXXXXXXXXX
GTM_WORKSPACE_ID=
GOOGLE_WEBMASTER_MCP_API_KEY=GA4_PROPERTY_ID is the numeric GA4 property ID. GA4_MID is the G- measurement ID. GTM_WORKSPACE_ID is optional unless the container has multiple workspaces.
MCP Client Config
Use npx for portable MCP client registration:
{
"mcpServers": {
"google-webmaster": {
"command": "npx",
"args": ["-y", "google-webmaster-mcp"]
}
}
}The MCP server starts over stdio. Use google-webmaster-mcp --help or google-webmaster-mcp --version for CLI metadata; run without flags only from an MCP-compatible client.
AI Assistant Skill
This repo includes an agnostic Codex-style skill for assistants that operate Google Webmaster MCP:
skills/google-webmaster-mcp/SKILL.mdThe skill documents safe authentication, read-only checks, GTM rate limits, and confirmation points without relying on any Ehukai Media-specific project.
CLI Commands
google-webmaster-audit [GTM_ID] [GSC_SITE] [GA4_PROPERTY_ID]
google-webmaster-submit-sitemap [GSC_SITE] [SITEMAP_URL]
google-webmaster-gtm-validate [GTM_ID]
google-webmaster-setup-ga4 [GTM_ID] [GA4_MID]
google-webmaster-gtm-publish [GTM_ID] [VERSION_NOTES]
seo-audit <url> [--ai] [--pagespeed]
seo-audit --file urls.txt [--ai] [--pagespeed]
seo-audit-smart "audit localhost with AI"All public commands support --help and --version.
GTM Rate-Limit Safety
The GTM API has strict per-user quotas. Wait at least 3 minutes between GTM commands such as validate, setup, and publish. After a 429, stop and wait 3-5 minutes before one retry.
Safe sequence:
google-webmaster-audit
# wait 3 minutes
google-webmaster-gtm-validate
# wait 3 minutes
google-webmaster-setup-ga4
# wait 3 minutes
google-webmaster-gtm-validate
# wait 3 minutes
google-webmaster-gtm-publishDevelopment
npm ci
npm run build
npm test
npm run audit:deps
npm run secrets:check
npm run pack:check
npm run smoke:tarballFull local release gate:
npm run ciSecurity
Do not commit OAuth client secrets, .env files, or token files. See SECURITY.md for vulnerability reporting.
License
ISC
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- 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/ehukaimedia/google-webmaster-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server