ZS

zackriya-solutions/mcp-markdown-rag

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

64 stars 18 forks 品質 64 トレンド 0Apache-2.0

zackriya-solutions/mcp-markdown-ragは[https://github.com/zackriya-solutions/mcp-markdown-rag.からインポートされたMCPサーバー候補です

概要

zackriya-solutions/mcp-markdown-ragは[https://github.com/zackriya-solutions/mcp-markdown-rag.からインポートされたMCPサーバー候補です

概要(AI 翻訳)

MCP-Markdown-RAGの特長

A モデルコンテキストプロトコル (MCP) は、Markdown ドキュメントの ローカルファースト RAG エンジン を提供するサーバーです。 このサーバーは、ファイルベースのMilvusベクターデータベースを使用して、メモをインデックス化し、大規模なランゲージモデル(LLM)を有効にして、セマンティック検索を実行し、ローカルファイルから関連コンテンツを取得できます。

[!NOTE] このプロジェクトは、アクティブな開発中です。 APIと実装は変更される場合があります。 私たちは、シームレスなボルトインテグレーション用のObsidianプラグインへの潜在的なポートを含む将来の拡張を探求しています。

重要な特徴

✅ローカルファースト&プライベート:すべてのデータを処理し、ローカルに保存します。 インデックス作成のためのサードパーティサービスに送信されることはありません。

✅MarkdownのSemantic Search:簡単なキーワード検索を超えて行きます。 概念的な意味に基づいて文書セクションを検索します。

✅MCP互換:Claude Desktop、Windsurf、CursorなどのMCP対応ホストアプリケーションと統合します。

✅Simple Tooling:知識ベースの管理とクエリを行うための2つの簡単なツール([index_documentsと[search)を提供します。

̇ 使い方

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

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.
GitHub で README 全文を見る

インストール

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" ] } } }