Skip to main content
Glama

npm version npm downloads license Skill on skilld.dev

Google Search Console data for agents. Dump your entire Google Search Console dataset and put your agents to work finding insights and improving your SEO.

  • 🔓 Open source: every package in this repository is MIT licensed, including the Google and Bing clients, the Parquet and DuckDB engine, the CLI, and its local MCP server.

  • ☁️ Hosted: gscdump.com runs the sync and keeps your search history. Add it from the Claude directory or the ChatGPT directory.

Features

  • 🤖 Agents: run Reports through the CLI or MCP and read the results as JSON.

  • 🔍 30 SEO Analyzers: find content decay, competing pages, traffic changes, and queries worth targeting.

  • 📋 Reports: eight Reports combine Analyzers to answer questions about your search traffic.

  • 💾 Own your data: sync Search Console rows to a local Parquet Store and query them with DuckDB.

  • ⚡ Indexing and sitemaps: inspect URLs, send eligible indexing notifications, and manage sitemap submissions.

  • 🎯 Typed query builder: select dimensions, filter rows, and stream paginated results from Google.

  • 🌐 Edge support: use the core library in Cloudflare Workers, Deno, Bun, or Node.js.

Related MCP server: gsc-mcp-connector

What is gscdump?

Google Search Console's API answers narrow questions and limits how much you can ask. Its 16-month history window keeps moving. Comparing pages and queries over time takes extra work, especially when you want a chart.

With gscdump, you can keep the data you collect and compare old periods with new ones. See the changes in charts, then ask your agents about the same record. Keep your own copy for deeper analysis. Google's row limits still decide what data is available.

Use with Claude or ChatGPT

Add the hosted gscdump connector from a directory. It queries your gscdump.com record, which keeps your collected data after Google's 16-month window moves on.

For developers, the CLI runs its own MCP server. gscdump mcp starts a stdio server in Local mode with your own Google keys. It reads live Google data. It does not read your local Store. See AI integration and MCP for setup.

Many Search Console MCP servers read Google live on each call and store nothing. gscdump keeps history: gscdump sync writes your rows to a local Parquet Store that you query with DuckDB, and gscdump.com preserves your collected data.

Get Started

Tell your agent:

Use this Skill: https://skilld.dev/gh/harlan-zw/gscdump

Install the CLI with Node.js 22.13 or later in the 22 release line, or Node.js 24 or later:

npm install -g @gscdump/cli

The CLI has 2 access modes:

Mode

Credentials

What the CLI reads

Local

Your own Google credentials: a service account (recommended) or an OAuth client

Google directly, into a local Store

Hosted

Your gscdump.com account

Your hosted record. indexing inspect --yes spends URL Inspections. sitemaps inspect --engine google reads one Sitemap live

Local mode

A service account is the simplest Local setup, and its key never expires. Add the service account email as a user of the Site in Search Console, then run gscdump auth login --mode local --service-account ./key.json.

To sign in as yourself, create a Desktop OAuth client in Google Cloud and set GSC_CLIENT_ID and GSC_CLIENT_SECRET before login. Set the OAuth consent screen to "In production": in "Testing" status, Google expires refresh tokens after 7 days. The access guide covers both paths and existing Google tokens.

export GSC_CLIENT_ID=your-client-id
export GSC_CLIENT_SECRET=your-client-secret

gscdump init --mode local
gscdump sites

# Read a quick result from Google
gscdump query --live --mode local --site example.com --dimensions date --limit 7

# Sync before querying or exporting stored data; start with one day
gscdump sync --site example.com --days 1
gscdump query --site example.com --dimensions page,query
gscdump dump --site example.com --out ./export

# Build more history when ready
gscdump sync --site example.com --days 90

# Start the MCP server
gscdump mcp

Hosted mode

Hosted login opens gscdump.com in your browser. Sign in, approve the CLI, then connect a Site. The CLI saves its own session. Hosted mode reads your hosted record. indexing inspect --yes requests new Google URL Inspections through the platform. sitemaps inspect --engine google reads one Sitemap live through the platform. That read uses Google's API quota, without spending URL Inspections. Bing Sitemap inspection reads dated stored evidence. Direct Google commands, such as sync, inspect, and query --live, need Local mode.

