searchconsole
MCP server for Google Search Console — query keywords, pages, sitemaps, and more from AI assistants
claude mcp add --transport stdio chrishart0-searchconsole-mcp uvx searchconsole-mcp
How to use
The searchconsole MCP server provides read-only access to your Google Search Console data via natural language prompts. It exposes tools that let you list all verified properties, query analytics data (like clicks, impressions, CTR, and average position) with flexible filters, and retrieve sitemaps for a given property. You can connect to the MCP from compatible clients (including Claude and other MCP clients) over stdio, allowing your AI assistant to answer questions about your site's search performance without exposing your credentials or raw data to the client.
After starting the server, you can ask questions such as: which keywords drove the most clicks this month, which pages have high impressions but low CTR, what are my sitemaps and their statuses, or what properties I own and what access levels I have for each. The tools map directly to common Search Console capabilities:
- list_sites: enumerate verified properties and permission levels
- query_search_analytics: fetch keyword/page performance with filters for date ranges, dimensions, and pagination
- list_sitemaps: retrieve submitted sitemaps for a property These tools enable natural-language queries while the underlying data access remains read-only, helping you monitor performance safely.
How to install
Prerequisites:
- Python 3.11 or newer installed on your system
- Internet access to install dependencies
- (Optional) uv (uvx) installed if you plan to run via uvx; instructions assume you will install via a standard Python package setup
Step-by-step:
-
Clone the repository: git clone https://github.com/chrishart0/searchconsole-mcp.git cd searchconsole-mcp
-
Create and activate a Python virtual environment (recommended): python3 -m venv venv source venv/bin/activate # on Unix or MacOS .\venv\Scripts\activate # on Windows
-
Install the MCP package dependencies (if a setup script or requirements is provided): pip install -r requirements.txt # if a requirements file exists
or install the package in editable mode if applicable:
pip install -e .
-
Run the MCP server using uvx (Python/uv) as shown in the Quick Start: uvx run --directory /path/to/searchconsole-mcp searchconsole-mcp
-
If you prefer npx/Node-based workflows or different deployment options, follow any alternative instructions in the repository README, but for this server the Python/uvx route is the intended path.
-
(Optional) Set Google credentials when required by your environment: export GOOGLE_APPLICATION_CREDENTIALS=/path/to/key.json or use gcloud auth application-default login for user credentials.
Test by connecting a client (e.g., Claude) and sending a simple prompt like: "List my Search Console properties" to verify connectivity.
Additional notes
Notes and tips:
- This MCP server uses Google Application Default Credentials. Ensure the service account or user has access to the Search Console properties you intend to query.
- When connecting from Claude or another client, you may need to provide environment variables (e.g., GOOGLE_APPLICATION_CREDENTIALS) or authentication steps per client documentation.
- If you encounter permission errors, double-check that the credentials have at least read-only access to the relevant Search Console properties.
- The server exposes read-only operations; avoid enabling write capabilities unless explicitly supported and secured.
Related MCP Servers
MCP-Bridge
A middleware to provide an openAI compatible endpoint that can call MCP tools
mcp-gsc
Google Search Console Insights with Claude AI for SEOs
mcp-pinecone
Model Context Protocol server to allow for reading and writing from Pinecone. Rudimentary RAG
asterisk
Asterisk Model Context Protocol (MCP) server.
rlm-claude
Recursive Language Models for Claude Code - Infinite memory solution inspired by MIT CSAIL paper
google-search-console
It connects directly to your Google Search Console account via the official API, letting you access key data right from AI tools like Claude Desktop or OpenAI Agents SDK and others .