# Gemini File Search

MCP server for Google's Gemini File Search and RAG (Retrieval-Augmented Generation).

## Quick Start

```bash
# Connect this server (installs CLI if needed)
npx -y @smithery/cli@latest mcp add node2flow/gemini-file-search-rag

# Browse available tools
npx -y @smithery/cli@latest tool list node2flow/gemini-file-search-rag

# Get full schema for a tool
npx -y @smithery/cli@latest tool get node2flow/gemini-file-search-rag gemini_create_store

# Call a tool
npx -y @smithery/cli@latest tool call node2flow/gemini-file-search-rag gemini_create_store '{}'
```

## Direct MCP Connection

Endpoint: `https://gemini-file-search-rag--node2flow.run.tools`

**Required config:**
- `GEMINI_API_KEY` (query) — Get Gemini API Key at https://aistudio.google.com/apikey

## Tools (12)

- `gemini_create_store` — Create a new Gemini File Search store for RAG documents. Returns the created store resource. Use this to create a knowl…
- `gemini_list_stores` — List all Gemini File Search stores. Returns store names, display names, and timestamps. Use to see available knowledge …
- `gemini_get_store` — Get details of a specific Gemini File Search store by its resource name.
- `gemini_delete_store` — Delete a Gemini File Search store. Use force=true to also delete all documents inside it.
- `gemini_upload_to_store` — Upload content directly to a Gemini File Search store. Accepts text content or base64-encoded binary. For large files, …
- `gemini_import_file_to_store` — Import a file from the Gemini Files API into a File Search store. Use this for large files that were uploaded separatel…
- `gemini_get_operation` — Check the status of a store operation (create, delete, import). Returns whether the operation is done and any error det…
- `gemini_get_upload_operation` — Check the status of a file upload operation. Returns whether the upload is done and any error details.
- `gemini_list_documents` — List documents in a Gemini File Search store. Returns document names, display names, state, size, and MIME types.
- `gemini_get_document` — Get details of a specific document in a File Search store, including state, size, and metadata.
- `gemini_delete_document` — Delete a document from a File Search store. Use force=true to also delete associated chunks.
- `gemini_rag_query` — Query your documents using Gemini RAG. Sends a natural language query grounded in your File Search stores. Returns AI-g…

```bash
# Get full input/output schema for a tool
npx -y @smithery/cli@latest tool get node2flow/gemini-file-search-rag <tool-name>
```

## Resources

- `gemini://server-info` — Connection status and available tools for this Gemini RAG MCP server

## Prompts (2)

- `setup-rag` — Guide for setting up RAG — create stores, upload documents, and index content
- `query-rag` — Guide for querying your indexed documents using Gemini RAG

---

License: MIT
