Local Faiss MCP logo

Local Faiss MCP

by nonatofabio

Local FAISS storage for document ingestion, semantic search, optional re-ranking, and RAG workflows.

Install Local Faiss MCP

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "nonatofabio-local-faiss-mcp": {
      "command": "uvx",
      "args": [
        "local-faiss-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

The nonatofabio/local-faiss-mcp MCP server stores document embeddings in a local FAISS index for retrieval-augmented generation. It accepts text or document paths, chunks and embeds content, persists metadata to disk, and returns semantically relevant passages through MCP tools. PDF, TXT, and MD files work natively; DOCX, HTML, EPUB, and other formats require pandoc. Use it when an agent needs local document indexing and search without an external vector database.

Use cases

  • Index PDF, TXT, and Markdown documentation for local RAG
  • Search a persistent document collection with natural-language queries
  • Retrieve and re-rank passages before generating answers
  • Run batch or recursive document indexing from the CLI

Key features

  • Local FAISS vector storage with persisted metadata
  • Document ingestion and automatic chunking
  • Semantic search with configurable Hugging Face embeddings
  • Optional cross-encoder re-ranking
  • CLI commands for indexing and querying
  • MCP prompts for answer extraction and summarization

Tools4

What Local Faiss MCP lets your agent do. Expand a tool for its parameters.

Self-reported~6 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

28/28 checks healthy over the last 112d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 12d ago via OSV.dev · local-faiss-mcp (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars36Stargazers on the source repository.
Last commit7mo agoMost recent push to the default branch.
Tools exposed4Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How Local Faiss MCP works

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.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Local Faiss MCP

nonatofabio/local-faiss-mcp is an MCP server that connects AI agents to a local FAISS vector database for RAG. Its main tools handle document content, source identifiers, queries, and result limits through document, source, query, and top_k. It supports persistent indexing, semantic retrieval, and optional re-ranking.

Install it from PyPI with `pip install local-faiss-mcp`. You can also clone the repository and run `pip install -e .`; Python 3.10 or newer is required.

Configure it by starting the command with an index directory and optional model arguments, such as `local-faiss-mcp --index-dir ./.vector_store --embed all-mpnet-base-v2 --rerank BAAI/bge-reranker-base`. The index directory defaults to the current directory.

Yes, it works with Cursor because it communicates over standard MCP stdin/stdout and is documented as compatible with MCP clients. The README specifically demonstrates configuration with Claude Code, while the server does not require a client-specific integration.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewLocal Faiss MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/nonatofabio-local-faiss-mcp?style=directory)](https://allmcps.com/mcp/nonatofabio-local-faiss-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/nonatofabio-local-faiss-mcp"><img src="https://allmcps.com/api/badge/nonatofabio-local-faiss-mcp?style=directory" alt="Local Faiss MCP on AllMCPs" /></a>