Back to Home
ryo-aien icon

gemini-file-search-mcp-server

Verified Safe

by ryo-aien

Overview

Provides a Model Context Protocol (MCP) server exposing Google Gemini API's File Search capabilities for Retrieval-Augmented Generation (RAG).

Installation

Run Command
docker run -p 8080:8080 -e GEMINI_API_KEY=your_api_key gemini-file-search-mcp

Environment Variables

  • GEMINI_API_KEY
  • MCP_AUTH_TOKENS (optional, highly recommended for production)
  • LOG_LEVEL (optional, default: INFO)
  • PORT (optional, default: 8080, for HTTP mode)
  • MCP_TRANSPORT (optional, default: stdio)

Security Notes

No hardcoded secrets or 'eval' usage were found in the provided source code. Authentication via Bearer Token is supported and strongly recommended for production, with a clear warning logged if disabled. File uploads are handled securely using temporary files. Good practices for environment variable usage and token management are outlined in the README. The Cloud Run deployment example, while initially 'allow-unauthenticated', strongly emphasizes setting authentication tokens for production.

Similar Servers

Stats

Interest Score10
Security Score9
Cost ClassMedium
Avg Tokens2000
Stars1
Forks0
Last Update2025-12-18

Tags

Gemini APIFile SearchRAGMCP ServerPython