Agents and MCP

Search Console in Gemini CLI, from one command.

Gemini CLI can talk to MCP servers, but Search Console needs a Google Cloud project and credentials before any server can read it. LopeBase skips that: connect with Google once, run one command, and Gemini CLI can read your search data.

Read only access to Search Console. Nothing to paste into settings.json.

What it looks like in Gemini CLI

One question, one tool call, and an answer built on your own Search Console numbers.

gemini · lopebase

Which queries gained the most clicks this week across my sites?

read_sourcegsc-acmetop_queries

queryclicksimpr.pos.
free invoice generator3187,2404.1
invoice number format1222,9803.6
acme invoices971401.0

free invoice generator leads with 318 clicks from position 4. It is your biggest non brand search; the page behind it is worth keeping fresh.

No Google Cloud console

Skip creating a project, enabling the API, and downloading credentials. Connect with Google in LopeBase does it.

All your sites from one sign in

Every Search Console property you connect is ready, so Gemini CLI can compare them in one answer.

Easy to confirm

Type /mcp and LopeBase is listed with its tools. If something is wrong, it says so there.

Add LopeBase to Gemini CLI

Three steps. The first is the same for every app; the rest is specific to Gemini CLI.

  1. 01

    Connect Search Console to LopeBase. Start free, add your site, press Connect with Google, and pick the Search Console property. Domain and URL prefix properties both work. Google is only asked for read access.

  2. 02

    Run npx lopebase in your project folder. It signs this computer in and registers LopeBase with Gemini CLI, so you never paste a token into settings.json.

  3. 03

    Start Gemini CLI and check. Type /mcp to see LopeBase and its tools listed, then ask your question.

$ npx lopebase

Works on macOS, Linux, and Windows with Node 18 or later. The same command can also set up Claude Code, Codex, opencode, or Cursor Agent if you use more than one.

Search Console prompts that work well in Gemini CLI

Short, scriptable asks suit a terminal. Run them while you work.

Morning check

Did any of my sites lose more than 20% of clicks this week?

One line answer across every site.

search_performance

Track the searches you care about

Show daily clicks for 'invoice template' and 'invoice generator' over the last 90 days.

Pass the searches you name and get their daily history.

queries_daily

Find quick wins

List searches at position 8 to 20 with over 200 impressions.

The fastest pages to improve.

search_queries

Check a page before an edit

Which searches does /features show up for?

Know what a page earns before you change it.

page_queries

What Gemini CLI can read from Search Console

Seven datasets per site, read live from Search Console when you ask. Rankings and clicks cover the last 28 days, and tracked searches up to 90.

  • search_performanceThe site's last 7 days in one row.clicks · impressions · ctr · position
  • top_queriesThe top searches from the last 7 days.query · clicks · impressions · ctr · position
  • search_queriesEvery search over 28 days, up to 1,000 rows.query · clicks · impressions · ctr · position
  • top_pagesEach page's clicks and position over 28 days.page · clicks · impressions · ctr · position
  • page_queriesWhich searches each page shows up for.page · query · clicks · impressions · position
  • daily_searchOne row per day for the last 28 days.day · clicks · impressions · position
  • queries_daily90 days of daily numbers for searches you name.query · day · clicks · impressions · position

More on each dataset: Search Console MCP. Connecting in the console: the Search Console connector.

Other ways to get Search Console into Gemini CLI

LopeBase is not the only route. Here is how it compares with the usual one.

TopicA community MCP serverLopeBase
SetupA Google Cloud project, the API turned on, credentials, and an entry in settings.json.npx lopebase and Connect with Google.
CredentialsA key file path in your settings.Kept by LopeBase, encrypted. Gemini CLI never sees it.
Several sitesDepends on how access is set up for each.Every connected property, each by name.
More than searchSearch Console only.GA4, Bing, PostHog, and revenue on the same server.
Best whenYou want to run and change the server yourself.You want it working in a few minutes.

Search Console and Gemini CLI questions

Something else? Contact us.

Where does npx lopebase register the server?

With Gemini CLI's own MCP settings, using the command npx lopebase mcp. That command forwards to LopeBase with your saved sign in, so no token goes in settings.json.

Can I add it to Gemini CLI by hand?

Yes. Add a server named lopebase whose command is npx lopebase mcp, after signing in once with npx lopebase login.

Is this the same as the Gemini app?

No. This is for Gemini CLI in your terminal. LopeBase works in any client that can add a remote MCP server with sign in.

Does Google need to approve anything?

Only the one time Connect with Google screen, which asks for read access to Search Console.

What if my data looks two days behind?

That is Search Console itself. Google publishes search data with a delay of about two days.

Ask Gemini CLI about your search traffic.

Free for one product. No card. Agent access is on every plan.