Google Search Console MCP Server
Enables querying Google Search Console data including rankings, clicks, and impressions for websites. Provides tools for analyzing search performance, top queries, page metrics, and ranking changes.
README
Google Search Console MCP Server
Query Google Search Console data from any AI assistant that supports the MCP protocol - rankings, clicks, impressions, and page-level performance.
Prerequisites
- Node.js 18+
- A Google account with access to Google Search Console
Setup
1. Install dependencies
npm install
2. Create a Google Cloud project
- Go to Google Cloud Console
- Create a new project (or select an existing one)
- Enable the Search Console API:
- Go to APIs & Services > Library
- Search for "Search Console API"
- Click Enable
3. Create OAuth2 credentials
- Go to APIs & Services > Credentials
- Click Create Credentials > OAuth client ID
- Application type: Desktop app (or Web application)
- Name it whatever you like
- Copy the Client ID and Client Secret
4. Configure your .env file
cp .env.example .env
Fill in the values:
| Variable | Where to find it |
|---|---|
GSC_SITE_URL |
GSC Settings > Association > Sc-domain (e.g. sc-domain:bwengr.com) |
GOOGLE_CLIENT_ID |
Google Cloud Console > Credentials (from step 3) |
GOOGLE_CLIENT_SECRET |
Google Cloud Console > Credentials (from step 3) |
5. Run the server
npm start
On first run, a browser window will open automatically to complete OAuth authentication. After that, tokens are stored locally in .tokens.json and you will not be prompted again.
Connecting to your AI assistant
This server communicates over stdio (standard input/output), which is the standard way to connect MCP servers to AI assistants. Configure your AI assistant to use:
node /path/to/src/index.js
Replace /path/to with the actual path to this project on your machine.
Available tools
getTopQueries
Returns your top search queries ranked by clicks.
- Parameters:
startDate(YYYY-MM-DD),endDate(YYYY-MM-DD),rowLimit(optional, default 10) - Returns: query, clicks, impressions, CTR, position for each row
getSiteSummary
Returns overall site search performance totals.
- Parameters:
startDate(YYYY-MM-DD),endDate(YYYY-MM-DD) - Returns: total clicks, impressions, CTR, average position
getPagePerformance
Returns performance data filtered to a specific page.
- Parameters:
pageUrl(exact URL as shown in GSC),startDate(YYYY-MM-DD),endDate(YYYY-MM-DD) - Returns: clicks, impressions, CTR, position for that page
getRankingChanges
Finds pages with the biggest position changes between two periods.
- Parameters:
days(number of days to compare, default 28) - Returns: page URL, position change, current position, prior position
Important
Never commit .env or .tokens.json to version control. These files are already excluded via .gitignore.
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.