Skip to main content
The CLI provides two categories of commands: Interactive Admin Commands (for configuration and authentication) and the Tool Runner (to run SEO intelligence tools).

Interactive Admin Commands

These commands manage authentication, configuration, and diagnostics.

setup

Starts the interactive configuration wizard to connect your Google Search Console, Bing Webmaster Tools, or Google Analytics 4 accounts.
  • What it does: Opens a browser window for secure OAuth authorization and saves credentials.
  • Usage:

login

Triggers the OAuth login flow specifically to authorize a new account.
  • Usage:

logout

Revokes active OAuth tokens and logs out from all connected Google accounts.
  • Usage:

accounts

Manages connected search engine accounts.
  • Subcommands:
    • list: Display all authorized Google, Bing, and GA4 accounts along with their associated sites.
    • add-site: Authorize a specific site or domain for an account.
    • remove: Remove a connected account.
  • Usage:

sites

A quick shortcut to display all verified sites across all connected accounts.
  • Usage:

diagnostics

Runs diagnostic checks to troubleshoot connection errors, quota limits, and API authorization status.
  • Usage:

update

Triggers an automated check and updates the search-console-mcp package to the latest version.
  • Usage:

Tool Runner Command (run)

The run subcommand lets you execute any registered MCP tool.

Syntax

Passing Arguments

CLI arguments correspond directly to the properties defined in each tool’s Zod schema. You can pass them in two ways:
  1. Equals sign: --siteUrl=https://example.com
  2. Space separated: --siteUrl https://example.com
Boolean flags can be toggled on by passing --flag or turned off using --no-flag (e.g. --no-enabled).

Formatting Results

Renders tool outputs in your preferred layout:

Finding Tool Names & Options

You can list all available tools or inspect options for a single tool by appending --help:
To see the detailed schemas and metrics returned by each tool, refer to the Tools section in the MCP Server tab.