Gsc Cli logo

Gsc Cli

Community
exiao
gsc-cli

Query Google Search Console data via MCP (mcporter). Use when checking search performance, impressions, clicks, CTR, rankings for $APP_DOMAIN or any verified property. Also use for finding SEO quick wins, checking indexing status, or managing sitemaps.

Overview

Publisherexiao
Repositoryskills
Skill namegsc-cli
Stars
40
Forks
12
Bundled files
1
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by exiao on GitHub. Read the source before you install it.

Installation

Install the Gsc Cli AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/exiao/skills/tree/main/external-services/gsc-cli
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/exiao/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/external-services/gsc-cli .claude/skills/gsc-cli
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Gsc Cli in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Gsc Cli on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Gsc Cli is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

gsc-cli — Google Search Console via MCP

Query Google Search Console performance data using mcporter's gsc server.

Available Tools (8)

ToolPurpose
list_sitesList all sites visible to the authenticated Google identity
search_analyticsBasic search performance data
enhanced_search_analyticsUp to 25K rows, regex filters, quick wins detection
detect_quick_winsDedicated quick wins finder with ROI estimation
index_inspectCheck if a URL is indexed or indexable
list_sitemapsList sitemaps for a site
get_sitemapGet details of a specific sitemap
submit_sitemapSubmit a new sitemap

Setup

Prerequisites

  1. Google credential file at ~/.config/gsc-credentials.json
  2. Search Console API enabled in Google Cloud Console
  3. The authenticated Google identity has access to the GSC property

Recommended auth: user's Google account OAuth

Use OAuth when the user already owns the GSC properties. The MCP server's GoogleAuth({ keyFile }) accepts authorized_user credential JSON, even though the package docs only mention service accounts.

Fast path with gcloud:

bash
gcloud auth application-default login \
  --scopes=https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/webmasters.readonly

# Copy or symlink ADC to the file mcporter expects
cp ~/.config/gcloud/application_default_credentials.json ~/.config/gsc-credentials.json

Then edit ~/.config/gsc-credentials.json and ensure it contains a quota project:

json
{
  "type": "authorized_user",
  "client_id": "...",
  "client_secret": "...",
  "refresh_token": "...",
  "quota_project_id": "<google-cloud-project-id>"
}

If quota_project_id is missing, mcporter call gsc.list_sites fails with: searchconsole.googleapis.com API requires a quota project.

Alternate auth: service account

Service accounts work poorly with GSC because the web UI may reject service account emails with email not found. If OAuth is available, prefer OAuth.

If service account auth is still required:

  1. Go to console.cloud.google.com/iam-admin/serviceaccounts
  2. Pick or create a project
  3. Create Service Account (no IAM roles needed; GSC permissions are separate)
  4. Keys tab -> Add Key -> JSON
  5. Save to ~/.config/gsc-credentials.json
  6. Enable Search Console API for the project
  7. Try adding the service account in GSC Settings -> Users and permissions. If the UI rejects it, switch to OAuth instead. The API self-registration workaround can leave the service account as siteUnverifiedUser, which still cannot query analytics.

Verify access:

bash
mcporter call gsc.list_sites --output json

OAuth/auth troubleshooting details are in references/oauth-auth.md.

mcporter config

Already configured in ~/.mcporter/mcporter.json as stdio server:

bash
mcporter list gsc --schema

Usage

Basic performance data

bash
# Last 28 days of query performance
mcporter call gsc.search_analytics \
  siteUrl="sc-domain:$APP_DOMAIN" \
  startDate="2026-04-09" \
  endDate="2026-05-07" \
  dimensions="query" \
  rowLimit:1000 \
  --output json

# Page-level performance
mcporter call gsc.search_analytics \
  siteUrl="sc-domain:$APP_DOMAIN" \
  startDate="2026-04-09" \
  endDate="2026-05-07" \
  dimensions="page" \
  --output json

Multi-dimension analysis

bash
# Query + page breakdown (which queries land on which pages)
mcporter call gsc.search_analytics \
  siteUrl="sc-domain:$APP_DOMAIN" \
  startDate="2026-04-01" \
  endDate="2026-05-01" \
  dimensions="query,page" \
  rowLimit:5000 \
  --output json

# Device breakdown
mcporter call gsc.search_analytics \
  siteUrl="sc-domain:$APP_DOMAIN" \
  startDate="2026-04-01" \
  endDate="2026-05-01" \
  dimensions="query,device" \
  --output json

# Daily trend for a specific query
mcporter call gsc.search_analytics \
  siteUrl="sc-domain:$APP_DOMAIN" \
  startDate="2026-04-01" \
  endDate="2026-05-01" \
  dimensions="date" \
  queryFilter="bloom investing app" \
  --output json

Enhanced search analytics (up to 25K rows, regex)

bash
mcporter call gsc.enhanced_search_analytics \
  siteUrl="sc-domain:$APP_DOMAIN" \
  startDate="2026-04-01" \
  endDate="2026-05-01" \
  dimensions="query,page" \
  regexFilter="(invest|stock|portfolio)" \
  rowLimit:25000 \
  --output json

Filtering

bash
# Filter by page URL
mcporter call gsc.search_analytics \
  siteUrl="sc-domain:$APP_DOMAIN" \
  startDate="2026-04-01" \
  endDate="2026-05-01" \
  dimensions="query" \
  pageFilter="$APP_DOMAIN/subscribe" \
  --output json

# Regex filter for related queries
mcporter call gsc.search_analytics \
  siteUrl="sc-domain:$APP_DOMAIN" \
  startDate="2026-04-01" \
  endDate="2026-05-01" \
  dimensions="query" \
  queryFilter="regex:(invest|stock|portfolio)" \
  filterOperator="includingRegex" \
  --output json

# Mobile only
mcporter call gsc.search_analytics \
  siteUrl="sc-domain:$APP_DOMAIN" \
  startDate="2026-04-01" \
  endDate="2026-05-01" \
  dimensions="query" \
  deviceFilter="MOBILE" \
  --output json

Quick Wins Detection (dedicated tool)

bash
# Find keywords ranking 4-10 with optimization potential
mcporter call gsc.detect_quick_wins \
  siteUrl="sc-domain:$APP_DOMAIN" \
  startDate="2026-04-01" \
  endDate="2026-05-01" \
  minImpressions:50 \
  maxCtr:2 \
  positionRangeMin:4 \
  positionRangeMax:20 \
  --output json

# Or use enhanced_search_analytics with inline quick wins
mcporter call gsc.enhanced_search_analytics \
  siteUrl="sc-domain:$APP_DOMAIN" \
  startDate="2026-04-01" \
  endDate="2026-05-01" \
  dimensions="query,page" \
  enableQuickWins:true \
  --output json

URL Indexing Inspection

bash
mcporter call gsc.index_inspect \
  siteUrl="sc-domain:$APP_DOMAIN" \
  inspectionUrl="https://$APP_DOMAIN/subscribe" \
  --output json

Sitemaps

bash
# List all sitemaps
mcporter call gsc.list_sitemaps \
  siteUrl="https://$APP_DOMAIN/" \
  --output json

# Submit a new sitemap
mcporter call gsc.submit_sitemap \
  siteUrl="https://$APP_DOMAIN/" \
  feedpath="https://$APP_DOMAIN/sitemap.xml" \
  --output json

Parameters Reference

ParameterRequiredDescription
siteUrlYessc-domain:example.com or https://example.com/
startDateYesYYYY-MM-DD
endDateYesYYYY-MM-DD
dimensionsNoComma-separated: query, page, country, device, date, searchAppearance
typeNoweb (default), image, video, news
rowLimitNoDefault 1000, max 25000
dataStateNofinal (default) or all (includes fresh/unfinalized data)
queryFilterNoFilter queries; prefix regex: for regex
pageFilterNoFilter pages; prefix regex: for regex
countryFilterNoISO 3166-1 alpha-3 (e.g. USA)
deviceFilterNoDESKTOP, MOBILE, TABLET
filterOperatorNoequals, contains, notEquals, notContains, includingRegex, excludingRegex
aggregationTypeNoauto, byProperty, byPage

Site URL Format

  • Domain property: sc-domain:$APP_DOMAIN (covers all subdomains and protocols)
  • URL prefix: https://$APP_DOMAIN/ (trailing slash required)

Use sc-domain: format when available as it captures all traffic.

Interpreting Results

  • Clicks: Actual visits from search
  • Impressions: Times a page appeared in search results
  • CTR: Click-through rate (clicks/impressions)
  • Position: Average ranking position (1 = top)

Common Workflows

  1. Weekly SEO check: Pull top queries by clicks, compare week-over-week
  2. Content optimization: Find pages with high impressions but low CTR (title/description improvements)
  3. New page monitoring: Track recently published pages' search visibility via index_inspect
  4. Keyword gaps: Compare queries landing on your site vs competitor keyword lists (combine with DataForSEO)
  5. Mobile vs Desktop: Check if mobile rankings differ significantly

Pitfalls

  • Prefer OAuth user credentials over service accounts for personal/company GSC properties. Service accounts often cannot be added through the GSC UI, while OAuth immediately inherits the user's existing properties.
  • authorized_user JSON works as GOOGLE_APPLICATION_CREDENTIALS for this MCP server because it uses GoogleAuth keyFile under the hood.
  • OAuth ADC needs quota_project_id; without it, Search Console returns a 403 quota project error.
  • GSC data has a 2-3 day lag. Don't query today's date.
  • dataState="all" includes preliminary data that may change.
  • Max 25,000 rows per request. For high-volume sites, use filters to segment.
  • No Google Cloud IAM role is needed for GSC access. GSC permissions are separate from Cloud IAM.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Gsc Cli AI skill do?

Query Google Search Console data via MCP (mcporter). Use when checking search performance, impressions, clicks, CTR, rankings for $APP_DOMAIN or any verified property. Also use for finding SEO quick wins, checking indexing status, or managing sitemaps.

Why use Gsc Cli on TypingMind?

Because you install it once and use it with any model. Gsc Cli is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Gsc Cli in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/exiao/skills/tree/main/external-services/gsc-cli. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Gsc Cli?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Gsc Cli?

As many as you like. As long as a model supports skills, you can use Gsc Cli with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Gsc Cli AI skill free?

It is published on GitHub by exiao. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