mcp-rag-server MCP Server

A Model Context Protocol (MCP) server that enables Retrieval Augmented Generation (RAG). It indexes your documents and serves relevant context to Large Language Models via the MCP protocol.

Local serverstdioMIT

What is the mcp-rag-server MCP Server?

mcp-rag-server is an MCP project maintained in the kwanleefrmvi/mcp-rag-server repository. The maintainer describes its purpose as “A Model Context Protocol (MCP) server that enables Retrieval Augmented Generation (RAG). It indexes your documents and serves relevant context to Large Language Models via…”. Read the project documentation for the complete scope.

Installation

The documented npm package is mcp-rag-server. The configuration below comes from the maintainer’s example; adapt its paths and account values to your environment.

Configuration values

The example declares BASE_LLM_API, EMBEDDING_MODEL, VECTOR_STORE_PATH, CHUNK_SIZE. Secret-looking values have been replaced with placeholders. Required and optional labels are shown only when the documentation states them.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
embedding_documentspath: string): Index documents under the given path
query_documentsquery: string, k?: number): Retrieve top k chunks (default 15)
remove_documentpath: string): Remove a specific document
remove_all_documentsconfirm: boolean): Clear the entire index (confirm=true)
list_documents): List all indexed document paths

How to install the mcp-rag-server MCP Server

{
  "mcpServers": {
    "rag": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-rag-server"
      ],
      "env": {
        "BASE_LLM_API": "http://localhost:11434/v1",
        "EMBEDDING_MODEL": "nomic-embed-text",
        "VECTOR_STORE_PATH": "./vector_store",
        "CHUNK_SIZE": "500"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
BASE_LLM_APIDeclared in the maintainer’s client configuration.Check documentation
EMBEDDING_MODELDeclared in the maintainer’s client configuration.Check documentation
VECTOR_STORE_PATHDeclared in the maintainer’s client configuration.Check documentation
CHUNK_SIZEDeclared in the maintainer’s client configuration.Check documentation