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
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。