KosmoKrator

analytics

Google Search Console MCP Integration for LangChain

Connect Google Search Console to LangChain through the local KosmoKrator MCP gateway with scoped tools, credentials, and write policy.

7 functions 7 read 0 write Manual OAuth token auth

Connect Google Search Console to LangChain

Bridge LangChain agents to local KosmoKrator integration tools through MCP or headless CLI calls.

Use the MCP gateway when the agent should discover tools, or wrap kosmo integrations:call for fixed chains. The gateway is local, scoped to this integration, and starts with --write=deny so LangChain can inspect read-capable tools without receiving write access by default.

Google Search Console MCP Config for LangChain

Keep the gateway scoped to the integration and operation class needed by the chain.

{
  "mcpServers": {
    "kosmokrator-google-search-console": {
      "type": "stdio",
      "command": "kosmo",
      "args": [
        "mcp:serve",
        "--integration=google-search-console",
        "--write=deny"
      ]
    }
  }
}

Run the Gateway Manually

kosmokrator mcp:serve --integration=google-search-console --write=deny

Why Use KosmoKrator Here

Scoped tools

Expose only Google Search Console instead of a broad multi-service tool list.

Local credentials

Reuse credentials already configured for the KosmoKrator CLI and Lua runtime.

Write policy

Start read-only, then opt into ask or allow for trusted workspaces.

Google Search Console Tools Visible to LangChain

LangChain sees stable MCP tool names generated from the Google Search Console integration catalog.

MCP toolSource functionTypeDescription
integration__google_search_console__gsc_list_sites google-search-console.gsc_list_sites Read List all sites the authenticated user has access to in Google Search Console. Returns site URLs and permission levels.
integration__google_search_console__gsc_get_site google-search-console.gsc_get_site Read Get details for a specific site in Google Search Console, including permission level.
integration__google_search_console__gsc_list_sitemaps google-search-console.gsc_list_sitemaps Read List sitemaps submitted for a site in Google Search Console. Returns sitemap URLs, types, and indexing status.
integration__google_search_console__gsc_get_sitemap google-search-console.gsc_get_sitemap Read Get details for a specific sitemap in Google Search Console, including indexing status and any errors.
integration__google_search_console__gsc_list_search_analytics google-search-console.gsc_list_search_analytics Read Query search performance data from Google Search Console — clicks, impressions, CTR, and average position. Group by dimensions like query, page, country, or device.
integration__google_search_console__gsc_list_url_inspection google-search-console.gsc_list_url_inspection Read Inspect URLs for a site in Google Search Console. Returns indexing status, crawl information, and any detected issues.
integration__google_search_console__gsc_get_current_user google-search-console.gsc_get_current_user Read Get the authenticated user's profile from Google Search Console. Returns email and account information.

Related Google Search Console Pages