Google Search Console connector

Pull search performance data, inspect URLs, and manage sitemaps in Google Search Console from AgentRuntime workflows.

On this page

The google-search-console connector uses the Google Search Console APIs. Workflows can report on search clicks and impressions, check whether a page is indexed, and submit or review sitemaps for your verified sites.

Prerequisites

  • A Google account that can use Google Search Console, with the sites you want to query verified there.
  • A Google account connection in AgentRuntime with the Google Search Console service ticked. See Google Workspace.
  • The project_contributor role or higher in your workspace, which lets you manage connections and MCP instances. See Roles and permissions.

Connect in AgentRuntime

  1. Sign in with Google

    Go to Connections. In the Accounts section, click Sign in with Google. Enter a display name, tick Google Search Console (and any other Google services you plan to use), click Continue to Google, and approve the permissions. If you already connected a Google account with this service ticked, skip this step. If Sign in with Google is missing or Continue to Google is disabled, Google sign-in is not set up for your workspace: contact support. See Connections.

  2. Add the connector to your workspace

    Click MCP in the sidebar, then Add connectors. Find Google Search Console in the App catalog, select it, and click Add to workspace. The instance now appears on the MCP connectors page. See MCP instances.

  3. Attach your Google account to a profile

    Open the new instance to reach Instance config. Under Profiles for this connector, click New profile, enter a Display name, and on the Use a saved connection tab choose your Google account under Which connection?. Set Status to Active — can be used in workflows, click Save, then click Use this profile for workflows. You do not enter tokens yourself.

  4. Test it

    In Workflow Studio, add the google_search_console_list_sites tool from your Google Search Console instance (use Browse platform MCP if it is not listed), fill in its arguments, and run the workflow. A successful step means the connection works. It lists the sites your account can use.

What you can build

  • Weekly SEO digest. google_search_console_search_analytics_query pulls top queries and pages for the week, and an LLM writes the narrative.
  • Index check after publishing. A new URL goes to google_search_console_inspect_url, and the workflow alerts you if it is not indexed.
  • Sitemap after a deploy. google_search_console_submit_sitemap sends the sitemap, and google_search_console_list_sitemaps confirms its status.
  • Page drop alerts. Compare two date ranges grouped by page and flag large drops.

Tools

The Required arguments column lists the fields the tool's input schema marks as required. Some of them are optional in practice; if you have nothing to set, pass an empty value such as "", [], {}, or false.

google_search_console_delete_site and google_search_console_delete_sitemap remove the site or sitemap from your Search Console.

ToolAccessWhat it doesRequired arguments
google_search_console_add_siteWriteAdds a site to the set of the user's sites in Google Search Console.site_url
google_search_console_delete_siteDeleteRemoves a site from the user's Google Search Console sites.site_url
google_search_console_delete_sitemapDeleteDeletes a sitemap from a Search Console site.site_url, feedpath
google_search_console_get_siteReadRetrieves information about a specific Search Console site including permission level.site_url
google_search_console_get_sitemapReadRetrieves sitemap metadata (submitted/indexed counts, errors, warnings) for a specific sitemap.site_url, feedpath
google_search_console_inspect_urlReadInspects a URL for indexing issues and status in Google Search Console.site_url, inspection_url
google_search_console_list_sitemapsReadLists all sitemaps for a site in Google Search Console.site_url
google_search_console_list_sitesReadLists all verified sites (properties) owned by the authenticated user in Google Search Console.—
google_search_console_search_analytics_queryReadQueries Google Search Console for search analytics data including clicks, impressions, CTR, and position.site_url, start_date, end_date
google_search_console_submit_sitemapWriteSubmits a sitemap to Google Search Console for indexing.site_url, feedpath

Example

Fetch top queries and pages for a week. Dates are YYYY-MM-DD.

{
  "id": "seo-analytics",
  "type": "mcp",
  "name": "Top search queries",
  "tool_name": "google_search_console_search_analytics_query",
  "tool_args": {
    "site_url": "https://example.com/",
    "start_date": "{{input.week_start}}",
    "end_date": "{{input.week_end}}",
    "dimensions": [
      "query",
      "page"
    ],
    "search_type": "web",
    "row_limit": 500
  },
  "timeout_s": 60
}

Configuration

Google connectors take no keys from you: the permissions come from your Google account connection.

Google permissions (scopes) requested when you tick this service:

  • https://www.googleapis.com/auth/webmasters

Signing in also requests openid and https://www.googleapis.com/auth/userinfo.email so AgentRuntime can tell which Google account signed in.

Troubleshooting

ProblemWhat to do
403 for a siteThe signed-in Google account must have access to that site in Search Console. Use the exact property URL, such as https://example.com/ or sc-domain:example.com.
URL inspection says the URL is not in the propertyinspection_url must belong to the property you pass as site_url.
Empty analytics rowsCheck the date range and search_type. Search Console data is not available for dates that are too recent.
Google access stopped workingOpen Connections, open the Google account, and click Reconnect. If you removed a permission, click Update permissions and tick the service again.
Edit this pageagentruntime-io/agentruntime-docs