To connect chat agents directly over OAuth with no local server, use the Google Search Console MCP server (https://gscdump.com/mcp): connect Google Search Console to Claude or connect Google Search Console to ChatGPT. Compare Hosted, Local CLI, live-API proxies, desktop archives, and BigQuery export on Compare Search Console alternatives.

gscdump auth login --mode hosted
gscdump sites
gscdump query --site example.com --dimensions date --limit 7

See the first-result guide for the full path.

For one-off commands, use npx -y @gscdump/cli in place of gscdump. The gscdump npm package contains the library; @gscdump/cli provides the command.

Documentation

API Usage

npm install gscdump
import { googleSearchConsole } from 'gscdump'
import { between, date, daysAgo, gsc, page, query } from 'gscdump/query'

const client = googleSearchConsole({ accessToken: process.env.GSC_ACCESS_TOKEN! })
const request = gsc
  .select(page, query)
  .where(between(date, daysAgo(30), daysAgo(3)))
  .limit(10000)

for await (const rows of client.query('sc-domain:example.com', request)) {
  console.log(rows)
}

See the core library for authentication, query methods, and Bing Indexing Evidence.

Query Builder

import { and, between, contains, country, date, daysAgo, device, eq, gsc, page, query } from 'gscdump/query'

const builder = gsc
  .select(page, query, device, country)
  .where(and(
    eq(device, 'MOBILE'),
    contains(page, '/blog/'),
    between(date, daysAgo(30), daysAgo(3)),
  ))
  .limit(25000)

const body = builder.toBody()

Dimensions: page, query, date, country, device, searchAppearance.

Operators: eq, ne, contains, like, regex, notRegex, inArray, between, and, or, not.

Other Client Methods

Using the client from API Usage:

const siteUrl = 'sc-domain:example.com'
const url = 'https://example.com/jobs/frontend-engineer'

const sites = await client.sites()
const inspection = await client.inspect(siteUrl, url)

const sitemaps = await client.sitemaps.list(siteUrl)
await client.sitemaps.submit(siteUrl, 'https://example.com/sitemap.xml')

// For eligible job or livestream pages
await client.indexing.publish(url, 'URL_UPDATED')
const metadata = await client.indexing.getMetadata(url)

Hosted API v1

Use @gscdump/sdk/v1 for the hosted gscdump.com API. The current contracts describe 58 HTTP operations: 53 partner, three analytics, and two realtime operations. The API wire version is 1.0, separate from npm package versions.

Start with the hosted integration guide. The generated contracts define operation inputs and responses.

Packages

Package

Description

gscdump

Google and Bing clients, typed query builder

@gscdump/analysis

Analyzers and Reports

@gscdump/engine

Parquet storage, DuckDB execution, and Source contracts

@gscdump/engine-duckdb-wasm

Browser DuckDB runtime

@gscdump/engine-sqlite

SQLite and D1 adapter

@gscdump/engine-gsc-api

Live Google API Source

@gscdump/lakehouse

Iceberg catalog and dataset registry

@gscdump/contracts

Hosted API schemas and operation metadata

@gscdump/sdk

Hosted HTTP, realtime, and webhook clients

@gscdump/cloudflare

Cloudflare server-tail and request deduplication helpers

@gscdump/cli

CLI and MCP server (gscdump mcp)

@gscdump/devframe

Search Console data for the page in view, in Vite DevTools, Nuxt DevTools, and devframe hubs

Support and contributions

Entry point

Scope

First result

CLI

Local and Hosted access modes for Google and Bing, local Store, exports

Getting started

Core library

Google and Bing clients, typed queries, fetch runtimes

Library examples

MCP

Live Google queries and supported Reports

AI integration

Hosted SDK

gscdump.com API credentials and published v1 operations

Hosted integration

Runtime adapters

Browser DuckDB, SQLite, and Cloudflare integrations

Package READMEs above

Use the latest published version when reporting a bug. See Contributing for setup and checks. Report vulnerabilities through Security.

License

MIT

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      Not graded
      maintenance
      Self-hosted Google Search Console MCP server deployable to Cloudflare Workers, allowing natural language queries of GSC data via ChatGPT, Claude, or any MCP-capable client.
      MIT
    • A
      license
      Not graded
      quality
      Not graded
      maintenance
      Self-hosted Google Search Console MCP server deployable to Cloudflare Workers in 15 minutes. Enables querying GSC data (sites, search analytics, URL inspection, sitemaps) via natural language through MCP-capable clients like ChatGPT or Claude.
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Self-hosted Google Search Console MCP server deployable to Cloudflare Workers that enables querying GSC data (search analytics, URL inspection, sitemaps) via natural language through ChatGPT, Claude, or any MCP-capable client.
      1
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Google Search Console for Claude and other MCP clients. Sign in with Google in one click, then ask about clicks, queries, rankings and indexing, export every GSC report as CSV (beyond the 1,000-row UI limit), inspect URLs, submit sitemaps and verify sites. Includes a local SEO dashboard. Free, open source, runs on your computer.
      18
      79 npm
      2
      MIT