Google Search Console MCP Server
MCP server for querying Google Search Console data - rankings, clicks, impressions for websites.
Setup
-
Install dependencies:
npm install -
Configure credentials:
Copy
.env.exampleto.envand fill in your values:cp .env.example .envYou'll need:
GSC_SITE_URL: Your site URL in GSC (e.g.,sc-domain:bwengr.com)GOOGLE_CLIENT_ID: OAuth2 client ID from Google Cloud ConsoleGOOGLE_CLIENT_SECRET: OAuth2 client secret
-
Get OAuth2 credentials:
- Go to Google Cloud Console
- Create a project or select existing
- Enable "Search Console API"
- Create OAuth2 credentials (Desktop app or Web application)
- Add
http://localhost:3000/oauth/callbackas redirect URI - Copy Client ID and Secret to
.env
Usage
npm start
Available MCP Tools
getTopQueries- Get top search queries by clicksgetPagePerformance- Get performance data for specific pagesgetSiteSummary- Get overall site search performancegetRankingChanges- Find pages with significant ranking changes
Credentials
NEVER commit .env to GitHub. Credentials are stored locally only.