npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@seobandwagon/gsc-mcp

v0.1.0

Published

Google Search Console MCP server — bring your GSC data into Claude and other MCP clients.

Downloads

145

Readme

Google Search Console MCP

npm version CI License: MIT

A Model Context Protocol server that brings Google Search Console into Claude and other MCP clients. Query performance, inspect URLs, manage sitemaps, and surface SEO opportunities — all with your own Google OAuth credentials. No third-party proxy.

Looking for a no-setup hosted experience? Skip the OAuth dance and use the platform at seobandwagon.com — GSC, GA4, keyword research, and more, integrated in one place.


Install in Claude Desktop (one-click)

  1. Download gsc-mcp-<version>.mcpb from the latest release.
  2. Double-click the .mcpb file — Claude Desktop opens and asks for your Google OAuth Client ID and Secret (get them here).
  3. Pre-authenticate once via npx -p @seobandwagon/gsc-mcp gsc-mcp-auth (opens a browser to authorize your Google account).
  4. Restart Claude Desktop. Ask: "What are my top 10 queries for the last 30 days?"

That's it.

Install via npm (any MCP client)

# Install globally, or use npx in your client config
npm install -g @seobandwagon/gsc-mcp

Set credentials and authenticate once:

export GSC_CLIENT_ID="your-client-id"
export GSC_CLIENT_SECRET="your-client-secret"
gsc-mcp-auth

Add to your MCP client config (Claude Desktop example — ~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "google-search-console": {
      "command": "npx",
      "args": ["-y", "@seobandwagon/gsc-mcp"],
      "env": {
        "GSC_CLIENT_ID": "your-client-id",
        "GSC_CLIENT_SECRET": "your-client-secret"
      }
    }
  }
}

Restart your client.


What this does

15 tools across 6 surfaces:

| Surface | Tools | |---|---| | Sites | gsc_list_sites | | Search analytics | gsc_search_analytics, gsc_top_queries, gsc_top_pages, gsc_compare_periods | | URL inspection | gsc_inspect_url, gsc_bulk_inspect | | Sitemaps | gsc_list_sitemaps, gsc_submit_sitemap, gsc_delete_sitemap, gsc_index_coverage | | SEO analysis | gsc_analyze_opportunities, gsc_content_gaps, gsc_cannibalization_check | | Cache | gsc_clear_cache |

All read-only tools are annotated with readOnlyHint + idempotentHint. gsc_delete_sitemap is flagged destructiveHint and asks for confirmation. Every tool emits structuredContent matching a declared outputSchema, so clients that support structured tool output can filter and compose results directly.

Prompts included for one-line workflows: analyze-site, weekly-report, find-quick-wins.

Resources exposed at gsc://sites, gsc://site/<url>/summary, gsc://site/<url>/alerts for clients that surface resources.

What this does NOT do

  • No GA4. Google Analytics scope is requested but not exposed as tools yet.
  • No keyword research, backlink analysis, or SERP scraping. Use the hosted platform for those.
  • No writes beyond sitemap submit/delete.
  • No telemetry. No data leaves your machine except to Google's APIs.

Setup in detail

1. Get Google OAuth credentials

  1. Open Google Cloud Console → create or select a project.
  2. APIs & Services → Library → enable Google Search Console API.
  3. APIs & Services → Credentials → Create credentials → OAuth client ID → application type Desktop app.
  4. APIs & Services → OAuth consent screen → add your Google account as a test user (unless the app is published).
  5. Note the Client ID and Client Secret.

2. Authenticate

Run gsc-mcp-auth (after npm install -g @seobandwagon/gsc-mcp). A browser window opens, you grant access, and a refresh token is written to ~/.gsc-mcp/tokens.json with file mode 0600.

Note on MCPB: The one-click installer configures the server, but the auth flow still has to run in a terminal (it needs a browser callback). Install the npm package globally for the gsc-mcp-auth binary, run it once, then the MCPB-installed server uses the stored tokens.

3. Configure your MCP client

See above for Claude Desktop. For other clients, point their MCP config at npx -y @seobandwagon/gsc-mcp with the two env vars.

Example questions to try

  • "List my Search Console sites."
  • "Top 20 queries for https://example.com/ in the last 28 days, sorted by impressions."
  • "Compare this week vs last week for sc-domain:example.com."
  • "Inspect https://example.com/pricing — is it indexed?"
  • "Find cannibalization issues on my site over the last 90 days."
  • "What quick wins can I ship this week?"

Configuration

| Env var | Required | Default | Purpose | |---|---|---|---| | GSC_CLIENT_ID | Yes | — | Google OAuth Client ID | | GSC_CLIENT_SECRET | Yes | — | Google OAuth Client Secret | | GSC_REDIRECT_URI | No | http://localhost:3000/callback | OAuth callback URL (must match Cloud Console) | | GSC_TOKEN_PATH | No | ~/.gsc-mcp/tokens.json | Token file location | | GSC_CACHE_PATH | No | ~/.gsc-mcp/cache.db | Cache file location | | GSC_CACHE_TTL | No | 3600 | Cache TTL in seconds | | GSC_LOG_LEVEL | No | info | debug / info / warn / error |

Rate limits & caching

The server respects GSC quotas and caches responses to stay under them:

  • Search analytics: 200 req/min, responses cached 1h
  • URL inspection: 600/day (2000 for large properties), cached 24h
  • Sitemaps: 100 req/min, cached 15min

Clear the cache manually via the gsc_clear_cache tool when you need fresh data.

Security

See SECURITY.md for the threat model and vulnerability reporting process.

Short version: tokens are stored plaintext on disk with file mode 0600. Nothing leaves your machine except to googleapis.com. No telemetry.

Troubleshooting

Common issues and fixes: TROUBLESHOOTING.md.

Development

git clone https://github.com/seo-bandwagon/gsc-mcp.git
cd gsc-mcp
npm ci
npm run build
npm test

See CONTRIBUTING.md for workflow and PR expectations.

Build an MCPB bundle locally:

npm run bundle   # → gsc-mcp-<version>.mcpb

License

MIT © SEO Bandwagon