Context7
Feeds AI the latest docs for libraries and frameworks before it answers, so code it writes does not use outdated, removed functions.
Description from the maker (original English)
Local FAISS vector database for RAG with document ingestion, semantic search, and MCP prompts.
These three are never merged into one score: opinions, measurements and popularity are different things.
We have not written a plain-language summary for this one yet. Below are the facts we read from the registry.
Pick the AI app you use, then copy the settings.
You need
Which app do you use?
Pick your app above. We remember it, so next time the button says “Install in …”.
Open Claude Desktop → Settings → Developer → Edit Config, and paste this into claude_desktop_config.json
{
"mcpServers": {
"local-faiss": {
"command": "uvx",
"args": [
"local-faiss-mcp"
]
}
}
}Run this in your terminal
claude mcp add local-faiss -- uvx local-faiss-mcpPaste into .cursor/mcp.json in your project, or ~/.cursor/mcp.json
{
"mcpServers": {
"local-faiss": {
"command": "uvx",
"args": [
"local-faiss-mcp"
]
}
}
}Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.
Paste into .vscode/mcp.json in your project
{
"servers": {
"local-faiss": {
"type": "stdio",
"command": "uvx",
"args": [
"local-faiss-mcp"
]
}
}
}Your browser asks to open the app, then the app shows the settings and asks you to confirm. Key values are left empty for you to fill in.
This one runs on your computer, and ChatGPT can only connect to servers on the internet. Pick another app.
Your choice stays on this device in a cookie; no account needed.
These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.
Runs on your computer; the tool list appears in your AI app after you install it.
We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 10, 2026
The registry name was verified with the GitHub account nonatofabio, which owns the repo
We have not read this repo from GitHub yet
We have not read this repo from GitHub yet
This one runs on your computer; there is no internet endpoint
Runs on your computer and uses local settings instead
Runs on your computer; we can only read tool lists from internet endpoints
Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.
It passed 1 of 1 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.
The registry does not list a required key, though some servers ask you to sign in on first use.
It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).
The GitHub repo last changed –, and the latest version (0.2.0-rc.3) reached the registry 11 months ago.
Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Python (uv) on your computer.
In the same category: Context7, Codebase Memory, Exa
Servers in the same category from other makers, sorted by stars.
Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi
Feeds AI the latest docs for libraries and frameworks before it answers, so code it writes does not use outdated, removed functions.
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.
A Model Context Protocol (MCP) server that provides local vector database functionality using FAISS for Retrieval-Augmented Generation (RAG) applications.
local-faiss command for standalone indexing and search# Install
pip install local-faiss-mcp
local-faiss index document.pdf
local-faiss search "What is this document about?"
Or use with Claude Code - configure MCP client (see Configuration) and try:
Use the ingest_document tool with: ./path/to/document.pdf
Then use query_rag_store to search for: "How does FAISS perform similarity search?"
Claude will retrieve relevant document chunks from your vector store and use them to answer your question.
⚡️ Upgrading? Run pip install --upgrade local-faiss-mcp
pip install local-faiss-mcp
For DOCX, HTML, EPUB, and 40+ additional formats, install pandoc:
# macOS
brew install pandoc
sudo apt install pandoc
Note: PDF, TXT, and MD work without pandoc.
git clone https://github.com/nonatofabio/local_faiss_mcp.git
cd local_faiss_mcp pip install -e .
After installation, you can run the server in three ways:
1. Using the installed command (easiest):
local-faiss-mcp --index-dir /path/to/index/directory
2. As a Python module:
python -m local_faiss_mcp --index-dir /path/to/index/directory
3. For development/testing:
python local_faiss_mcp/server.py --index-dir /path/to/index/directory
Command-line Arguments:
--index-dir: Directory to store FAISS index and metadata files (default: current directory)--embed: Hugging Face embedding model name (default: all-MiniLM-L6-v2)--rerank: Enable re-ranking with specified cross-encoder model (default: BAAI/bge-reranker-base)Using a Custom Embedding Model:
# Use a larger, more accurate model
local-faiss-mcp --index-dir ./.vector_store --embed all-mpnet-base-v2
local-faiss-mcp --index-dir ./.vector_store --embed paraphrase-multilingual-MiniLM-L12-v2
local-faiss-mcp --index-dir ./.vector_store --embed sentence-transformers/model-name
Using Re-ranking for Better Results:
Re-ranking uses a cross-encoder model to reorder FAISS results for improved relevance. This two-stage "retrieve and rerank" approach is common in production search systems.
# Enable re-ranking with default model (BAAI/bge-reranker-base)
local-faiss-mcp --index-dir ./.vector_store --rerank
local-faiss-mcp --index-dir ./.vector_store --rerank cross-encoder/ms-marco-MiniLM-L-6-v2
local-faiss-mcp --index-dir ./.vector_store --embed all-mpnet-base-v2 --rerank BAAI/bge-reranker-base
How Re-ranking Works:
Popular re-ranking models:
BAAI/bge-reranker-base - Good balance (default)cross-encoder/ms-marco-MiniLM-L-6-v2 - Fast and efficientcross-encoder/ms-marco-TinyBERT-L-2-v2 - Very fast, smaller modelThe server will:
{index-dir}/faiss.index (or create a new one){index-dir}/metadata.json (or create new)The server provides two tools for document management:
Ingest a document into the vector store.
Parameters:
document (required): Text content OR file path to ingestsource (optional): Identifier for the document source (default: "unknown")Auto-detection: If document looks like a file path, it will be automatically parsed.
Supported formats:
Examples:
{
"document": "FAISS is a library for efficient similarity search...", "source": "faiss_docs.txt" }
{
"document": "./documents/research_paper.pdf" }
Query the vector store for relevant document chunks.
Parameters:
query (required): The search query texttop_k (optional): Number of results to return (default: 3)Example:
{
"query": "How does FAISS perform similarity search?", "top_k": 5 }
The server provides MCP prompts to help extract answers and summarize information from retrieved documents:
Extract the most relevant answer from retrieved document chunks with proper citations.
Arguments:
query (required): The original user query or questionchunks (required): Retrieved document chunks as JSON array with fields: text, source, distanceUse Case: After querying the RAG store, use this prompt to get a well-formatted answer that cites sources and explains relevance.
Example workflow in Claude:
query_rag_store tool to retrieve relevant chunksextract-answer prompt with the query and resultsCreate a focused summary from multiple document chunks.
Arguments:
topic (required): The topic or theme to summarizechunks (required): Document chunks to summarize as JSON arraymax_length (optional): Maximum summary length in words (default: 200)Use Case: Synthesize information from multiple retrieved documents into a concise summary.
Example Usage:
In Claude Code, after retrieving documents with query_rag_store, you can use the prompts like:
Use the extract-answer prompt with:
The prompts will guide the LLM to provide structured, citation-backed answers based on your vector store data.
The local-faiss CLI provides standalone document indexing and search capabilities.
Index documents from the command line:
# Index single file
local-faiss index document.pdf
local-faiss index doc1.pdf doc2.txt doc3.md
local-faiss index documents/
local-faiss index -r documents/
local-faiss index "docs/**/*.pdf"
Configuration: The CLI automatically uses MCP configuration from:
./.mcp.json (local/project-specific)~/.claude/.mcp.json (Claude Code config)~/.mcp.json (fallback)If no config exists, creates ./.mcp.json with default settings (./.vector_store).
Supported formats:
brew install pandoc (macOS) or apt install pandoc (Linux)Search the indexed documents:
# Basic search
local-faiss search "What is FAISS?"
local-faiss search -k 5 "similarity search algorithms"
Results show:
Add this server to your Claude Code MCP configuration (.mcp.json):
User-wide configuration (~/.claude/.mcp.json):
{
"mcpServers": { "local-faiss-mcp": { "command": "local-faiss-mcp" } } }
With custom index directory:
{
"mcpServers": { "local-faiss-mcp": { "command": "local-faiss-mcp", "args": [ "--index-dir", "/home/user/vector_indexes/my_project" ] } } }
With custom embedding model:
{
"mcpServers": { "local-faiss-mcp": { "command": "local-faiss-mcp", "args": [ "--index-dir", "./.vector_store", "--embed", "all-mpnet-base-v2" ] } } }
With re-ranking enabled:
{
"mcpServers": { "local-faiss-mcp": { "command": "local-faiss-mcp", "args": [ "--index-dir", "./.vector_store", "--rerank" ] } } }
Full configuration with embedding and re-ranking:
{
"mcpServers": { "local-faiss-mcp": { "command": "local-faiss-mcp", "args": [ "--index-dir", "./.vector_store", "--embed", "all-mpnet-base-v2", "--rerank", "BAAI/bge-reranker-base" ] } } }
Project-specific configuration (./.mcp.json in your project):
{
"mcpServers": { "local-faiss-mcp": { "command": "local-faiss-mcp", "args": [ "--index-dir", "./.vector_store" ] } } }
Alternative: Using Python module (if the command isn't in PATH):
{
"mcpServers": { "local-faiss-mcp": { "command": "python", "args": ["-m", "local_faiss_mcp", "--index-dir", "./.vector_store"] } } }
Add this server to your Claude Desktop configuration:
{
"mcpServers": { "local-faiss-mcp": { "command": "local-faiss-mcp", "args": ["--index-dir", "/path/to/index/directory"] } } }
--embed flag (default: all-MiniLM-L6-v2 with 384 dimensions)faiss.index, metadata saved as metadata.jsonDifferent models offer different trade-offs:
| Model | Dimensions | Speed | Quality | Use Case |
|---|
| all-MiniLM-L6-v2
Only the beginning is shown; read the rest in the repo