mcp-local-rag

v0.4.1
mcp-local-rag Checked 1 day ago Published 4 months ago

Local MCP server for RAG over PDFs, DOCX, images, and plaintext files.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

create_collection

Create a new collection for organizing documents. Collections allow you to scope searches to specific sets of documents.

ParameterTypeDescription
name *string

delete_collection

Delete a collection and all its indexed documents. This action cannot be undone.

ParameterTypeDescription
name *string

list_collections

List all collections by name.

get_collection_info

Get detailed information about a specific collection including its documents.

ParameterTypeDescription
name *string

index_files

Index one or more files into a collection. Supports PDF, DOCX, HTML, PPTX, XLSX, plaintext, and image files (JPG, PNG, BMP, TIFF, WebP, HEIC/HEIF). Files are automatically chunked, embedded, and stored for semantic search. Use force=True to re-index files even if unchanged. extraction_method controls conversion quality: 'auto' (default) uses Azure Document Intelligence if configured (best quality, private), otherwise Gemini AI for scanned/OCR pages and PyMuPDF for text-based pages; 'azure' explicitly uses Azure AI Document Intelligence for the whole document (processes within your Azure tenant…

ParameterTypeDescription
collection *string
file_paths *array
extraction_methodstring
forceboolean

index_directory

Index all supported files in a directory into a collection. Supports PDF, DOCX, HTML, PPTX, XLSX, plaintext, and image files (JPG, PNG, BMP, TIFF, WebP, HEIC/HEIF). Use glob_pattern to filter files (e.g., '*.pdf' for only PDFs, '*.png' for only PNGs). Set recursive=True to include subdirectories. extraction_method controls conversion quality: 'auto' (default) uses Azure Document Intelligence if configured (best quality, private), otherwise Gemini AI for scanned/OCR pages and PyMuPDF for text-based pages; 'azure' explicitly uses Azure AI Document Intelligence for the whole document (processes w…

ParameterTypeDescription
collection *string
directory_path *string
extraction_methodstring
forceboolean
glob_patternstring
recursiveboolean

remove_documents

Remove one or more documents from a collection by their file paths.

ParameterTypeDescription
collection *string
file_paths *array

list_documents

List all indexed documents in a specific collection.

ParameterTypeDescription
collection *string

search_collection

Search within a specific collection. Shorthand for search() with collection parameter.

ParameterTypeDescription
collection *string
query *string
top_k *integer

get_document_content

Saves the content of an indexed document to a Markdown file.

ParameterTypeDescription
collection *string
file_path *string
output_path *string