JM

jesse-merhi/rag-anything-mcp

API development

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

39 stars 14 forks 品質 51 トレンド 12MIT

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

概要

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

概要(AI 翻訳)

包括的なRAG(Retrieval-Augmented generation)機能を提供するMCP(Model Context Protocol)サーバーは、 [raganything]ライブラリを使用して文書のディレクトリの処理とクエリを行うための機能です。

##特徴

-エンドツーエンドドキュメント処理:マルチモーダルコンテンツ抽出との完全なドキュメント解析

  • 複数のRAG: 画像、テーブル、式、テキスト処理のサポート
  • バッチ処理: 複数のファイルタイプでディレクトリ全体を処理します
  • 高度の照会: 両方とも純粋なテキストと多項式クエリ
  • 複数のクエリモード:ハイブリッド、ローカル、グローバル、ネイブ、ミックス、バイパスモード -Vision Processing:GPT-4Vを用いた高度な画像解析
  • 永続ストレージ: RAGインスタンスは、効率的なクエリのためにディレクトリごとに保持

利用可能なツール

##[process_directory 包括的な RAG インデックス作成のためのディレクトリ内のすべてのファイルをマルチモーダル サポートで処理します。

必須変数:

  • [directory_path: 処理するファイルを含むディレクトリへのパス
  • [api_key]: LLMと埋め込み機能のOpenAI APIキー

任意変数:

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

README

以下は原文 README の抜粋です。原文を見る。

RAG Anything MCP Server

An MCP (Model Context Protocol) server that provides comprehensive RAG (Retrieval-Augmented Generation) capabilities for processing and querying directories of documents using the raganything library with full multimodal support.

Features

  • End-to-End Document Processing: Complete document parsing with multimodal content extraction
  • Multimodal RAG: Support for images, tables, equations, and text processing
  • Batch Processing: Process entire directories with multiple file types
  • Advanced Querying: Both pure text and multimodal-enhanced queries
  • Multiple Query Modes: hybrid, local, global, naive, mix, and bypass modes
  • Vision Processing: Advanced image analysis using GPT-4V
  • Persistent Storage: RAG instances maintained per directory for efficient querying

Available Tools

process_directory

Process all files in a directory for comprehensive RAG indexing with multimodal support.

Required Parameters:

  • directory_path: Path to the directory containing files to process
  • api_key: OpenAI API key for LLM and embedding functions

Optional Parameters:

  • working_dir: Custom working directory for RAG storage
  • base_url: OpenAI API base URL (for custom endpoints)
  • file_extensions: List of file extensions to process (default: [‘.pdf’, ‘.docx’, ‘.pptx’, ‘.txt’, ‘.md’])
  • recursive: Process subdirectories (default: True)
  • enable_image_processing: Enable image analysis (default: True)
  • enable_table_processing: Enable table extraction (default: True)
  • enable_equation_processing: Enable equation processing (default: True)
  • max_workers: Concurrent processing workers (default: 4)

process_single_document

Process a single document with full multimodal analysis.

Required Parameters:

  • file_path: Path to the document to process
  • api_key: OpenAI API key

Optional Parameters:

  • working_dir: Custom working directory for RAG storage
  • base_url: OpenAI API base URL
  • output_dir: Output directory for parsed content
  • parse_method: Document parsing method (default: “auto”)
  • enable_image_processing: Enable image analysis (default: True)
  • enable_table_processing: Enable table extraction (default: True)
  • enable_equation_processing: Enable equation processing (default: True)

query_directory

Pure text query against processed documents using LightRAG.

Parameters:

  • directory_path: Path to the processed directory
  • query: The question to ask about the documents
  • mode: Query mode - “hybrid”, “local”, “global”, “naive”, “mix”, or “bypass” (default: “hybrid”)

query_with_multimodal_content

Enhanced query with additional multimodal content (tables, equations, etc.).

Parameters:

  • directory_path: Path to the processed directory
  • query: The question to ask
  • multimodal_content: List of multimodal content dictionaries
  • mode: Query mode (default: “hybrid”)

Example multimodal_content:

[
  {
GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →