> For the complete documentation index, see [llms.txt](https://docs.stackai.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stackai.com/integrations/catalog/google-search-console.md).

# Google Search Console

Google Search Console is a web service by Google that allows webmasters to check indexing status, search analytics, and optimize visibility of their websites.

### Connectors

Choose the connector that matches your authentication method. The options below use the names shown in StackAI.

| Connector                   | Authentication |
| --------------------------- | -------------- |
| Google Search Console       | OAuth sign-in  |
| Google Search Console (MCP) | API Key        |

#### Google Search Console

Connect to Google Search Console to manage sites, sitemaps, query search analytics, and inspect URLs.

**Set up in Google Search Console**

1. Sign in to the Google account that has access to your verified Search Console properties.

**Set up in StackAI**

1. Open **Settings → Connections**, add a connection, and select **Google Search Console**.
2. Select **Connect**, sign in to the provider account, and review the requested access. Complete authorization to return to StackAI.
3. Save the connection and check its connection status. Select this saved connection when configuring an action or feature that uses it.

StackAI obtains the OAuth credentials during sign-in. You do not need to paste an access token or refresh token.

**Provider documentation:** [Setup reference](https://support.google.com/webmasters/answer/9128668).

#### Google Search Console (MCP)

Connect to a self-hosted Google Search Console MCP server using its HTTPS URL and bearer credential. Google does not provide a hosted Search Console MCP endpoint.

**Set up in Google Search Console**

1. Prepare the Google Search Console account or service that the workflow will access. Grant access to the required resources and operations.
2. Create or obtain the API credential identified in the fields below. Use the provider instructions linked with those fields to find its key-management page.

**Set up in StackAI**

1. Open **Settings → Connections**, add a connection, and select **Google Search Console (MCP)**.
2. Enter the credentials and connection details in the fields below.
3. Save the connection and check its connection status. Select this saved connection when configuring an action or feature that uses it.

**Connection fields**

| StackAI field      | Required                 | What to enter                                                                                                                                              |
| ------------------ | ------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Base URL           | Yes                      | Base URL of the MCP server.                                                                                                                                |
| Authorization Type | Optional / as applicable | Authorization type for the MCP server when using API key authentication. Default is Bearer. If using Basic authentication, provide base64 encoded API key. |
| API Key            | Optional / as applicable | Optional API key for authentication. Provide base64 encoded API key if using Basic authentication.                                                         |
| Description        | Optional / as applicable | Optional description for this MCP server connection (e.g., include the server name).                                                                       |

**Provider documentation:** [Setup reference](https://github.com/AminForou/mcp-gsc).

#### Verify the connection

Check that the connection is healthy. Then run a read operation against a resource the connected account can access. A successful connection check confirms authentication; it does not guarantee permission for every action.

If access is denied, check the credential or OAuth permissions, the selected account or environment, and access to the specific resource. Update expired credentials or reconnect after permissions change.

### Use an action

1. Add the required **Google Search Console** action to the workflow.
2. Select a connection when the action requests one.
3. Complete the required fields. Use the reference picker when a value comes from another workflow step.
4. Run the workflow and inspect the action’s output. Check the result before using it in a later step.

### Actions

#### List Sites

List all verified site properties in Google Search Console

**Inputs**

No input fields are required in this catalog entry.

**Outputs**

| Field          | Type   | Description                       |
| -------------- | ------ | --------------------------------- |
| Sites          | array  | List of verified site properties. |
| Total Count    | number | Number of sites found.            |
| Status Message | string | Summary of the operation.         |

#### Get Site

Get details of a site property in Google Search Console

**Inputs**

| Field    | Type            | Required | Description                                                                 |
| -------- | --------------- | -------- | --------------------------------------------------------------------------- |
| Site URL | select (string) | Yes      | Select a verified site property. Options load from the selected connection. |

**Outputs**

| Field          | Type   | Description               |
| -------------- | ------ | ------------------------- |
| Site           | object | Site property details.    |
| Status Message | string | Summary of the operation. |

#### List Sitemaps

List all sitemaps for a site in Google Search Console

**Inputs**

| Field    | Type            | Required | Description                                                                 |
| -------- | --------------- | -------- | --------------------------------------------------------------------------- |
| Site URL | select (string) | Yes      | Select a verified site property. Options load from the selected connection. |

**Outputs**

| Field          | Type   | Description                    |
| -------------- | ------ | ------------------------------ |
| Sitemaps       | array  | List of sitemaps for the site. |
| Total Count    | number | Number of sitemaps found.      |
| Status Message | string | Summary of the operation.      |

#### Get Sitemap

Get details of a sitemap in Google Search Console

**Inputs**

| Field    | Type            | Required | Description                                                                 |
| -------- | --------------- | -------- | --------------------------------------------------------------------------- |
| Site URL | select (string) | Yes      | Select a verified site property. Options load from the selected connection. |
| Sitemap  | select (string) | Yes      | Select a sitemap for the site. Options load from the selected connection.   |

**Outputs**

| Field          | Type   | Description                                                        |
| -------------- | ------ | ------------------------------------------------------------------ |
| Sitemap        | object | Sitemap details including errors, warnings, and content breakdown. |
| Status Message | string | Summary of the operation.                                          |

#### Submit Sitemap

Submit a new sitemap to Google Search Console

**Inputs**

| Field       | Type            | Required | Description                                                                 |
| ----------- | --------------- | -------- | --------------------------------------------------------------------------- |
| Site URL    | select (string) | Yes      | Select a verified site property. Options load from the selected connection. |
| Sitemap URL | string          | Yes      | The full URL of the sitemap to submit.                                      |

**Outputs**

| Field          | Type   | Description               |
| -------------- | ------ | ------------------------- |
| Status Message | string | Summary of the operation. |

#### Delete Sitemap

Delete a sitemap from Google Search Console

**Inputs**

| Field    | Type            | Required | Description                                                                 |
| -------- | --------------- | -------- | --------------------------------------------------------------------------- |
| Site URL | select (string) | Yes      | Select a verified site property. Options load from the selected connection. |
| Sitemap  | select (string) | Yes      | Select a sitemap for the site. Options load from the selected connection.   |

**Outputs**

| Field          | Type   | Description               |
| -------------- | ------ | ------------------------- |
| Status Message | string | Summary of the operation. |

#### Query Search Analytics

Query search analytics data from Google Search Console

**Inputs**

| Field       | Type                      | Required | Description                                                                                                      |
| ----------- | ------------------------- | -------- | ---------------------------------------------------------------------------------------------------------------- |
| Site URL    | select (string)           | Yes      | Select a verified site property. Options load from the selected connection.                                      |
| Start Date  | string                    | Yes      | Start date for the query in YYYY-MM-DD format.                                                                   |
| End Date    | string                    | Yes      | End date for the query in YYYY-MM-DD format.                                                                     |
| Dimensions  | multiple\_select (string) | No       | Group results by these dimensions. Available values: Query, Page, Country, Device, Search Appearance.            |
| Search Type | select (string)           | No       | Type of search results to query. Available values: Web, Image, Video, News, Discover, Google News. Default: web. |
| Row Limit   | number                    | No       | Maximum number of rows to return (default 1000, max 25000).                                                      |

**Outputs**

| Field            | Type   | Description                      |
| ---------------- | ------ | -------------------------------- |
| Results          | array  | Search analytics results.        |
| Total Count      | number | Number of result rows.           |
| Aggregation Type | string | How the results were aggregated. |
| Status Message   | string | Summary of the operation.        |

#### Inspect URL

Inspect a URL's indexing status in Google Search Console

**Inputs**

| Field          | Type            | Required | Description                                                                 |
| -------------- | --------------- | -------- | --------------------------------------------------------------------------- |
| Site URL       | select (string) | Yes      | Select a verified site property. Options load from the selected connection. |
| URL to Inspect | string          | Yes      | The fully-qualified URL to inspect. Must belong to the selected site.       |

**Outputs**

| Field             | Type   | Description                                                        |
| ----------------- | ------ | ------------------------------------------------------------------ |
| Inspection Result | object | URL inspection result including indexing status and crawl details. |
| Status Message    | string | Summary of the operation.                                          |

### Important behavior

If an operation is denied, check the connection’s granted permissions and the account’s access in the provider. Reauthorize the connection when it needs additional permissions.

Actions that create, update, send, or delete data can change the connected service. Review their inputs before running them. A retry can repeat an operation; consider this when configuring retries for actions that change data.

The catalog lists the fields and capabilities available in the supplied provider definition. Availability can also depend on your deployment and organization’s Feature Access settings.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.stackai.com/integrations/catalog/google-search-console.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
