gemini-file-search-mcp
Verified Safeby 08car1118
Overview
Provides RAG search capabilities using the Gemini File Search API for AI assistants to manage and query documents.
Installation
uv run --directory /app/gemini-file-search-mcp file-search-mcpEnvironment Variables
- GEMINI_API_KEY
- GEMINI_MODEL
Security Notes
The `gemini_upload_file` tool takes a `file_path` parameter, which the server reads from the local filesystem. While the `_validate_file` method performs checks for existence, size, and MIME type, exposing this tool to untrusted users could potentially allow attempts at path traversal or access to unintended local files. However, within the context of an MCP server where the caller is a trusted AI assistant, this is a standard and expected pattern for file processing. No direct `eval` calls or unsanitized shell commands were found. API keys are managed via environment variables.
Similar Servers
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.
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.
gemini-research-mcp
An AI-powered research server utilizing Gemini models for both quick web searches with citations and comprehensive multi-step deep research, including query clarification and follow-up capabilities.
search-context
Provides semantic search over documentation using Google's Gemini File Search API, returning AI-generated answers with source citations.