Labsco
bixentemal logo

MCP-RAGNAR

from bixentemal

A local MCP server implementing Retrieval-Augmented Generation (RAG) with sentence window retrieval and support for multiple file types.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedAccount requiredAdvanced setup

MCP-RAGNAR - a local RAG MCP Server

A local MCP server that implements RAG (Retrieval-Augmented Generation) with sentence window retrieval.

Features

  • Document indexing with support for multiple file types (txt, md, pdf, doc, docx)
  • Sentence window retrieval for better context understanding
  • Configurable embedding models (OpenAI or local hugging face mode - i.e BAAI/bge-large-en-v1.5)
  • MCP server integration for easy querying

in SSE mode it will listen to http://localhost:8001/ragnar

python server/sse.py

in stdio mode

install locally as an uv tool

uv tool install .

Claude Desktop:

Update the following:

On MacOS: ~/Library/Application\ Support/Claude/claude_desktop_config.json

On Windows: %APPDATA%/Claude/claude_desktop_config.json

Example :

{
  "mcpServers": {
    "mcp-ragnar": {
      "command": "uvx",
      "args": [
        "mcp-ragnar"
      ],
      "env": {
        "OPENAI_API_KEY": "",
        "EMBED_ENDPOINT": "https://api.openai.com/v1",
        "EMBED_MODEL": "text-embedding-3-small",
        "MCP_DESCRIPTION": "My local Rust documentation",
        "INDEX_ROOT": "/tmp/index"
      }
    }
  }
}