
nonatofabio/local_faiss_mcp 是一个从 https://github.com/nonatofabio/local_faiss_mcp. 导入的 MCP 服务器候选
概览
nonatofabio/local_faiss_mcp 是一个从 https://github.com/nonatofabio/local_faiss_mcp. 导入的 MCP 服务器候选
概述(AI 翻译)
一款模型上下文协议(MCP)服务器,利用FAISS为检索增强生成(RAG)应用提供本地矢量数据库功能。
特色
核心能力
- 局部向量存储:使用FAISS进行高效的相似性搜索,无需外部依赖
- 文档摄取:自动将文档分块嵌入存储
- 语义搜索:使用带有句子嵌入的自然语言查询文档
- 持久存储:索引和元数据保存到磁盘
- MCP 兼容:可与任何兼容 MCP 的 AI 代理或客户端合作
v0.2.0 亮点
- CLI 工具:
local-faiss用于独立索引和搜索的命令 - 文档格式:原生支持PDF/TXT/MD,支持带pandoc的DOCX/HTML/EPUB
- 重新排序:两阶段回收和重新排序以获得更好效果
- 自定义嵌入:选择任意拥抱面嵌入模型
- MCP 提示词:内置的答案提取和总结提示
快速开始
或者用 Claude Code 配置 MCP 客户端(见配置),然后尝试:
Claude会从你的矢量存储中获取相关的文档块,并用它们来回答你的问题。
安装
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Local FAISS MCP Server
A Model Context Protocol (MCP) server that provides local vector database functionality using FAISS for Retrieval-Augmented Generation (RAG) applications.
Features
Core Capabilities
- Local Vector Storage: Uses FAISS for efficient similarity search without external dependencies
- Document Ingestion: Automatically chunks and embeds documents for storage
- Semantic Search: Query documents using natural language with sentence embeddings
- Persistent Storage: Indexes and metadata are saved to disk
- MCP Compatible: Works with any MCP-compatible AI agent or client
v0.2.0 Highlights
- CLI Tool:
local-faisscommand for standalone indexing and search - Document Formats: Native PDF/TXT/MD support, DOCX/HTML/EPUB with pandoc
- Re-ranking: Two-stage retrieve and rerank for better results
- Custom Embeddings: Choose any Hugging Face embedding model
- MCP Prompts: Built-in prompts for answer extraction and summarization
Quickstart
# Install
pip install local-faiss-mcp
# Index documents
local-faiss index document.pdf
# Search
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.
Installation
⚡️ Upgrading? Run pip install --upgrade local-faiss-mcp
From PyPI (Recommended)
pip install local-faiss-mcp
Optional: Extended Format Support
For DOCX, HTML, EPUB, and 40+ additional formats, install pandoc:
# macOS
brew install pandoc
# Linux
sudo apt install pandoc
# Or download from: https://pandoc.org/installing.html
Note: PDF, TXT, and MD work without pandoc.
From Source
git clone https://github.com/nonatofabio/local_faiss_mcp.git
cd local_faiss_mcp
pip install -e .
Usage
Running the Server
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:
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"local-faiss-mcp": {
"command": "local-faiss-mcp"
}
}
}