Notes RAG MCP Server

Notes RAG MCP Server

Enables semantic search over personal markdown notes by indexing them into a vector database and exposing search, reindex, and status tools via MCP.

Category
Visit Server

README

Notes RAG MCP Server

A Model Context Protocol (MCP) server for semantic search over markdown notes and documentation.

This server indexes your markdown notes into a Qdrant vector database using embeddings (defaulting to LiteLLM), and provides semantic search capabilities as an MCP tool, allowing LLMs to seamlessly search and retrieve context from your personal knowledge base.

Features

  • MCP Integration: Exposes search_notes, trigger_reindex, and index_status tools.
  • Smart Chunking: Splits markdown files by headings, ensuring context is preserved in chunks.
  • Incremental Indexing: Uses SQLite to cache file modification times and Qdrant points, only re-indexing changed files.
  • Web Dashboard: Includes an admin dashboard at /admin for managing indexed paths, viewing stats, and triggering re-indexing manually.
  • Parallel Processing: Speeds up indexing using concurrent thread pools.
  • Frontmatter Support: Parses YAML frontmatter for tags, categories, and other metadata to enrich the vector payload.

Tools Exposed

  • search_notes: Perform semantic search on markdown notes and documentation. Filters by query, folder, tag, and category.
  • trigger_reindex: Force an immediate directory scan to index new or updated files.
  • index_status: Get indexing statistics of the vault.

Environment Variables

  • QDRANT_URL: URL to the Qdrant instance (default: http://qdrant:6333).
  • LITELLM_URL: URL to LiteLLM instance for embeddings (default: http://litellm:4000/v1).
  • LITELLM_API_KEY: API key for embeddings (default: dummy).
  • EMBEDDING_MODEL: Embedding model to use (default: text-embedding-3-small).
  • COLLECTION_NAME: Qdrant collection name (default: notes_rag).
  • VAULT_PATH: Default path to the markdown notes vault (default: /containers/productivity/obsidian/shared).
  • CACHE_DB_PATH: Path to SQLite index cache DB (default: /app/data/index_cache.db).
  • CHUNK_SIZE: Max characters per chunk (default: 1500).
  • CHUNK_OVERLAP: Overlap between chunks (default: 200).

Running

Build and run the Docker container. Make sure to mount your markdown notes directory and a path for the persistent cache database:

docker build -t notes-rag-mcp .

# Replace /path/to/notes with the actual path to your markdown files
docker run -d \
  -p 3000:3000 \
  --env-file .env \
  -v /path/to/notes:/notes:ro \
  -v ./data:/app/data \
  notes-rag-mcp

Note: Make sure to update the VAULT_PATH environment variable to match the internal mounted path (e.g. /notes).

Connecting MCP Clients

Since this server runs via HTTP with Server-Sent Events (SSE), you can configure your AI client (like Claude Desktop or Gemini) to connect to the /sse endpoint.

Example configuration for an MCP client settings.json:

{
  "mcpServers": {
    "notes-rag": {
      "url": "http://localhost:3000/sse",
      "type": "sse",
      "trust": true
    }
  }
}

Changelog

  • v1.0.1: Updated Python MCP SDK SSE transport method from connect_retrying to connect_sse to fix AttributeError during initialization and ensure compatibility with modern MCP clients.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured