google-seo-mcp
Provides tools for managing Search Console properties, sitemaps, search analytics (clicks, impressions, CTR, position), and URL inspection including index status, mobile usability, and rich results.
Enables running PageSpeed Insights analysis to obtain Core Web Vitals metrics and Lighthouse performance reports for any URL, without requiring OAuth.
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-seo-mcpInspect URL https://example.com/page"
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-seo-mcp
Full Google SEO & analytics stack for AI agents โ over one MCP server.
Search Console ยท Indexing API ยท GA4 (Admin + Data) ยท Tag Manager ยท PageSpeed Insights
A Model Context Protocol server that gives Claude (and any MCP client) hands-on control of the Google SEO and analytics stack โ list and claim properties, query search performance, submit URLs for indexing, spin up GA4 properties and data streams (i.e. install the measurement tag), wire up Tag Manager, and run PageSpeed audits. Ships with self-configuring OAuth2: no tokens at launch โ the agent walks through authorization with built-in tools.
โจ Highlights
๐ Search Console โ properties, sitemaps, search analytics, URL inspection
โก Indexing API โ push
URL_UPDATED/URL_DELETEDnotifications๐ GA4 โ create properties & web data streams (get the Measurement ID), run reports & realtime
๐ท๏ธ Tag Manager โ accounts, containers, workspaces, tags
๐ฆ PageSpeed Insights โ Core Web Vitals + Lighthouse, no OAuth needed
๐ Self-configuring OAuth2 โ loopback code capture + auto-refresh, stored locally
๐ก๏ธ Safety rails โ read-only mode and per-call confirm guards
Related MCP server: Google Analytics MCP Server
๐ฆ Installation
Run straight from npm with npx (no install needed), or build from source:
# from source
git clone https://github.com/skiddgoddamn/google-seo-mcp
cd google-seo-mcp
npm install && npm run build๐ Connect to your MCP client
Add to your MCP config (e.g. ~/.claude.json or claude_desktop_config.json):
{
"mcpServers": {
"google-seo": {
"command": "npx",
"args": ["-y", "google-seo-mcp"],
"env": { "GOOGLE_PSI_API_KEY": "" }
}
}
}{
"mcpServers": {
"google-seo": {
"command": "node",
"args": ["F:/projects/google-seo-mcp/build/index.js"]
}
}
}โ๏ธ Google Cloud setup
Create an OAuth 2.0 Client ID โ application type Desktop app
Enable these APIs for the project:
Google Search Console API ยท Indexing API ยท Analytics Admin API ยท Analytics Data API ยท Tag Manager API
On the OAuth consent screen, add your Google account as a test user (while the app is in "Testing")
Keep the Client ID and Client Secret handy
๐ Authorize (self-setup)
No tokens needed at startup โ run these tools from your agent, in order:
Step | Tool | What happens |
1 |
| Save your OAuth Client ID + Client Secret |
2 |
| Opens Google's consent screen and captures the code via a local loopback server |
โณ |
| Headless fallback โ paste the code + redirect URI manually |
โ |
| Check what's configured and whether the token is valid |
The refresh token is saved to ~/.google-seo-mcp/config.json and reused (and auto-refreshed) on every run.
โ๏ธ Environment variables
Variable | Default | Description |
|
| Block every mutating tool ( |
|
| Require a |
|
|
|
|
| Log request/response bodies to stderr (verbose) |
| โ | Append log lines to a file (default: stderr only) |
|
| Override the config directory |
| โ | PageSpeed Insights key; anonymous (rate-limited) if unset |
See .env.example for a ready-to-copy template.
๐งฐ Tool reference
๐ Auth โ g_
Tool | Description |
| Show OAuth configuration status and token validity |
| Save OAuth |
| Open the consent screen via loopback and store the refresh token |
| Manually exchange an authorization code for a refresh token |
๐ Search Console โ gsc_
Tool | Description |
| List all Search Console properties |
| Get a single property and your permission level |
| Add (claim) a property |
| Remove a property |
| List submitted sitemaps |
| Get a sitemap's status |
| Submit a sitemap |
| Delete a sitemap |
| Clicks / impressions / CTR / position by query, page, country, device, date |
| Index status, coverage, mobile usability, rich results |
โก Indexing API โ idx_
Tool | Description |
| Notify Google a URL was added/updated ( |
| Notify Google a URL was removed ( |
| Latest indexing-notification metadata for a URL |
โน๏ธ The Indexing API is officially eligible only for pages with
JobPostingorBroadcastEventstructured data. Other URLs may be ignored.
๐ GA4 โ ga4_
Tool | Description |
| List Analytics accounts |
| List properties under an account |
| Get a property |
| Create a GA4 property |
| List a property's data streams |
| Create a web data stream โ returns the Measurement ID |
| Get a data stream |
| Run a report (metrics + dimensions over a date range) |
| Run a realtime report |
๐ท๏ธ Tag Manager โ gtm_
Tool | Description |
| List GTM accounts |
| List containers under an account |
| Create a container โ returns its GTM-ID |
| List workspaces of a container |
| List tags in a workspace |
| Create a tag in a workspace |
๐ฆ PageSpeed Insights โ psi_
Tool | Description |
| Analyze a URL โ Core Web Vitals + Lighthouse (no OAuth required) |
๐ก๏ธ Safety rails
G_READONLY=trueโ blocks every tool whose name contains_add_create_update_delete_submit_set. Reads still work.G_CONFIRM=trueโ mutating tools return a preview and require a follow-up call withconfirm: true.
๐ License
MIT ยฉ skiddgoddamn
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
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/skiddgoddamn/google-seo-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server