gemini-embedding-2-mcp-server
A local MCP server that indexes files in a directory using Gemini Embedding 2, enabling AI agents to perform semantic search over local documents.
README
๐ gemini-embedding-2-mcp-server - Fast local search for AI tasks
๐ What this app does
gemini-embedding-2-mcp-server turns a folder on your PC into a local search tool for AI apps.
It scans files in a directory, builds embeddings with Gemini Embedding 2, and helps an AI agent find the right text fast. It works well for code, notes, docs, and other local files. It also supports visual context for files that include images or screen-based content.
๐ฅ๏ธ What you need
Before you start, make sure you have:
- A Windows PC
- An internet connection
- A Google API key for Gemini
- A folder you want to search
- Enough free space for your files and index data
For best results, use:
- Windows 10 or Windows 11
- 8 GB RAM or more
- A modern CPU
- At least 1 GB of free disk space for small folders
๐ฅ Download and set up
Visit this page to download the app:
- Open the link above in your browser
- Find the latest release
- Download the Windows file from the release assets
- Save the file to a folder you can find, ู
ุซู
Downloads - If the file is a ZIP file, right-click it and choose Extract All
- If the file is an
.exefile, double-click it to start
๐ช Run on Windows
If you downloaded a ZIP file
- Extract the ZIP file
- Open the extracted folder
- Look for the app file, such as
.exe - Double-click the file to run it
If Windows shows a security prompt
- Click More info
- Click Run anyway
This can happen when you run a new app for the first time.
๐ Set up your Gemini key
The app needs a Gemini API key to work.
- Open your Google AI Studio or Gemini API settings
- Create or copy your API key
- Paste the key into the app setup screen or config file
- Save your changes
If the app asks for a path or folder, choose the local folder you want it to index.
๐ Choose a folder to index
Pick the folder you want the app to search.
Good choices include:
- Project folders
- Notes folders
- Document folders
- Code folders
- Knowledge bases
Try to start with one folder. After that, you can add more if needed.
โ๏ธ Basic setup steps
- Start the app
- Enter your Gemini API key
- Select the folder you want to index
- Wait while the app scans your files
- Let it build the search index
- Connect your AI client or use the local MCP server settings
The first scan can take time if the folder is large.
๐ How it works
The app reads your files and turns them into embeddings. An embedding is a way to store the meaning of text so search can find the right result even when the words do not match exactly.
That helps with tasks like:
- Finding notes about a topic
- Looking up code examples
- Searching docs by meaning
- Finding related files
- Giving AI agents better local context
๐ง Good use cases
Use this app when you want an AI tool to work with your local files.
Common uses:
- Search through a codebase
- Find old project notes
- Ask an AI about local documents
- Build a local knowledge base
- Connect a folder to an MCP-aware app
- Improve retrieval for RAG workflows
๐๏ธ Supported content
The app is built for common file types used in daily work.
It can handle:
- Plain text files
- Markdown files
- Code files
- Notes
- Docs with text content
- Files that include visual context
For best results, keep files readable and well named.
๐ Use with AI apps
This is an MCP server, so it can connect with tools that support the Model Context Protocol.
That means an AI app can ask it to:
- Search files
- Find related content
- Pull matching text
- Use local folder context in answers
If you already use an MCP-compatible client, point it at this server after setup.
๐ First run checklist
Before you search for the first time, check these items:
- The app file is downloaded and opened
- Your API key is set
- The folder path is correct
- The folder has files to index
- The index has finished building
- The app is still running while you use it
๐ ๏ธ Common setup problems
The app does not open
Try this:
- Right-click the file
- Choose Run as administrator
- Make sure the file finished downloading
- Check that Windows did not block it
The index does not build
Try this:
- Check your API key
- Make sure your internet connection works
- Use a smaller folder first
- Remove files with bad names or broken content
Search results look weak
Try this:
- Use a better folder structure
- Add more text files
- Use clear file names
- Rebuild the index after changes
The app feels slow
Try this:
- Start with one folder
- Reduce very large file sets
- Close other heavy apps
- Keep the app on a fast drive if possible
๐ Tips for better search
You will get better results if you:
- Use short, clear file names
- Put files in tidy folders
- Keep text in simple formats
- Split very large notes into smaller files
- Avoid duplicate files
- Rebuild the index after big changes
Good folder structure helps the search engine find the right context fast.
๐งญ Typical workflow
A simple workflow looks like this:
- Download the app
- Run it on Windows
- Add your Gemini API key
- Select a folder
- Build the index
- Connect your AI tool
- Search your local content by meaning
๐ Release page
Use this page any time you want the latest Windows download:
๐ What makes it useful
This server is useful when you want local search that feels smart.
It helps because it:
- Searches by meaning, not just words
- Works with local folders
- Fits AI agent workflows
- Supports MCP clients
- Uses Gemini Embedding 2 for strong retrieval
๐งฐ File types that work best
These file types usually give the best results:
.txt.md.json.csv.py.js.ts.html
Large binary files are less useful unless they include text or extracted content.
๐ฑ๏ธ Simple daily use
After setup, day-to-day use is easy:
- Keep the app open
- Add new files to the watched folder
- Rebuild the index when needed
- Ask your AI app to search the folder
- Open the best match
๐ Helpful folder ideas
If you are not sure where to start, try one of these:
- Work notes
- Study notes
- Software project folder
- Research folder
- Personal knowledge folder
- Support docs folder
Start small. That makes setup easier and search faster.
๐ API key tips
Keep your API key private.
Use one key for your own setup and store it where the app expects it. If you replace the key later, rebuild the index if the app asks for it.
๐งช Best first test
After setup, test the app with a small folder that has a few text files.
For example:
- One note about a topic
- One code file
- One README file
Then search for a phrase or idea that appears in one of them. If that works, your setup is in good shape.
๐งญ Next step
Download the latest Windows release from the release page and run it on your PC
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.