Skip to main content
Glama
senih25

GSC MCP

by senih25

GSC MCP

An extensible Model Context Protocol (MCP) server for Google Site Verification and Google Search Console. It uses the MCP Streamable HTTP transport and keeps Google OAuth credentials and tokens local.

Available tools

Tool

Purpose

get_verification_token

Get a FILE or META verification token for a URL-prefix site

verify_site

Verify site ownership after the file or meta tag is live

add_site_to_search_console

Add a verified URL-prefix property

submit_sitemap

Submit a sitemap for a property

list_sites

List Search Console properties

list_sitemaps

List submitted sitemaps and their status

Related MCP server: mcp-gsc-multi-account

Requirements

  • Node.js 20 or newer

  • A Google Cloud OAuth Desktop client

  • Site Verification API and Search Console API enabled in the Google Cloud project

Setup

npm ci
cp .env.example .env

Fill GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET in .env, then generate a strong MCP bearer token:

node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"

Put the generated value in MCP_AUTH_TOKEN, authorize Google once, and start the server:

npm run auth
npm start

The endpoints are:

  • MCP: http://127.0.0.1:8787/mcp

  • Health: http://127.0.0.1:8787/health

MCP requests must include Authorization: Bearer <MCP_AUTH_TOKEN>. To connect a remote MCP client, expose the local endpoint through a trusted HTTPS tunnel and keep bearer authentication enabled.

Architecture

src/index.js                    runtime composition
src/http-server.js              HTTP transport and bearer auth
src/server.js                   MCP server construction
src/google-client.js            reusable Google OAuth/API client
src/tools/index.js              central tool registry
src/tools/google-search-console.js
                                Search Console tool module

To add another MCP capability:

  1. Create one registrar module in src/tools/.

  2. Export a function with the signature registerFeatureTools(server, dependencies).

  3. Add that registrar to src/tools/index.js.

  4. Add contract tests under test/.

Keep API clients outside tool modules and inject them as dependencies. This keeps tools testable and prevents credentials from becoming part of the MCP layer.

Validation

npm test
npm run security:check
npm run check

CI runs the same deterministic checks on every push and pull request.

Security

.env, token*.json, client_secret*.json, private keys, dependencies, and logs are excluded from Git. The secret check scans only tracked files and fails on blocked credential filenames or high-confidence token patterns. See SECURITY.md.

A
license - permissive license
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    -
    quality
    A
    maintenance
    MCP server for Google Search Console API that enables querying search analytics, managing sites, inspecting URLs, and supporting domain delegation via service accounts.
    MIT
  • F
    license
    -
    quality
    D
    maintenance
    Enables managing multiple Google Search Console accounts through a single MCP server, providing tools for search analytics, quick win detection, period comparison, URL inspection and indexing, and sitemap management.
  • A
    license
    -
    quality
    D
    maintenance
    This MCP server provides LLMs with programmatic access to Google Search Console data and functionality, including search analytics, sitemap management, site management, and URL inspection.
    MIT
  • A
    license
    A
    quality
    B
    maintenance
    MCP server for Google Search Console, enabling querying search performance, listing properties, and inspecting URL indexing status from MCP-compatible clients.
    4
    12
    1
    MIT

View all related MCP servers

Related MCP Connectors

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/senih25/gsc-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server