Skip to main content

flin-google-search-console-mcp

Read-only MCP server for Google Search Console, built to work well in Claude Desktop with a browser-based OAuth flow and local token storage.

For the prepared Claude Code plugin, see plugin/README.md. It requires Claude Code's secret configuration prompts and is separate from the desktop extension below. Directory submission is prepared, not yet approved.

Privacy Policy

See PRIVACY.md for data flows, storage, retention and deletion. The server sends requests to Google and returns results to your MCP client. It does not send Search Console data to flin GmbH. OAuth tokens are stored as local JSON files and are not encrypted by the server. Sensitive client settings in Claude and the server's token files are separate storage mechanisms.

Publisher: flin GmbH, Weinbergstrasse 31, 8006 Zürich, Switzerland. Privacy and security contact: flin@flin.agency. See SUPPORT.md.

Claude Desktop Quickstart

If your goal is simply "make this work in Claude Desktop", follow these steps in order.

1) Make sure the Google account has Search Console access

The Google account you use during login must already have access to at least one Search Console property.

Accepted access levels for the API include owner, full, and read access.

2) Create or choose a Google Cloud project

In Google Cloud:

  1. Create a new project or select an existing one.
  2. Enable the Google Search Console API for that project.

Official references:

In Google Cloud, configure the OAuth consent screen for the same project.

For most personal or team setups:

  • choose External
  • keep the app in Testing while you validate the integration
  • add your own Google account as a test user

Important:

  • If the app is External and still in Testing, users must be listed as test users
  • Google documents that test-user authorizations in testing mode can expire after 7 days

This MCP only requests one read-only scope:

  • https://www.googleapis.com/auth/webmasters.readonly

Official references:

4) Create OAuth credentials of type Desktop app

Create an OAuth client in the same Google Cloud project:

  1. Go to Credentials
  2. Click Create client
  3. Choose Desktop app
  4. Copy the generated:
    • client ID
    • client secret

You do not need to manually wire redirect URIs into Claude Desktop for this MCP. The desktop OAuth flow uses a local loopback callback handled by the running MCP process.

5) Add the MCP to Claude Desktop

Download flin-google-search-console-mcp-<version>.mcpb from the GitHub releases and open it in a current Claude Desktop version with MCPB UV runtime support. Alternatively, use Install Extension in the desktop extension settings.

Enter the Google OAuth client ID and client secret from step 4 and, optionally, a default property such as sc-domain:example.com. The secret field is marked sensitive. Continue with the login instructions below. Manual JSON editing is not required; the Google Cloud setup in steps 1–4 is still required.

The extension runs locally on macOS and Windows. Claude's UV runtime manages Python and installs the dependencies from the included lockfile. First startup requires internet access. The bundle contains no credentials or saved tokens.

To update, download and install the new .mcpb. Each bundle contains a specific server version and does not fetch newer server code with @latest. Saved tokens remain outside the extension directory. When switching from manual installation, use the same OAuth client and disable the old entry after verifying the extension to avoid duplicate tools.

Alternative: manual configuration

The existing PyPI installation remains available. Its minimum configuration is:

{
  "mcpServers": {
    "flin-google-search-console-mcp": {
      "command": "uvx",
      "args": ["flin-google-search-console-mcp@latest"],
      "env": {
        "GOOGLE_CLIENT_ID": "your_oauth_client_id",
        "GOOGLE_CLIENT_SECRET": "your_oauth_client_secret"
      }
    }
  }
}

If you want a default property so you do not have to pass site_url every time:

{
  "mcpServers": {
    "flin-google-search-console-mcp": {
      "command": "uvx",
      "args": ["flin-google-search-console-mcp@latest"],
      "env": {
        "GOOGLE_CLIENT_ID": "your_oauth_client_id",
        "GOOGLE_CLIENT_SECRET": "your_oauth_client_secret",
        "GOOGLE_SEARCH_CONSOLE_SITE_URL": "sc-domain:example.com"
      }
    }
  }
}

For local development from a checkout:

{
  "mcpServers": {
    "flin-google-search-console-mcp-local": {
      "command": "uv",
      "args": [
        "run",
        "--directory",
        "/absolute/path/to/flin-google-search-console-mcp",
        "flin-google-search-console-mcp"
      ],
      "env": {
        "GOOGLE_CLIENT_ID": "your_oauth_client_id",
        "GOOGLE_CLIENT_SECRET": "your_oauth_client_secret"
      }
    }
  }
}

Replace /absolute/path/to/flin-google-search-console-mcp with your local checkout path.

6) Restart Claude Desktop

After saving the MCP configuration, fully restart Claude Desktop so it reloads the local server definition.

7) Complete the first login inside Claude

Start with these prompts:

