Skip to main content
MCP server CX Codex

Local FAISS MCP Server — Claude Code MCP server for local RAG

An MCP server that keeps documents in a local FAISS vector index and answers queries by meaning. Useful when you want RAG without shipping files to a hosted service.

Install into Claude Code · Platform CLI All methods and platforms ↓
claude mcp add local-faiss-mcp -- uvx local-faiss-mcp
Open on GitHub

What Local FAISS MCP Server does

Documents go in through the ingest_document tool: the server splits them into chunks, embeds each one and writes the vectors to a FAISS index. query_rag_store takes a plain-language question and returns the closest chunks with their sources. Everything persists on disk as {index-dir}/faiss.index plus {index-dir}/metadata.json, so a restart does not wipe your store.

A local-faiss CLI covers indexing and searching straight from the shell. Pick an embedding model with --embed; the default is all-MiniLM-L6-v2. Adding --rerank turns on a two-stage search — FAISS pulls extra candidates, a cross-encoder rescores them, and the default model is BAAI/bge-reranker-base. Two MCP prompts ship with it: extract-answer for cited answers and summarize-documents for a summary across retrieved chunks.

PDF, TXT and MD parse out of the box. DOCX, HTML, EPUB and other formats need pandoc installed — without it those files simply will not load. Python 3.10 or newer is required.

What it helps with

  • pull one passage out of a pile of PDFs without scrolling through them
  • build a document index that never leaves your machine
  • get answers that point back to the exact source fragment
  • wire document search into an agent over MCP
  • reindex a folder of files from the terminal in one go

Example prompts for the agent

  • Ingest ./docs/report.pdf with ingest_document
  • Use query_rag_store to find how FAISS does similarity search
  • Run the extract-answer prompt over the retrieved chunks and cite the sources

How to install Local FAISS MCP Server

Platform CLI

claude mcp add local-faiss-mcp -- uvx local-faiss-mcp

uvx runs the command named after the package; if the README names another one, use uvx --from local-faiss-mcp <command>

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about Local FAISS MCP Server

How do I install Local FAISS MCP Server in Claude Code?

Run claude mcp add local-faiss-mcp -- uvx local-faiss-mcp. The tools become available in your session right after.

What does Local FAISS MCP Server do?

It stores documents in a local FAISS vector index and answers natural-language queries with matching chunks. No external service is involved.

Which document formats does it support?

PDF, TXT and MD work as-is. DOCX, HTML, EPUB and other formats require pandoc to be installed.

Similar MCP servers

All MCP servers for AI and ML →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor