LabscoMCP early access ↗
rinerebox1MCP SERVER

Deno Gemini Grounding MCP Server

Search-grounded answers from Gemini, run as a Deno MCP server with the network permission pinned to one host.

by rinerebox1 ↗Web Search EnginesCommunity

LABSCO SUMMARY

Written for Gemini CLI, and the README says so.

The author's own notes are the most useful part of the README: Cursor never managed to call the tools, and the client they got working was Gemini CLI on the Windows side rather than inside WSL. No Gemini CLI settings are published, so use the Docker configuration on this page in any client that launches stdio servers. Ignore the README's tool section: its four get_connpass_* entries are left over from the connpass server this began as. The code registers call_google_search, call_gemini_or_vertex_ai and get_random_greeting.

What it is

A Deno MCP server that puts Gemini's Google-search grounding behind a tool call. It runs from a local checkout or a Docker image, and the Deno permission flags in the documented launch restrict it to a single outbound host.

What you get

  • Gemini answers grounded in Google search — call_google_search — plus a plain Gemini or Vertex AI call, call_gemini_or_vertex_ai
  • A pinned network permission on the launch line: --allow-net=generativelanguage.googleapis.com, so the process can reach that host and nothing else
  • Three runtimes for the same server — Deno directly, a Node build via npm ci and npm run build, or Docker
  • Repeatable checks: deno task test:tokyo, deno task test:google_search and deno task test:google_search_simple, plus a one-line tools/list probe you can pipe into the server

Requirements

A Gemini API key as GEMINI_API_KEY, supplied through an --env-file or -e on the Docker run. Deno is the recommended runtime, and the client entry passes --allow-net=generativelanguage.googleapis.com, --allow-read and --allow-env alongside the env file. Docker is the alternative — docker compose run --rm deno-gemini-grounding-mcp-server as the client command, since MCP needs stdin and stdout. Build the image from a clone first — docker build -t deno-gemini-grounding-mcp-server . — since no published image exists.

Setup effort

Run a container — build the image from the repository, then point your client at it