npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@node2flow/gemini-file-search-rag-mcp

v1.0.2

Published

MCP server for Gemini RAG — manage File Search stores, upload documents, and query with AI-powered retrieval-augmented generation

Readme

Gemini File Search RAG MCP Server

smithery badge npm version License: MIT

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 --http

Server starts on port 3000 (configurable via PORT env var). MCP endpoint: http://localhost:3000/mcp


Configuration

| Environment Variable | Required | Description | |---|---|---| | GEMINI_API_KEY | Yes | Google Gemini API key (get one here) | | PORT | No | Port for HTTP server (default: 3000, only used with --http) |


All Tools (12 tools)

Store Management (4 tools)

| Tool | Description | |---|---| | gemini_create_store | Create a new file search store | | gemini_list_stores | List all file search stores | | gemini_get_store | Get store details | | gemini_delete_store | Delete a store (with optional force) |

Upload & Import (2 tools)

| Tool | Description | |---|---| | gemini_upload_to_store | Upload content directly to a store (text, base64) | | gemini_import_file_to_store | Import an existing Gemini file into a store |

Operations (2 tools)

| Tool | Description | |---|---| | gemini_get_operation | Check status of a store operation | | gemini_get_upload_operation | Check status of an upload operation |

Document Management (3 tools)

| Tool | Description | |---|---| | gemini_list_documents | List documents in a store | | gemini_get_document | Get document details | | gemini_delete_document | Delete a document from a store |

RAG Query (1 tool)

| Tool | Description | |---|---| | gemini_rag_query | Query documents using RAG with Gemini models |


Requirements

  • Node.js 18+
  • Google Gemini API key

How to Get a Gemini API Key

  1. Go to Google AI Studio
  2. Click "Create API key"
  3. 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 -- --http

License

MIT License - see LICENSE

Copyright (c) 2026 Node2Flow

Links