Gemini Grounding MCP logo

Gemini Grounding MCP

by @brobertoblanko

Google-grounded Gemini search over MCP with citations, source lists, token usage, model controls, and optional fallback models.

Install Gemini Grounding MCP

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "brobertoblanko-gemini-grounding-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@brobertoblanko/gemini-grounding-mcp"
      ],
      "env": {
        "GEMINI_API_KEY": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Automated check passed— started and listed 3 tools correctly ().

Overview

@brobertoblanko/gemini-grounding-mcp connects MCP clients to Google Search through the Gemini API. Its search tool returns inline citations, a numbered source list, the queries sent to Google, and token usage for each request. It also supports URL Context and Code Execution, configurable models and thinking levels, and an optional backup model. Use it for research tasks that need current web information rather than model memory.

Use cases

  • Research current web information with cited answers
  • Verify facts against Google Search sources
  • Inspect token usage and searches for each request
  • Read named pages or run calculations through Gemini

Key features

  • Google Search grounding through Gemini
  • Inline citations and numbered source lists
  • Search-query and token-usage footers
  • URL Context and Code Execution support
  • Configurable models, thinking levels, and fallback models
  • Model discovery through the MCP interface

Tools3

What Gemini Grounding MCP lets your agent do. Expand a tool for its parameters.

Verified live~896 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

6/6 checks healthy over the last 21d

What it can do

From the 3 tools this server returned when we ran it; 3 declare their own safety hints.

Handles credentials · 2Makes network requests · 1Read-only tools · 3
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceSigned build
Package age100 days
Maintainers1

Observed 2026-11-09 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 4d ago via OSV.dev · @brobertoblanko/gemini-grounding-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads632Package downloads in the last 30 days.
Last commit7d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed3Callable tools this server registers over MCP.

How Gemini Grounding MCP works

What @brobertoblanko/gemini-grounding-mcp does

@brobertoblanko/gemini-grounding-mcp exposes Gemini-based web research to MCP clients. The main gemini-search tool sends a question to the Gemini API with Google Search grounding enabled, then formats the response with citation markers and a numbered list of sources.

Each response includes the searches Gemini performed and a token footer divided into input, output, and thinking tokens. This makes the search scope and per-request consumption visible. If Gemini uses URL Context or Code Execution, the resulting page-derived information, code, and output are included in the response.

The package is intended for research queries. It is not designed for production workloads or connections to sensitive systems.

How it works

The server runs as an MCP process and uses the official Google GenAI and Model Context Protocol packages. An MCP client starts it through npx, or the package can be installed for access to its command-line utility.

gemini-search accepts a query and can override the model or thinking level for that request. Without those overrides, it uses the saved configuration. Model and thinking settings are read when a call is made, so configuration changes apply to subsequent requests without restarting the client.

The response identifies incomplete generation, filtering, or other non-normal completion states. Citation markers are only inserted where the API supplies supporting information, and missing markers are counted. A configured backup model can be used after retries are exhausted; the response identifies when that fallback handled the request.

Setup and configuration

Node.js 22 or newer and a Gemini API key are required. Store the key in GEMINI_API_KEY before the MCP client starts the process. The key is not placed in source code or in the server's saved configuration.

Claude Code can register the package with npx -y @brobertoblanko/gemini-grounding-mcp, passing GEMINI_API_KEY through the client environment configuration. The package is fetched and cached on first use. A command-line invocation is also available through npx -p @brobertoblanko/gemini-grounding-mcp gemini-grounding "your query".

gemini-set-config saves the default model, thinking level, backup model, and search deadline. It never saves the API key. gemini-list-models reports models available to the configured API key and their token limits; an all option includes models outside the research shortlist.

Tools and capabilities

  • gemini-search performs research with Google Search, URL Context, and Code Execution in one request.
  • gemini-list-models lists available models and token limits, with an option to show the full model set and status information.
  • gemini-set-config persists model, thinking, fallback, and deadline settings.
  • Inline citations connect answer text to a numbered source list.
  • Response footers show searched queries, source counts, token usage, and model details.

Limitations and notes

Gemini API usage can be subject to free-tier limits, token charges, and separate Google Search grounding charges depending on the model and plan. The token footer helps inspect consumption, but pricing and limits are determined by Google.

Busy Gemini services may cause retries and longer response times. The server retries some unavailable requests before returning an error, and requests have a deadline. The command-line tool can print Google's status and message, with --debug enabling detailed diagnostics.

A manually selected model for a request disables the configured backup for that request. Claude Code asks for confirmation when gemini-set-config is called and does not allow that tool in claude -p mode.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Gemini Grounding MCP

@brobertoblanko/gemini-grounding-mcp is an MCP server that connects MCP clients to the Gemini API for Google-grounded research. Its main tools are `gemini-search` for cited web answers, `gemini-list-models` for available model details, and `gemini-set-config` for persistent model and search settings.

Run it through `npx -y @brobertoblanko/gemini-grounding-mcp` after setting `GEMINI_API_KEY`. MCP clients can start the package on demand, so a permanent installation is optional; the first `npx` invocation downloads and caches it.

Set `GEMINI_API_KEY` before the MCP client launches the server. The key is passed through the environment and is not stored in the server configuration.

Yes. It can be used with Cursor and other MCP-capable clients because it runs as a standard MCP process. Configure the client to launch the package with `npx` and provide `GEMINI_API_KEY` in its environment.

It places numbered markers in supported parts of the answer and adds a matching source list below the response. It also reports the queries Gemini sent to Google, while unsupported citation locations remain unmarked.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewGemini Grounding MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/brobertoblanko-gemini-grounding-mcp?style=directory)](https://allmcps.com/mcp/brobertoblanko-gemini-grounding-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/brobertoblanko-gemini-grounding-mcp"><img src="https://allmcps.com/api/badge/brobertoblanko-gemini-grounding-mcp?style=directory" alt="Gemini Grounding MCP on AllMCPs" /></a>