Run health_check for the Google Search Console MCP and show the full result.
List my Search Console sites.

On the first authenticated tool call, the MCP opens a browser window. Sign in with the Google account that has Search Console access and approve the request.

After that:

  • the token is stored locally
  • future access tokens refresh automatically
  • you do not need to paste a refresh token into Claude Desktop config

What the MCP stores locally

The MCP stores a local token JSON file after the first successful login.

New token directories are created with private permissions. Existing directories keep their permissions; on macOS and Linux, they must belong to the current user and must not be writable by other users. Token files are written with owner-only access.

Default locations:

  • macOS: ~/Library/Application Support/flin-google-search-console-mcp/token.json
  • Linux: ~/.config/flin-google-search-console-mcp/token.json
  • Windows: %APPDATA%\flin-google-search-console-mcp\token.json

If you want to override the location:

{
  "mcpServers": {
    "flin-google-search-console-mcp": {
      "command": "uvx",
      "args": ["flin-google-search-console-mcp@latest"],
      "env": {
        "GOOGLE_CLIENT_ID": "your_oauth_client_id",
        "GOOGLE_CLIENT_SECRET": "your_oauth_client_secret",
        "GOOGLE_SEARCH_CONSOLE_TOKEN_PATH": "/absolute/path/to/flin-google-search-console-mcp-token.json"
      }
    }
  }
}

Multiple Google accounts

You can connect multiple Google accounts and choose the account per tool call.

By default, named account tokens are stored next to the default token. To choose a dedicated token directory, set GOOGLE_SEARCH_CONSOLE_TOKEN_DIR:

{
  "mcpServers": {
    "flin-google-search-console-mcp": {
      "command": "uvx",
      "args": ["flin-google-search-console-mcp@latest"],
      "env": {
        "GOOGLE_CLIENT_ID": "your_oauth_client_id",
        "GOOGLE_CLIENT_SECRET": "your_oauth_client_secret",
        "GOOGLE_SEARCH_CONSOLE_TOKEN_DIR": "/absolute/path/to/search-console-tokens"
      }
    }
  }
}

Then pass account in tool calls:

{
  "tool": "list_sites",
  "args": {
    "account": "work"
  }
}

The first call for a new account opens the OAuth browser flow and stores a separate token, for example work.json. Account names may contain only letters, numbers, _, -, and ..

An account name must not resolve to the default token file, including case variants or filesystem aliases. With the default storage layout, token is reserved. Omit account to use the default account. Existing named account files remain supported.

First Prompts To Verify Everything Works

Use these in Claude Desktop after the server is configured.

Health check

Run health_check for the Google Search Console MCP and show the full result.

Confirm available properties

List my Search Console sites and tell me whether sc-domain:example.com is available.

Quick summary

Run get_site_summary for site_url sc-domain:example.com from 2026-04-01 to 2026-04-20 and show clicks, impressions, ctr, and position.

Top queries

Run get_top_queries for site_url sc-domain:example.com from 2026-04-01 to 2026-04-20 with row_limit 25 and show the top queries by clicks.

Top pages

Run get_top_pages for site_url sc-domain:example.com from 2026-04-01 to 2026-04-20 with row_limit 25 and show the top pages by clicks.

URL inspection

Run inspect_url for site_url sc-domain:example.com and inspection_url https://example.com/.

Property Format: Domain vs URL-prefix

This is one of the most common setup mistakes.

Examples:

  • Domain property: sc-domain:example.com
  • URL-prefix property: https://www.example.com/

Use the exact property string returned by list_sites. Do not guess.

What This MCP Exposes

  • health_check
  • list_sites
  • get_site_summary
  • query_performance
  • get_top_queries
  • get_top_pages
  • get_dimension_breakdown
  • inspect_url

Which Tool To Use

Recommended call order:

  1. health_check
  2. list_sites
  3. get_site_summary
  4. get_top_queries or get_top_pages
  5. query_performance for custom dimensions and filters
  6. inspect_url for indexability and canonical checks on a specific URL

Search Analytics Notes

  • query_performance uses the Search Analytics API under the hood
  • Search Analytics returns top rows, not guaranteed full exports
  • The MCP maps Google's positional keys[] rows into named dimensions objects

Supported knobs include:

  • dimensions
  • filters
  • search_type
  • aggregation_type
  • data_state
  • row_limit
  • start_row

Example Tool Calls

Site summary

{
  "tool": "get_site_summary",
  "args": {
    "site_url": "sc-domain:example.com",
    "start_date": "2026-04-01",
    "end_date": "2026-04-20"
  }
}

Top queries

{
  "tool": "get_top_queries",
  "args": {
    "account": "work",
    "site_url": "sc-domain:example.com",
    "start_date": "2026-04-01",
    "end_date": "2026-04-20",
    "row_limit": 25
  }
}

