gemini-grounded-mcp
Verified Safeby 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
node mcp-gemini-grounded.jsEnvironment 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
gemini-mcp-tool
A Model Context Protocol (MCP) server that enables AI assistants to interact with the Google Gemini CLI for comprehensive code and file analysis, structured edit suggestions, and creative brainstorming.
mcp-gemini-grounded-search
Provides grounded search functionality using Google's Gemini API, allowing MCP clients to perform web searches and retrieve up-to-date information with sources.
mcp-gemini-prompt-enhancer
A Model Context Protocol (MCP) server that provides a prompt optimization service for Large Language Models (LLMs) using Google Gemini, with advanced prompt engineering support and automatic PDF asset management.
GeminiMCP
Integrate Google's Gemini API for AI-powered tasks and search with Model Control Protocol (MCP) clients, focusing on developer-centric features like code analysis and context handling.