ZS

zackriya-solutions/mcp-markdown-rag

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

64 stars 18 forks Качество 64 Тренд 0Apache-2.0

zackriya-решения/mcp-markdown-rag — кандидат на сервер MCP, импортированный из https://github.com/zackriya-solutions/mcp-markdown-rag.

Обзор

zackriya-решения/mcp-markdown-rag — кандидат на сервер MCP, импортированный из https://github.com/zackriya-solutions/mcp-markdown-rag.

Обзор (машинный перевод)

MCP-Markdown-RAG

Сервер Model Context Protocol (MCP), который предоставляет ** местный движок RAG** для ваших документов разметки. Этот сервер использует файловую векторную базу данных Milvus для индексации ваших заметок, что позволяет Большим языковым моделям (LLM) выполнять семантический поиск и извлекать релевантный контент из ваших локальных файлов.

[!ПРИМЕЧАНИЕ] Этот проект находится в активном развитии. API и реализация могут быть изменены. Мы изучаем будущие улучшения, в том числе потенциальный порт для плагина Obsidian для бесшовной интеграции хранилища.

Ключевые особенности

Локально-первый и частный: все ваши данные обрабатываются и хранятся локально. Ничто не отправляется стороннему сервису для индексации.

Семантический поиск по Markdown: выходит за рамки простого поиска по ключевым словам. Найдите разделы документов, основанные на концептуальном значении.

Совместимость с MCP: интегрируется с любым поддерживаемым MCP хост-приложением, таким как Claude Desktop, Windsurf или Cursor.

**Простая обработка: предоставляет два простых инструмента ([T0] и [T1]) для управления и запроса вашей базы знаний.

️ Как это работает

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Показан фрагмент оригинального README. Открыть оригинал.

A Model Context Protocol (MCP) server that provides a local-first RAG engine for your markdown documents. This server uses a file-based Milvus vector database to index your notes, enabling Large Language Models (LLMs) to perform semantic search and retrieve relevant content from your local files.

[!NOTE] This project is in active development. The API and implementation are subject to change. We are exploring future enhancements, including a potential port to an Obsidian plugin for seamless vault integration.

🎯 Key Features

✅ Local-First & Private: All your data is processed and stored locally. Nothing is sent to a third-party service for indexing.

✅ Semantic Search for Markdown: Go beyond simple keyword search. Find document sections based on conceptual meaning.

✅ MCP Compatible: Integrates with any MCP-supported host application like Claude Desktop, Windsurf, or Cursor.

✅ Simple Tooling: Provides two straightforward tools (index_documents and search) for managing and querying your knowledge base.

⚙️ How It Works

The server operates in two main phases, exposing its functionality through MCP tools.

  1. Indexing:

    • The index_documents tool is called with a path to your markdown files.
    • The server reads the documents, splits them into logical chunks (e.g., by headings), and converts each chunk into a vector embedding.
    • These embeddings, along with their metadata (original text, file path), are stored in a local Milvus vector database.
    • You can run it in two modes:
      • Full Reindex (force_reindex=True): Clears and rebuilds the entire index from scratch.
      • Incremental Update (force_reindex=False, default): Automatically detects and re-indexes only changed files by comparing them against a tracking log. Deleted or modified chunks are pruned and replaced to keep the index up-to-date.
      • Recursive Indexing (recursive=False, default): Recursively indexes all subdirectories.
  2. Searching:

    • When you ask a question in a host application, it uses the search tool.
    • The server converts your query into a vector embedding.
    • It then performs a similarity search against the Milvus database to find the most semantically relevant document chunks.
Открыть полный README на GitHub

Установка

npx @modelcontextprotocol/inspector uv --directory /ABSOLUTE/PATH/TO/MCP-Markdown-RAG run server.py
Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

{ "mcpServers": { "markdown_rag": { "command": "uv", "args": [ "--directory", "/ABSOLUTE/PATH/TO/MCP-Markdown-RAG", "run", "server.py" ] } } }