Query performance with filters

{
  "tool": "query_performance",
  "args": {
    "site_url": "sc-domain:example.com",
    "start_date": "2026-04-01",
    "end_date": "2026-04-20",
    "dimensions": ["page"],
    "filters": [
      {
        "dimension": "device",
        "operator": "equals",
        "expression": "MOBILE"
      }
    ],
    "row_limit": 50
  }
}

URL inspection

{
  "tool": "inspect_url",
  "args": {
    "site_url": "sc-domain:example.com",
    "inspection_url": "https://example.com/blog/seo-agent"
  }
}

Source Setup

If you want to run the MCP from source:

uv sync --extra dev
cp .env.example .env
# Fill .env values
uv run --env-file .env flin-google-search-console-mcp

Published Package

Run the latest published package directly:

uvx flin-google-search-console-mcp@latest

Troubleshooting

missing_configuration

  • GOOGLE_CLIENT_ID or GOOGLE_CLIENT_SECRET is missing from the MCP config

oauth_required

  • no usable token exists yet
  • the first browser-based login has not been completed
  • the stored refresh token is no longer usable and the browser flow must run again

permission_denied

  • the Google account used during login does not have access to the Search Console property

No sites returned

  • verify that the Google account really has Search Console access
  • confirm you logged into the correct Google account in the browser

Google shows an unverified or testing warning

  • this is usually expected while the app is in testing mode
  • make sure your Google account is added as a test user on the OAuth consent screen

Security

See the security review for checks, fixes and remaining limitations. Tokens must be private files (0600 on macOS/Linux); legacy token files with broader permissions must be restricted before use. The extension is unsigned; SHA256SUMS verifies download integrity, not publisher identity.

More Docs

Release on GitHub + PyPI

This repository publishes automatically with GitHub Actions:

  • CI: .github/workflows/ci.yml
  • Release: .github/workflows/release.yml triggered by git tags v*

CI tests the Python package, desktop bundle and Claude Code plugin on Linux, macOS and Windows. It also checks the plugin manifest and rejects stale copies of the runtime in plugin/. A release tag builds all formats and creates a GitHub Release with the .mcpb, plugin ZIP, their checksums and Python distributions. Only Python distributions go to PyPI.

A manual workflow run on a branch only validates and builds downloadable workflow artifacts. Publishing requires a version tag matching the project, package, plugin and lockfile versions. Publishing a directory listing requires the separate process described in the submission guide.

PyPI publication is optional: manually run the Release workflow on the version tag with publish_pypi enabled. It is independent of the GitHub download.

1) Configure PyPI Trusted Publisher (optional)

In PyPI project settings for flin-google-search-console-mcp, add a Trusted Publisher with:

  • Owner: flin-agency
  • Repository: flin-google-search-console-mcp
  • Workflow: release.yml
  • Environment: pypi

2) Cut a release

Follow the release checklist, commit and push the reviewed changes, then tag the prepared version:

git tag v0.1.5
git push origin v0.1.5

Metadata

Release files for flin-google-search-console-mcp 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flin-google-search-console-mcp 0.1.5
File Size Uploaded Provenance Actions
flin_google_search_console_mcp-0.1.5.tar.gz 286.6 kB With provenance Details for flin_google_search_console_mcp-0.1.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for flin-google-search-console-mcp 0.1.5
File Interpreter ABI Platform Actions
flin_google_search_console_mcp-0.1.5-py3-none-any.whl Python 3 none any Details for flin_google_search_console_mcp-0.1.5-py3-none-any.whl

Total release size: 305.4 kB

Release files / flin_google_search_console_mcp-0.1.5.tar.gz

Download URL flin_google_search_console_mcp-0.1.5.tar.gz
Size 286.6 kB
Tags Source
SHA-256 checksum
How to use checksums
7f006cc4dedcf72915c9aa6dac323ebe021baac26fee1fc6c59f20043ef396e1
BLAKE2b-256 checksum
How to use checksums
2e56673b97f0828f022d1664b383175632021ea7e84c701d8474ddb141c1bbb0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.

Transparency log

Release files / flin_google_search_console_mcp-0.1.5-py3-none-any.whl

Download URL flin_google_search_console_mcp-0.1.5-py3-none-any.whl
Size 18.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e568e401c6924eae156cb1c58fbc0ecc868d523d6d102de084d9e99e71541cbd
BLAKE2b-256 checksum
How to use checksums
6d113f7d7d82b0b953a68725004b248287f2486284fca875cf87d85d62f43874
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.

Transparency log

Security for flin-google-search-console-mcp 0.1.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for flin_google_search_console_mcp-0.1.5.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page