searchconsole-mcp
searchconsole-mcp
Servidor MCP que automatiza Google Search Console para tus proyectos: análisis de búsqueda, gestión de sitemaps, propiedades del sitio e inspección de URL.
Herramientas
Herramienta | Descripción |
| Lista todas las propiedades a las que la cuenta de servicio puede acceder |
| Añadir/eliminar una propiedad ( |
| Clics, impresiones, CTR, posición agrupados por consulta/página/país/dispositivo/fecha, con filtros. Por defecto, últimos 28 días |
| Inspecciona los sitemaps enviados y los recuentos indexados |
| Enviar o eliminar sitemaps |
| API de inspección de URL: estado de indexación, canónica, información de rastreo, usabilidad móvil |
Related MCP server: Google Search Console MCP Server
Configuración única de Google
En Google Cloud Console crea un proyecto.
Habilita la API de Google Search Console (APIs y servicios > Biblioteca).
Crea una cuenta de servicio (IAM y administración > Cuentas de servicio) y descarga una clave JSON.
Para cada propiedad de Search Console: Configuración > Usuarios y permisos > Añadir usuario, pega el correo de la cuenta de servicio (
...@...iam.gserviceaccount.com) y concede Propietario (se requiere Propietario para la API de inspección de URL).
Configuración
Variables de entorno:
Var | Requerido | Descripción |
| uno de | Clave JSON completa de la cuenta de servicio en línea |
| uno de | Ruta al archivo de clave. Por defecto |
| opcional | Propiedad por defecto para poder omitir |
El servidor también carga .env desde su directorio de trabajo al iniciarse.
Registro en un cliente MCP
opencode (~/.config/opencode/opencode.json o .opencode/opencode.json del proyecto):
{
"mcp": {
"searchconsole": {
"type": "local",
"command": ["node", "/absolute/path/to/searchconsole-mcp/dist/index.js"],
"environment": {
"GSC_SERVICE_ACCOUNT_FILE": "/absolute/path/to/service-account.json",
"GSC_DEFAULT_SITE": "sc-domain:example.com"
}
}
}
}Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"searchconsole": {
"command": "node",
"args": ["/absolute/path/to/searchconsole-mcp/dist/index.js"],
"env": {
"GSC_SERVICE_ACCOUNT_FILE": "/absolute/path/to/service-account.json",
"GSC_DEFAULT_SITE": "sc-domain:example.com"
}
}
}
}Desarrollo
npm install
npm run build # tsc -> dist/
npm start # run the server on stdio
npm run smoke # boots the server and lists toolsNotas
Los datos de Analytics tienen un retraso de ~2 días; pasa
dataState: "all"para incluir datos parciales recientes.La API limita las filas de analytics a 25.000 por solicitud; usa
startRowpara paginar.Añadir un sitio mediante la API lo deja sin verificar hasta que se confirme la propiedad; la vía más sencilla es añadir primero el correo de la cuenta de servicio como Propietario en la interfaz.
Available Tools
9 toolsgsc_add_siteAdd a Search Console siteA
Add a property to Search Console. Use "sc-domain:example.com" for domain properties or "https://www.example.com/" for URL-prefix properties. The property stays unverified until ownership is confirmed.
Inputs: siteUrl (required).
gsc_delete_sitemapDelete a sitemapA
Remove a sitemap from a property. Pages already indexed are not deindexed by this.
Inputs: feedpath (required), siteUrl.
gsc_get_sitemapGet sitemap detailsA
Get details of one submitted sitemap (status, contents, errors/warnings).
Inputs: feedpath (required), siteUrl.
gsc_inspect_urlInspect URL indexing statusA
URL Inspection API: check whether a URL is on Google, its coverage state, canonical, crawl info, mobile usability and rich results. The service account must be an OWNER of the property for this API. Only works for URLs in properties you own.
Inputs: inspectionUrl (required), siteUrl, languageCode.
gsc_list_sitemapsList sitemapsA
List submitted sitemaps for a property, with submission dates and indexed counts.
Inputs: siteUrl, sitemapIndex.
gsc_list_sitesList Search Console sitesA
List all Google Search Console properties the service account has access to, including permission levels.
Inputs: no named parameters.
gsc_remove_siteRemove a Search Console siteB
Remove a property from Search Console.
Inputs: siteUrl (required).
gsc_search_analyticsQuery search analyticsC
Run a Search Console search-analytics query: clicks, impressions, CTR and average position grouped by dimensions (query, page, country, device, date). Dates default to the last 28 days.
Inputs: endDate, siteUrl, rowLimit, startRow, +6 more.
gsc_submit_sitemapSubmit a sitemapC
Submit a sitemap URL for a property (same as clicking Submit in the UI).
Inputs: feedpath (required), siteUrl.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Each tool targets a distinct resource or action: site management, search analytics, sitemaps, and URL inspection. Even similar-looking sitemap tools are clearly separated by list/get/submit/delete semantics.
Every tool uses the gsc_ prefix followed by a verb_noun pattern, such as list_sites, submit_sitemap, and inspect_url. The naming is uniform and predictable across the entire set.
Nine tools is well-scoped for a Search Console server, covering each core API area without redundancy. No tool feels like filler, and the count is within a comfortable range.
The set maps closely to Google's official Search Console API surface: site CRUD, sitemap submission/removal/list, search analytics querying, and URL inspection. It covers all primary workflows an agent would need for Search Console.
Maintenance
Related MCP Connectors
Read Search Console queries, clicks and positions, and inspect URLs for indexing.
Google Search Console for AI assistants: traffic, rankings, indexing and page checks. Read-only.
Connect Google Search Console to your AI client for search analytics, URL inspection and sitemaps.
Read-only Google Search Console and Google Analytics for AI agents.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables interaction with Google Search Console via MCP, offering search analytics, performance summaries, URL inspection, sitemap management, and property listing for SEO workflows.1,223 npm1MIT
- FlicenseNot gradedqualityDmaintenanceEnables interacting with Google Search Console via natural language, supporting search analytics, URL inspection, sitemap management, and site listing.25-
- AlicenseNot gradedqualityDmaintenanceEnables interaction with Google SearchConsole tools and services through a unified API.2MIT
- FlicenseNot gradedqualityCmaintenanceEnables programmatic management of Google Search Console properties and IndexNow URL submission for search indexing.-