Back to Home
alanflanders icon

gemini-grounded-mcp

Verified Safe

by alanflanders

Overview

An MCP server that provides a 'grounded_answer' tool, leveraging Google's Gemini API with Google Search grounding to answer factual questions and provide source citations.

Installation

Run Command
node mcp-gemini-grounded.js

Environment Variables

  • GEMINI_API_KEY

Security Notes

The server demonstrates good security practices: GEMINI_API_KEY is loaded from environment variables or a .env file, preventing hardcoding. All console.log output is redirected to stderr to prevent stdout corruption, which is critical for JSON-RPC. Uncaught exceptions and unhandled promise rejections are handled and logged. Communication occurs over standard I/O (stdio), limiting network exposure to the expected Gemini API calls. No dangerous functions like 'eval' or unsanitized shell executions are present. The 'debug-server.js' included in the repo also follows similar safe practices.

Similar Servers

Stats

Interest Score0
Security Score9
Cost ClassMedium
Avg Tokens1500
Stars0
Forks0
Last Update2025-12-13

Tags

GeminiGoogle SearchGroundingLLMCitationsNode.jsMCP