gemini-file-search-rag-mcp
Provides tools to manage file search stores, upload documents, import files, and perform RAG queries using Google's Gemini models.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@gemini-file-search-rag-mcpquery my store for the executive summary of Q4 earnings"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Gemini File Search RAG MCP Server
MCP (Model Context Protocol) server for Google's Gemini File Search (RAG). Manage file search stores, upload documents, and query with RAG through 12 tools.
Works with Claude Desktop, Cursor, VS Code, and any MCP client.
Quick Start
Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"gemini-rag": {
"command": "npx",
"args": ["-y", "@node2flow/gemini-file-search-rag-mcp"],
"env": {
"GEMINI_API_KEY": "your-gemini-api-key"
}
}
}
}Cursor / VS Code
Add to MCP settings:
{
"mcpServers": {
"gemini-rag": {
"command": "npx",
"args": ["-y", "@node2flow/gemini-file-search-rag-mcp"],
"env": {
"GEMINI_API_KEY": "your-gemini-api-key"
}
}
}
}HTTP Mode (Streamable HTTP)
For remote deployment or shared access:
GEMINI_API_KEY=your_key npx @node2flow/gemini-file-search-rag-mcp --httpServer starts on port 3000 (configurable via PORT env var). MCP endpoint: http://localhost:3000/mcp
Related MCP server: estudIA-MCP
Configuration
Environment Variable | Required | Description |
| Yes | Google Gemini API key (get one here) |
| No | Port for HTTP server (default: |
All Tools (12 tools)
Store Management (4 tools)
Tool | Description |
| Create a new file search store |
| List all file search stores |
| Get store details |
| Delete a store (with optional force) |
Upload & Import (2 tools)
Tool | Description |
| Upload content directly to a store (text, base64) |
| Import an existing Gemini file into a store |
Operations (2 tools)
Tool | Description |
| Check status of a store operation |
| Check status of an upload operation |
Document Management (3 tools)
Tool | Description |
| List documents in a store |
| Get document details |
| Delete a document from a store |
RAG Query (1 tool)
Tool | Description |
| Query documents using RAG with Gemini models |
Requirements
Node.js 18+
Google Gemini API key
How to Get a Gemini API Key
Go to Google AI Studio
Click "Create API key"
Copy the key and use it as
GEMINI_API_KEY
For Developers
git clone https://github.com/node2flow-th/gemini-files-search-rag-mcp-community.git
cd gemini-files-search-rag-mcp-community
npm install
npm run build
# Run in stdio mode
GEMINI_API_KEY=your_key npm start
# Run in dev mode (hot reload)
GEMINI_API_KEY=your_key npm run dev
# Run in HTTP mode
GEMINI_API_KEY=your_key npm start -- --httpLicense
MIT License - see LICENSE
Copyright (c) 2026 Node2Flow
Links
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/node2flow-th/gemini-files-search-rag-mcp-community'
If you have feedback or need assistance with the MCP directory API, please join our Discord server