mcp-gsc-multi-account
Provides tools for managing Google Search Console accounts, including search analytics, URL inspection, sitemap management, and indexing submission.
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.
MCP GSC Multi-Account
A Model Context Protocol (MCP) server for Google Search Console with multi-account support.
Manage multiple GSC accounts from a single MCP server. Perfect for agencies, SEO professionals, or anyone managing multiple properties.
Features
π Multi-Account - Switch between accounts dynamically
π Search Analytics - Up to 25,000 rows with regex filtering
π― Quick Wins Detection - Automatic SEO opportunity identification
π Period Comparison - Compare performance between time periods
π URL Inspection - Check indexing status of any URL
π€ URL Indexing - Submit URLs for indexing via Indexing API
πΊοΈ Sitemap Management - List and submit sitemaps
Related MCP server: mcp-server-google-search-console
Installation
npm install mcp-gsc-multi-accountOr run directly:
npx mcp-gsc-multi-accountConfiguration
Required Environment Variables
GOOGLE_CLIENT_ID=your-client-id.apps.googleusercontent.com
GOOGLE_CLIENT_SECRET=your-client-secretAccount Configuration
Option 1: Single Account (Simple)
GSC_REFRESH_TOKEN=1//your-refresh-token
GSC_EMAIL=user@gmail.com # optional, defaults to "default"Option 2: Multiple Accounts via JSON
GSC_ACCOUNTS_JSON='{"accounts":[{"id":"main","email":"main@gmail.com","refreshToken":"1//..."},{"id":"client1","email":"client@gmail.com","refreshToken":"1//..."}]}'Option 3: Multiple Accounts via File
GSC_ACCOUNTS_FILE=/path/to/accounts.jsonaccounts.json format:
{
"accounts": [
{
"id": "main",
"email": "main@gmail.com",
"refreshToken": "1//..."
},
{
"id": "client1",
"email": "client@gmail.com",
"refreshToken": "1//..."
}
]
}Option 4: Runtime Registration
Use the register_account tool to add accounts at runtime:
{
"tool": "register_account",
"arguments": {
"id": "newclient",
"email": "newclient@gmail.com",
"refreshToken": "1//..."
}
}MCP Configuration
Claude Desktop / Cursor
{
"mcpServers": {
"gsc": {
"command": "npx",
"args": ["-y", "mcp-gsc-multi-account"],
"env": {
"GOOGLE_CLIENT_ID": "your-client-id",
"GOOGLE_CLIENT_SECRET": "your-secret",
"GSC_ACCOUNTS_FILE": "/path/to/accounts.json"
}
}
}
}mcporter
{
"mcpServers": {
"gsc": {
"command": "npx -y mcp-gsc-multi-account",
"env": {
"GOOGLE_CLIENT_ID": "your-client-id",
"GOOGLE_CLIENT_SECRET": "your-secret",
"GSC_REFRESH_TOKEN": "1//your-token"
}
}
}
}Available Tools
Account Management
register_account
Register a new account at runtime.
id(required): Unique identifieremail(required): Google account emailrefreshToken(required): OAuth2 refresh token
list_accounts
List all registered accounts.
list_sites
List all sites accessible by an account.
account(optional): Account ID or email
Search Analytics
search_analytics
Get search performance data.
siteUrl(required): Site URL (e.g.,https://example.comorsc-domain:example.com)startDate(required): Start date (YYYY-MM-DD)endDate(required): End date (YYYY-MM-DD)account(optional): Account to usedimensions(optional): query, page, country, device, daterowLimit(optional): Max 25,000 rowspageFilter,queryFilter,countryFilter,deviceFilterfilterOperator: equals, contains, includingRegex, excludingRegex
detect_quick_wins
Find SEO optimization opportunities - keywords ranking 4-20 with high impressions but low CTR.
siteUrl,startDate,endDate(required)minImpressions(default: 100)maxCtr(default: 3.0%)positionRangeMin/Max(default: 4-20)limit(default: 50)
compare_periods
Compare metrics between two time periods.
siteUrl(required)currentStartDate,currentEndDate(required)previousStartDate,previousEndDate(required)dimensions(optional)
URL Management
inspect_url
Check URL indexing status.
siteUrl,inspectionUrl(required)
submit_url_for_indexing
Submit URL for Google indexing (requires Indexing API enabled).
url(required)type: URL_UPDATED (index) or URL_DELETED (remove)
Sitemaps
list_sitemaps
List sitemaps for a site.
siteUrl(required)
submit_sitemap
Submit a sitemap.
siteUrl,feedpath(required)
Getting OAuth Credentials
Go to Google Cloud Console
Create or select a project
Enable Search Console API and Indexing API
Go to Credentials β Create Credentials β OAuth 2.0 Client ID
Application type: Desktop app
Download the credentials
Getting a Refresh Token
Use the Google OAuth Playground or run:
npx -y google-search-console-mcp-server google-search-console-mcp-setupExamples
"List my GSC accounts"
"Show quick wins for https://example.com using the main account"
"Compare last 7 days vs previous 7 days for sc-domain:example.com"
"Submit https://example.com/new-article for indexing"
"Get top 100 queries for https://example.com from 2024-01-01 to 2024-01-31"License
MIT
Contributing
Contributions welcome! Please read the contributing guidelines first.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
This server cannot be deployed
Maintenance
Related MCP Connectors
Hosted Google Search Console MCP server, with each action switched on or off per account.
Hosted, read-only Google Search Console MCP: performance, comparisons, URL inspection, sitemaps.
Read-only Google Search Console MCP server for AI assistants.
Hosted MCP server for GA4, Google Ads and Search Console. Google OAuth, nothing to install.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceMCP server for Google Search Console API that enables querying search analytics, managing sites, inspecting URLs, and supporting domain delegation via service accounts.34 PyPI1MIT
- AlicenseNot gradedqualityDmaintenanceEnables interaction with Google Search Console via MCP, offering search analytics, performance summaries, URL inspection, sitemap management, and property listing for SEO workflows.262 npm1MIT
- AlicenseCqualityBmaintenanceMCP server providing 32 tools for Google Search Console and Google Analytics 4, enabling search analytics, URL inspection, indexing, and cross-platform analysis via natural language.8159 PyPI24MIT
- AlicenseAqualityDmaintenanceMCP server for Google Search Console, enabling querying search performance, listing properties, and inspecting URL indexing status from MCP-compatible clients.418 npm1MIT