Gsc (ahonn)

Marketing and SEOWeb search and scraping

A Model Context Protocol (MCP) server providing access to Google Search Console.

Your AI app calls the Gsc (ahonn) MCP server, which does the marketing and SEO and web search and scraping work and sends the result back to the chat.

About Gsc (ahonn)

Gsc (ahonn) is a community MCP server from ahonn, filed in our directory under marketing and seo and web search and scraping. A Model Context Protocol (MCP) server providing access to Google Search Console.

Gsc (ahonn) runs on your own machine: your AI app starts it with the command npx -y mcp-server-gsc and talks to it over standard input and output.

The README for Gsc (ahonn) lists tools such as siteUrl, startDate, endDate and days, which your AI app can call once the server is connected.

At a glance

Publisher
ahonn (community)
Runs
Locally on your machine
Install from
Node.js package on npm: mcp-server-gsc
Written in
TypeScript
License
MIT
GitHub stars
289

Tools Gsc (ahonn) gives your AI app

  • siteUrlA property (sc-domain:example.com, https://example.com/), a bare domain, or a page URL. The response shows the resolved property in meta.siteUrl.
  • startDateStart date (YYYY-MM-DD, Pacific Time).
  • endDateEnd date. Defaults to the latest day with final data.
  • daysRange length when startDate is omitted (default: 28).
  • dimensionsComma-separated list of query, page, country, device, date, hour, searchAppearance, brandedClassification.
  • typeWeb, image, video, news, discover, googleNews, webMultimodal.
  • aggregationTypeAuto, byNewsShowcasePanel, byProperty, byPage.
  • dataStateFinal, all, hourlyall.
  • rowLimitRows in this response (default: 100, max: 25000).
  • startRowZero-based row offset (default: 0).
  • responseFormatTsv (default) or json.
  • pageFilterPage URL expression.
  • queryFilterQuery expression.
  • filterOperatorOperator for pageFilter and queryFilter: equals, contains, notEquals, notContains, includingRegex, excludingRegex.
  • regexFilterRE2 expression that queries must match.
  • countryFilterISO 3166-1 alpha-3 country code, such as USA.
  • deviceFilterDESKTOP, MOBILE, TABLET.
  • searchAppearanceFilterA value from the searchAppearance dimension.
  • brandedClassificationFilterBRANDED or NONBRANDED. You cannot combine it with a query filter.
  • webMultimodalCannot be grouped by query.

Tool names as the Gsc (ahonn) README lists them. Your AI app shows the live list once Gsc (ahonn) is connected.

How to set up Gsc (ahonn)

  1. Install Node.js on the machine that runs your AI app, because Gsc (ahonn) starts with npx and downloads its package on first run.
  2. Check the Gsc (ahonn) README for keys or settings; the registry lists none that Gsc (ahonn) requires.
  3. Add Gsc (ahonn) to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Gsc (ahonn) tools to confirm the connection.
  5. Run one read-only task with Gsc (ahonn) first, such as a call to siteUrl, before you allow anything that writes or sends.

Gsc (ahonn) compared with similar servers

  • Sendgrid by codespar has fewer GitHub stars than Gsc (ahonn) (278 against 289); both are community servers, and both run locally.
  • Adloop by kLOsk has more GitHub stars than Gsc (ahonn) (306 against 289); both are community servers, and both run locally.
  • Osp Marketing Tools by open-strategy-partners has fewer GitHub stars than Gsc (ahonn) (271 against 289); both are community servers, and both run locally.

Before you connect Gsc (ahonn)

  • Give Gsc (ahonn) its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Gsc (ahonn) tool call until you trust what it does with them.
  • Treat text that Gsc (ahonn) fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Gsc (ahonn) on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Gsc (ahonn)

How marketing and sales teams put Gsc (ahonn) to work, by company size. Pick the size closest to yours and start Gsc (ahonn) on one use case.

Small business

  • A small business can ask Gsc (ahonn) which pages lost rankings this month and get a short fix list instead of a dashboard to interpret.
  • Owners writing their own content can use Gsc (ahonn) to check keywords and competitors before drafting, so each post targets a search people make.
  • A founder can use Gsc (ahonn) to research a market or a prospect in minutes, with sources cited, before a pitch or a pricing change.
  • Gsc (ahonn) runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Content teams can connect Gsc (ahonn) to plan briefs from live keyword data, then track which published pages moved after a refresh.
  • Growth teams can use Gsc (ahonn) to compare campaign performance across channels in one question, without exporting three reports.
  • Marketing teams can use Gsc (ahonn) to gather fresh data for content, such as stats, quotes and examples, with each source linked for checking.
  • Start with siteUrl and startDate, the tools Gsc (ahonn) lists first, and add more once the team trusts the results.

Enterprise

  • Enterprise SEO teams can run Gsc (ahonn) across many domains and markets to flag technical issues and cannibalized pages before a quarterly review.
  • Brand and AI search teams can use Gsc (ahonn) to watch how the company shows up in search and AI answers, with findings fed into the content roadmap.
  • Enterprise research and competitive intel teams can schedule Gsc (ahonn) to monitor many sources, with results stored and cited for review.
  • Gsc (ahonn) is a community server, so have security review the code and pin a version before Gsc (ahonn) touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Gsc (ahonn) README

From ahonn/mcp-server-gsc on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

Google Search Console MCP Server

A Model Context Protocol (MCP) server for querying, comparing, and diagnosing Google Search Console data.

Features

  • Full Search Analytics access: Query data with pagination, fresh data, hourly data, and all Search Console dimensions.
  • Period comparison: Compare two date ranges by page, query, country, or device.
  • SEO diagnostics: Find traffic drops, content decay, keyword cannibalization, CTR gaps, and quick wins.
  • Brand analysis: Split traffic into branded and non-branded segments.
  • Multi-site overview: Compare all Search Console properties in one call.
  • Batch URL inspection: Inspect up to 100 URLs with rate limiting and partial results.
  • Guided workflows: Use MCP prompts for a weekly report, a traffic-drop diagnosis, and an indexing audit.
  • Safe by default: The server is read-only until you set GSC_ALLOW_WRITE=true.
Sponsored by

macuse.app is a native macOS application that gives your AI superpowers by integrating AI assistants with macOS apps like Calendar, Mail, and Notes, plus universal UI control for any application. Supports Claude Desktop, Cursor, and Raycast with one-click setup. Privacy-first, runs locally.

Prerequisites

  • Node.js 18 or later
  • A Google Cloud project with the Search Console API enabled
  • A Google account or service account with access to a Search Console property

Installation

npm install mcp-server-gsc

Authentication Setup

Select one method. If you set GOOGLE_APPLICATION_CREDENTIALS, the server uses that file. If you do not set it, the server uses the saved OAuth login.

First, enable the API:

  1. Open the Google Cloud Console.
  2. Create a project or select a project.
  3. Enable the Search Console API.
Option A: OAuth login

Use this method to access the properties of your own Google account.

  1. Open APIs & Services > Credentials.

  2. Create an OAuth client ID of type Desktop app.

  3. Download the client JSON file.

  4. Run the login command:

    npx mcp-server-gsc auth login --client-secret /path/to/client_secret.json
    
  5. Approve the access in the browser.

The server saves the login to ~/.config/mcp-server-gsc/oauth-token.json with file mode 600.

To use write tools, add --write to the login command. To see the login state, run npx mcp-server-gsc auth status. To remove the saved login, run npx mcp-server-gsc auth logout.

Option B: Service account

Use this method for automation, shared use, and remote deployment.

  1. Open APIs & Services > Credentials.
  2. Create a Service Account.
  3. Create a key in JSON format and download it.
  4. Open Search Console and add the service account email (name@project.iam.gserviceaccount.com) as a user of the property.

Select Restricted for read-only use. Select Full to use write tools.

Usage

Claude Desktop Configuration
{
  "mcpServers": {
    "gsc": {
      "command": "npx",
      "args": ["-y", "mcp-server-gsc"],
      "env": {
        "GOOGLE_APPLICATION_CREDENTIALS": "/path/to/credentials.json"
      }
    }
  }
}

If you use OAuth login, remove the env block.

MCP Bundle (.mcpb)

To build a one-click bundle for clients that support MCPB, run:

pnpm run pack:mcpb

The command writes release/mcp-server-gsc-<version>.mcpb. The client asks for the credentials file during installation.

Codex Configuration

Add the server to ~/.codex/config.toml, or to .codex/config.toml in a trusted project. Use an absolute path for the credentials file.

[mcp_servers.gsc]
command = "npx"
args = ["-y", "mcp-server-gsc"]

[mcp_servers.gsc.env]
GOOGLE_APPLICATION_CREDENTIALS = "/path/to/credentials.json"
Write access (optional)

By default the server asks Google for the read-only scope (webmasters.readonly), so it cannot change anything in Search Console. To let it submit sitemaps and manage sites, set GSC_ALLOW_WRITE=true:

{
  "mcpServers": {
    "gsc": {
      "command": "npx",
      "args": ["-y", "mcp-server-gsc"],
      "env": {
        "GOOGLE_APPLICATION_CREDENTIALS": "/path/to/credentials.json",
        "GSC_ALLOW_WRITE": "true"
      }
    }
  }
}

The server then requests the webmasters scope. The account needs Full or Owner permission on the property. For the remote server, set GSC_ALLOW_WRITE to true as a Worker variable.

Without the flag, the server does not list submit_sitemap, delete_sitemap, add_site, and delete_site. A direct call returns an error that says how to turn them on.

"Request indexing" from the URL Inspection page is not part of the Search Console API, so no tool here can do it. The URL Inspection API only reads.

Remote Deployment (Cloudflare Workers)

The remote server uses OAuth. MCP clients sign in with Google, and only email addresses in ALLOWED_EMAILS can connect. All allowed users share the Search Console access of one service account. If OAuth is not fully configured, /mcp returns HTTP 500 and does not serve Search Console data.

  1. In Google Cloud, create an OAuth client ID of type Web application.

  2. Add https://<your-domain>/callback as an authorized redirect URI.

  3. Set the Worker secrets:

    wrangler secret put GOOGLE_CREDENTIALS          # Service account JSON
    wrangler secret put GOOGLE_OAUTH_CLIENT_ID
    wrangler secret put GOOGLE_OAUTH_CLIENT_SECRET
    wrangler secret put ALLOWED_EMAILS              # alice@example.com,bob@example.com
    wrangler secret put PUBLIC_URL                  # https://<your-domain>
    
  4. Deploy the Worker. Wrangler creates the OAUTH_KV namespace on the first deployment:

    pnpm run deploy
    
  5. Add https://<your-domain>/mcp to your MCP client and complete the sign-in.

Example for Claude Code:

claude mcp add --scope user --transport http gsc https://<your-domain>/mcp

Then run /mcp in Claude Code and select the server to sign in.

Example for Codex:

[mcp_servers.gsc]
url = "https://<your-domain>/mcp"

Then run codex mcp login gsc.

To end a user's access at once, remove the email address from ALLOWED_EMAILS.

The Worker also serves a public home page at / and a privacy policy at /privacy. These pages contain no Search Console data.

Available Tools

Search data
Tool What it does
search_analytics Queries performance data with filters and pagination
compare_periods Compares two date ranges and lists the top gainers and losers
multi_site_overview Compares totals across all or selected properties
search_analytics parameters

Required:

  • siteUrl: A property (sc-domain:example.com, https://example.com/), a bare domain, or a page URL. The response shows the resolved property in meta.siteUrl.

Optional:

  • startDate: Start date (YYYY-MM-DD, Pacific Time)

  • endDate: End date. Defaults to the latest day with final data

  • days: Range length when startDate is omitted (default: 28)

  • dimensions: Comma-separated list of query, page, country, device, date, hour, searchAppearance, brandedClassification

  • type: web, image, video, news, discover, googleNews, webMultimodal

  • aggregationType: auto, byNewsShowcasePanel, byProperty, byPage

  • dataState: final, all, hourly_all

  • rowLimit: Rows in this response (default: 100, max: 25000)

  • startRow: Zero-based row offset (default: 0)

  • responseFormat: tsv (default) or json

Filters:

  • pageFilter: Page URL expression
  • queryFilter: Query expression
  • filterOperator: Operator for pageFilter and queryFilter: equals, contains, notEquals, notContains, includingRegex, excludingRegex
  • regexFilter: RE2 expression that queries must match
  • countryFilter: ISO 3166-1 alpha-3 country code, such as USA
  • deviceFilter: DESKTOP, MOBILE, TABLET
  • searchAppearanceFilter: A value from the searchAppearance dimension
  • brandedClassificationFilter: BRANDED or NON_BRANDED. You cannot combine it with a query filter

Limits from Google:

  • The hour dimension uses hourly_all. The server selects it for you.
  • Google returns up to 10 days of hourly data.
  • webMultimodal cannot be grouped by query.

Example: Filter with a regular expression

{
  "siteUrl": "https://example.com/",
  "startDate": "2026-01-01",
  "endDate": "2026-01-31",
  "dimensions": "page,query",
  "regexFilter": "(AI|machine learning|ML)",
  "deviceFilter": "MOBILE",
  "rowLimit": 10000
}

Example: Read the next page

If hasMore in the # meta line is true, send nextStartRow as startRow:

{
  "siteUrl": "https://example.com/",
  "startDate": "2026-01-01",
  "endDate": "2026-01-31",
  "dimensions": "query",
  "rowLimit": 25000,
  "startRow": 25000
}
SEO analysis

These tools run fixed calculations on your Search Console data. They do not use a model or third-party benchmarks. The analysis tools and batch_url_inspect also return structuredContent that matches their outputSchema.

Tool What it finds
diagnose_site One-call diagnosis of traffic changes, drops, decay, top-page indexing, and sitemap errors
detect_quick_wins Query and page pairs in positions 4 to 10 with a low CTR. maxCtr and targetCtr are fractions, so 0.02 means 2%
detect_traffic_drops Pages that lost clicks, with a likely cause
detect_content_decay Pages whose clicks fell in each consecutive window
find_cannibalization Queries where several pages compete for impressions
find_ctr_opportunities Query and page pairs below the site's median CTR at the same position
brand_split Branded and non-branded traffic, using your brand terms

Google does not report anonymized queries in query rows, so query-level totals can be lower than property totals. brand_split reports the difference as unattributed.

If a tool reads maxRows rows, it sets dataTruncated to true. A page or query that is missing from truncated data is counted in unknownDueToTruncation. It is not reported as lost. To include more rows, increase maxRows.

Tools use the property that siteUrl resolves to and report it in meta.siteUrl. A failed tool call returns isError: true with a message that says how to fix it. multi_site_overview does not add metrics across properties, because a domain property and its URL-prefix properties can overlap.

Example: Find traffic drops

{
  "siteUrl": "sc-domain:example.com",
  "startDate": "2026-02-01",
  "endDate": "2026-02-28",
  "minDropPct": 25,
  "limit": 20
}
Indexing
Tool What it does
index_inspect Inspects one URL
batch_url_inspect Inspects up to 100 URLs and sends MCP progress notifications. It stops and returns partial results if Google reports a quota error

Google allows 2,000 inspections per site per day and 600 per minute.

Sitemap and site tools
Tool What it does Needs write access
list_sitemaps Lists the sitemaps of a property, with last submit and download time No
get_sitemap Shows one sitemap No
submit_sitemap Submits a sitemap. Google fetches it again within seconds Yes
delete_sitemap Removes a sitemap from the property. Its URLs stay indexed Yes
list_sites Lists the properties the account can see, with its permission level No
add_site Adds a property. It still has to be verified Yes
delete_site Removes a property from the account Yes

Prompts

Prompt Arguments Result
weekly_seo_report siteUrl, optional brandTerms A weekly report with changes, risks, and actions
diagnose_traffic_drop siteUrl, optional days Likely causes of a traffic change, with evidence
indexing_audit siteUrl, optional urls Index status, canonical, robots, and sitemap issues

Development

pnpm install
pnpm run build
pnpm test
Release

Releases use npm trusted publishing, so the repository stores no npm token.

  1. Update the version in package.json, package-lock.json, manifest.json, and src/server.ts.
  2. Add the version to CHANGELOG.md.
  3. Push a tag such as v0.4.0.

The Release workflow tests the package, publishes it to npm with provenance, and creates a GitHub release with the .mcpb bundle.

License

MIT

Contributing

Contributions are welcome! Please read our contributing guidelines before submitting pull requests.

Questions about Gsc (ahonn)

What is the Gsc (ahonn) MCP server?

A Model Context Protocol (MCP) server providing access to Google Search Console. Gsc (ahonn) is maintained by ahonn on GitHub at ahonn/mcp-server-gsc, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Gsc (ahonn) MCP server?

Add Gsc (ahonn) to your AI app's MCP config with the command npx -y mcp-server-gsc. In Claude Code, run claude mcp add --transport stdio gsc -- npx -y mcp-server-gsc. To run Gsc (ahonn) this way you need Node.js installed.

Does Gsc (ahonn) need an API key?

The registry lists no required keys for Gsc (ahonn). Check the Gsc (ahonn) README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Gsc (ahonn) an official MCP server?

No. Gsc (ahonn) is a community server maintained by ahonn. Community servers can be excellent; read the code and the open issues before you give Gsc (ahonn) access to company data.

What license is Gsc (ahonn) under?

Gsc (ahonn) is released under the MIT license, according to its GitHub repository. The license covers the code of Gsc (ahonn); the service it connects to has its own terms.