
metehan777/google-search-console-mcp
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
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 .
개요
This project provides a Model Context Protocol (MCP) server that allows Claude AI (via the Claude Desktop app) or others to interact with the Google Search Console API. You can use it to query performance data, inspect URLs, check indexing status, and more, directly from your Claude chat (or others). You can follow me on X @metehan777 and visit my blog https://metehan.ai Based on the available Google Search Console API endpoints allowed in this project: * List accessible sites/properties in your Search Console account. * Fetch search performance data (clicks, impressions, CTR, position) with various filters and dimensions. * Inspect the status of a specific URL in the Google index, check its indexing status, and request indexing. * List submitted sitemaps for a site. * Get an overall site performance summary (derived from Search Analytics data).
README
원문 README의 일부입니다. 원문 보기.
Google Search Console MCP Server
This project provides a Model Context Protocol (MCP) server that allows Claude AI (via the Claude Desktop app) or others to interact with the Google Search Console API. You can use it to query performance data, inspect URLs, check indexing status, and more, directly from your Claude chat (or others).
You can follow me on X @metehan777 and visit my blog https://metehan.ai
Features
Based on the available Google Search Console API endpoints allowed in this project:
- Sites: List accessible sites/properties in your Search Console account.
- Search Analytics: Fetch search performance data (clicks, impressions, CTR, position) with various filters and dimensions.
- URL Inspection: Inspect the status of a specific URL in the Google index, check its indexing status, and request indexing.
- Sitemaps: List submitted sitemaps for a site.
- (Helper) Get an overall site performance summary (derived from Search Analytics data).
(Note: Index coverage details and crawl errors beyond what’s available in the URL Inspection API are generally not exposed via the Google Search Console API.)
See the Search Console API capabilities & announcements here: https://developers.google.com/webmaster-tools/v1/api_reference_index
Prerequisites
- Python: Version 3.11 or higher.
- pip: Python package installer (usually comes with Python).
- Virtual Environment Tool:
venv(recommended, built into Python 3). - Google Account: With access to the Google Search Console properties you want to query.
- Claude Desktop App: Installed and running.
Setup Instructions
-
Clone or Download: Get the project files onto your local machine. If using git:
git clone https://github.com/metehan777/google-search-console-mcp.git cd search-console-mcp -
Create and Activate Virtual Environment: It’s highly recommended to use a virtual environment to manage dependencies.
# Create the virtual environment (using the name 'fresh_env' as in previous steps) python3 -m venv fresh_env # Activate the environment # On macOS/Linux: source fresh_env/bin/activate # On Windows: # .\fresh_env\Scripts\activate(You should see
(fresh_env)at the beginning of your terminal prompt) -
Install Dependencies: Install the required Python packages, including the project itself in editable mode.
pip install -e . -
Google Cloud Setup & Credentials:
- Enable API: Go to the Google Cloud Console and create a new project or select an existing one. Enable the “Google Search Console API” for your project.
- Create OAuth Credentials:
- Navigate to “APIs & Services” -> “Credentials”.
설치
npx -y @modelcontextprotocol/server-filesystem /Users/username/Desktop /Users/username/Downloads설정
{
"mcpServers": {
"filesystem": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-filesystem",
"/Users/username/Desktop",
"/Users/username/Downloads"
]
},
"google-search-console": {
"command": "/Users/username/Documents/search-console-mcp/fresh_env/bin/python3",
"args": [
"-m",
"main"
],
"cwd": "/Users/username/Cursor/search-console-mcp"
}
}
}