Which embedding providers are supported?
The server supports OpenAI, Ollama, Granite, and Nomic. Ollama with the `nomic-embed-text` model is recommended for best performance.
@kwanLeeFrmVi
Basic information
mcp-rag-server is a Model Context Protocol (MCP) server that enables Retrieval Augmented Generation (RAG) capabilities. It empowers Large Language Models (LLMs) to answer questions based on your document content by indexing and retrieving relevant information efficiently.
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mcp-rag-server-kwanleefrmvi": {
"command": "npx",
"args": [
"mcp-rag-server"
]
}
}
}Add documents from directory path or file path for RAG embedding and store to DB. Supported file types: .json, .jsonl, .txt, .md, .csv
Query indexed documents using RAG
Remove a specific document from the index by file path
Remove all documents from the index
List all document paths in the index
mcp-rag-server is a Model Context Protocol (MCP) server that enables Retrieval Augmented Generation (RAG). It indexes local documents and serves relevant context to Large Language Models, integrating with MCP-compatible clients.
Install globally (npm install -g mcp-rag-server) or run via npx. Set environment variables (BASE_LLM_API, EMBEDDING_MODEL, VECTOR_STORE_PATH, CHUNK_SIZE) then start the server. Use MCP tools like embedding_documents and query_documents to index and retrieve content. An example MCP client configuration is provided in the README.
The server supports OpenAI, Ollama, Granite, and Nomic. Ollama with the `nomic-embed-text` model is recommended for best performance.
It supports `.txt`, `.md`, `.json`, `.jsonl`, and `.csv` files.
Vectors are stored locally in a SQLite database via LangChain’s LibSQLVectorStore. The path is configured with the `VECTOR_STORE_PATH` environment variable.
Key variables are `BASE_LLM_API`, `EMBEDDING_MODEL`, `VECTOR_STORE_PATH`, and `CHUNK_SIZE`. An optional `LLM_API_KEY` can be set for providers that require it.
Install globally (`npm install -g mcp-rag-server`) and run `mcp-rag-server`, or use `npx mcp-rag-server`. Ensure all required environment variables are set before starting.
High-performance code intelligence MCP server. Indexes codebases into a persistent knowledge graph — average repo in milliseconds. 162 languages, sub-ms queries, 99% fewer tokens. Single static binary, zero dependencies.

Personal context for every AI: search, read, and write back to your private Markdown library of articles, threads, PDFs, notes, and captured ChatGPT/Claude/Gemini/Grok conversations. Remote server, OAuth 2.1 paste-and-au

Shared memory for AI coding agents. Claude Code, Cursor and Codex read your project's decisions, lessons and tasks before they act.
Project context your AI can query through MCP — with source evidence.
Local MCP server and CLI that keeps a Git-versioned, model-written index of a codebase and its database schema, so coding agents start each task with the whole system in view.
Comments