Directory indexer
MCP server by peteretelej Verified · gh:peteretelej
Directory Indexer indexes local directories into a semantic search knowledge base for AI assistants. It is self-hosted and uses Qdrant with an embedding provider such as Ollama.
Install Directory indexer
Built from the published package, never by AI.
claude mcp add directory-indexer -- npx -y directory-indexerRun in your terminal. Add --scope user to use it in every project.
{
"mcpServers": {
"directory-indexer": {
"args": [
"-y",
"directory-indexer"
],
"command": "npx"
}
}
}Settings, Developer, Edit config. Paste into claude_desktop_config.json and restart.
{
"mcpServers": {
"directory-indexer": {
"args": [
"-y",
"directory-indexer"
],
"command": "npx"
}
}
}Add to ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (this project).
{
"servers": {
"directory-indexer": {
"args": [
"-y",
"directory-indexer"
],
"command": "npx"
}
}
}Add to .vscode/mcp.json. VS Code uses "servers", not "mcpServers".
codex mcp add directory-indexer -- npx -y directory-indexer{
"mcpServers": {
"directory-indexer": {
"args": [
"-y",
"directory-indexer"
],
"command": "npx"
}
}
}Add to ~/.gemini/config/mcp_config.json (all projects) or .agents/mcp_config.json (this project).
gemini mcp add directory-indexer npx -y directory-indexerGemini CLI was replaced by Antigravity CLI in June 2026 and remains only for enterprise licences and paid API keys.
MCP servers run with your permissions and can read what you give them access to. Some need an API key: check the README and add it under env in the directory-indexer block.
About
Directory Indexer turns local directories into a searchable knowledge base for AI assistants. It runs on your own machine or server and gives an assistant access to search, read, and work with your local files. Supported files include Markdown, plain text, code, JSON, YAML, CSV, TOML, and config files.
It uses an embedding provider, such as Ollama or OpenAI, to create vector embeddings of your files. The embeddings are stored in a Qdrant vector database for semantic search. The MCP server starts when your assistant connects, and indexing can run before, during, or after setup. Only changed files are reprocessed when you re-run indexing. It suits people who want self-hosted semantic search over their own notes, projects, and documents.
Written from the project's README and checked against it.
Tools it gives your assistant
server_infoShows the available workspaces and their statistics.
What you need
- Node.js 18 or later
- Docker, for running Qdrant and Ollama (optional if installed natively)
- Ollama with the nomic-embed-text model, or an OpenAI API key
- Qdrant vector database
Try asking
- Find API authentication examples
- Show me error handling patterns
- Find troubleshooting guides on SQL deadlocks
Good to know
- Supports text, code, data, and config files. PDFs and docx are not yet supported.
- Docker Ollama uses CPU only, without GPU acceleration.
- The OpenAI option requires a paid API key and sends data to OpenAI servers.
Security check
C- Downloads a script from the internet and runs itIn
README.md:curl -fsSL https://ollama.ai/install.sh | sh
Checked automatically: README.md, package.json. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to Directory indexer
All alternatives →Connects a Zotero research library to AI assistants such as Claude and ChatGPT through the Model Context Protocol. It lets the assistant search, read, annotate and add papers, in local mode or through the web API. Built for researchers who want their references available in chat.
AgentDB is a vector memory database for AI agents. It stores embeddings, indexes and learning state in one file and exposes 41 MCP tools to clients such as Claude Code, Cursor and Cline.
Genkitx MCP is listed as a Genkit plugin for Model Context Protocol interoperability. The source is the main Genkit framework README and does not describe this plugin, so its features cannot be confirmed.
QMD is an on-device search engine for markdown notes, meeting transcripts and documentation. It combines BM25 keyword search, vector search and LLM reranking, and exposes an MCP server for AI assistants.
RuVector is a Rust native vector database that gives AI agents persistent memory and local semantic retrieval. Its npm package includes an MCP server for MCP compatible clients, and it suits developers building agent memory in Node.js, Python, or Rust.
Gives AI coding agents persistent memory, so each new session starts where the last one left off. Works with Claude Code, Codex, Cursor, OpenCode and 11 more agents.
Compare with Zotero MCP, Agentdb or Genkitx MCP
Directory indexer: common questions
Which embedding providers does Directory Indexer support?
It supports Ollama, which is free and runs locally, and OpenAI, which requires a paid API key. The source recommends Ollama as the default option.
Does re-indexing process every file again?
No. The source says only changed files are reprocessed when you re-run indexing.
Can I search only part of my files?
Yes. Workspaces let you group directories into focused search areas, defined with WORKSPACE_NAME environment variables.
How do I install Directory indexer?
In Claude Code run claude mcp add directory-indexer -- npx -y directory-indexer. For Claude Desktop, Cursor and VS Code, paste the config shown above and restart. See the install guides.
Is Directory indexer the official server?
Directory indexer is published by gh:peteretelej from its verified domain in the official MCP Registry.
Is Directory indexer free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is Directory indexer safe to use?
It scores 67 of 100. Grades: maintenance A, licence A, quality C. Security check: grade C (downloads a script from the internet and runs it). Review the code before you install. How grades work.
What are alternatives to Directory indexer?
Similar MCP servers: Zotero MCP, Agentdb, Genkitx MCP, Qmd.
Does Directory indexer work with ChatGPT?
Not directly. It runs locally, and ChatGPT only connects to remote servers with a URL. Use it in Claude Code, Claude Desktop, Cursor, VS Code or Codex.
