# nonatofabio/local-faiss-mcp [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/nonatofabio/local_faiss_mcp  
**GitHub Stars:** 36  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/nonatofabio-local-faiss-mcp

## Description
Local FAISS vector database for RAG with document ingestion (PDF/TXT/MD/DOCX), semantic search, re-ranking, and CLI tools for indexing and querying

## Tools
Capabilities this server exposes over MCP:

- **document**
- **source**
- **query**
- **top_k**

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "local-faiss-mcp": {
    "command": "uvx",
    "args": ["local-faiss-mcp"]
  }
}
```

## Documentation

## What the nonatofabio/local-faiss-mcp MCP server does

The nonatofabio/local-faiss-mcp MCP server provides a local vector store for retrieval-augmented generation. It uses FAISS for similarity search and stores the index and document metadata on disk. Agents can add text or point the server at files, then search the indexed content with natural-language queries.

Supported native input formats are PDF, TXT, and Markdown. With pandoc installed, the server can also process DOCX, ODT, HTML, RTF, EPUB, and more than 40 additional formats. The package also includes command-line commands for indexing files and searching the resulting store outside an MCP conversation.

## How it works

When content is ingested, the server breaks it into chunks and creates sentence embeddings. FAISS uses those embeddings to retrieve passages related to a query. Results include document content and source information, allowing an agent to use the retrieved material in a RAG workflow.

The nonatofabio/local-faiss-mcp MCP server can optionally apply a second ranking stage. FAISS first retrieves a larger candidate set, then a cross-encoder scores and reorders those candidates before the requested top-k results are returned. Embedding and re-ranking models can be selected by their Hugging Face model names.

The server communicates through stdin and stdout for MCP tool calls. It can also provide prompts for extracting an answer with citations from retrieved chunks or producing a focused summary from multiple chunks.

## Setup and configuration

Install the package from PyPI with `pip install local-faiss-mcp`, or install the repository in editable mode. Start it with `local-faiss-mcp`, `python -m local_faiss_mcp`, or the server script, using `--index-dir` to select the persistence directory. If omitted, the current directory is used.

The default embedding model is `all-MiniLM-L6-v2`. Pass `--embed` to choose another Hugging Face sentence-transformers model. Re-ranking is disabled unless `--rerank` is supplied; that option accepts a cross-encoder model name and defaults to `BAAI/bge-reranker-base` when enabled.

The index directory is created as needed. The FAISS index is saved as `faiss.index`, while document metadata is stored in `metadata.json`. Install pandoc separately for extended document formats; PDF, TXT, and MD do not need it.

## Tools and capabilities

The MCP interface exposes the `document`, `source`, `query`, and `top_k` tools for document ingestion and retrieval. The package documentation describes ingestion as accepting either text or a file path, with an optional source identifier, and querying as accepting search text plus a result count.

The `local-faiss` CLI supports indexing individual files, multiple files, directories, recursive paths, and glob patterns. Its search command accepts a natural-language query and can change the number of returned results. Incremental indexing adds content to the existing index rather than replacing it.

## Limitations and notes

The nonatofabio/local-faiss-mcp MCP server is local: its FAISS index and metadata are written to the configured filesystem directory. It does not provide an external hosted vector database. DOCX, HTML, EPUB, and other extended formats depend on a separate pandoc installation, while the native formats do not.

The server requires Python 3.10 or newer. Re-ranking adds a cross-encoder stage and requires a selected model; without that option, retrieval uses the FAISS similarity results directly. The CLI reads MCP configuration from project and user configuration locations, creating a default local configuration when none is present.

_Full upstream README: https://allmcps.com/mcp/nonatofabio-local-faiss-mcp/readme_

