mcp-local-rag
v0.4.1Local 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.
| Parameter | Type | Description |
|---|---|---|
name * | string |
delete_collection
Delete a collection and all its indexed documents. This action cannot be undone.
| Parameter | Type | Description |
|---|---|---|
name * | string |
list_collections
List all collections by name.
get_collection_info
Get detailed information about a specific collection including its documents.
| Parameter | Type | Description |
|---|---|---|
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…
| Parameter | Type | Description |
|---|---|---|
collection * | string | |
file_paths * | array | |
extraction_method | string | |
force | boolean |
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…
| Parameter | Type | Description |
|---|---|---|
collection * | string | |
directory_path * | string | |
extraction_method | string | |
force | boolean | |
glob_pattern | string | |
recursive | boolean |
remove_documents
Remove one or more documents from a collection by their file paths.
| Parameter | Type | Description |
|---|---|---|
collection * | string | |
file_paths * | array |
list_documents
List all indexed documents in a specific collection.
| Parameter | Type | Description |
|---|---|---|
collection * | string |
search
Search for relevant document chunks using semantic similarity across all collections. Returns the most relevant text passages matching your query.
| Parameter | Type | Description |
|---|---|---|
query * | string | |
top_k * | integer |
search_collection
Search within a specific collection. Shorthand for search() with collection parameter.
| Parameter | Type | Description |
|---|---|---|
collection * | string | |
query * | string | |
top_k * | integer |
get_document_content
Saves the content of an indexed document to a Markdown file.
| Parameter | Type | Description |
|---|---|---|
collection * | string | |
file_path * | string | |
output_path * | string |