# Google Search Console — how to use (mcp.ai)

Google Search Console provides tools to monitor, maintain, and troubleshoot your site's presence in Google Search results.

## Option A — via MCP (recommended)
Remote MCP endpoint (HTTP, streamable): `https://api.mcp.ai/p_google_search_console?ms=1781542440000`
Add it as a custom/remote MCP connector in your client (Claude, Cursor, VS Code…), then authenticate when prompted. Once connected, ask the agent to use the server's tools (e.g. `google_search_console_get_sitemap`).

## Option B — via direct REST API
Base URL: `https://api.mcp.ai/api/google_search_console`
Auth: `Authorization: Bearer sk_live_…` — create a workspace API key at https://mcp.ai/settings/api-keys
Discover endpoints: `GET https://api.mcp.ai/api/google_search_console/_endpoints`

### Endpoints
- `POST https://api.mcp.ai/api/google_search_console/get/sitemap` — Retrieves information about a specific sitemap for a site.
  - body: { feedpath: string, site_url: string }
- `POST https://api.mcp.ai/api/google_search_console/inspect/url` — Inspects a url for indexing issues and status in google search console.
  - body: { url: string, site_url: string, language_code?: string, inspection_url: string }
- `POST https://api.mcp.ai/api/google_search_console/list/sitemaps` — Lists all sitemaps for a site in google search console.
  - body: { site_url: string, sitemap_index?: string }
- `POST https://api.mcp.ai/api/google_search_console/list/sites` — Lists all sites owned by the authenticated user in google search console.
- `POST https://api.mcp.ai/api/google_search_console/search/analytics/query` — Queries google search console for search analytics data including clicks, impressions, ctr, and position metrics.
  - body: { end_date: string, site_url: string, row_limit?: integer, start_row?: integer, data_state?: string, dimensions?: string[], start_date: string, search_type?: string, aggregation_type?: string, dimension_filter_groups?: object[] }
- `POST https://api.mcp.ai/api/google_search_console/submit/sitemap` — Submits a sitemap to google search console for indexing.
  - body: { feedpath: string, site_url: string }

## More
- Page: https://mcp.ai/google_search_console
- Agent spec (llms.txt): https://mcp.ai/google_search_console/llms.txt
- Postman collection: https://mcp.ai/google_search_console/postman.json
