local_faiss_mcp
by nonatofabio·★ 30·综合分 44
一个本地FAISS向量存储的MCP服务器,提供文档摄取和语义搜索功能。
ai-llmsearchdeveloper-tools
11
Forks
3
活跃 Issue
1 个月前
最近提交
2 天前
收录于
概述
Local FAISS MCP Server通过模型上下文协议(MCP)提供使用FAISS进行检索增强生成(RAG)应用的本地向量数据库功能。它允许用户摄取多种格式文档(PDF、TXT、MD原生支持,pandoc可支持40多种格式),进行分块、向量化存储,然后通过MCP工具执行语义搜索查询。服务器支持自定义嵌入模型和重排序以提高搜索相关性,适合为AI代理添加本地文档搜索功能的开发者和终端用户。
试试问 AI
装完之后,这里有 5 个你可以让 AI 做的事:
你:为Claude/Copilot/Agents添加本地文档搜索功能,用于RAG应用
你:创建具有语义搜索功能的个人知识库
你:构建能从本地文件检索相关信息的文档分析工具
你:支持哪些文档格式?
你:可以使用自定义嵌入模型吗?
什么时候选它
当你需要一个本地向量存储来构建 RAG 应用,且不需要外部依赖,同时支持多种文档格式和可选重排序功能时,选择它。
什么时候不要选它
不适合非常大的文档集合(>100万文档)或需要高可用性的分布式向量存储场景。
此 server 暴露的工具
从 README 抽取出 4 个工具ingest_documentdocument: string, source?: stringIngest a document into the vector store
query_rag_storequery: string, top_k?: numberQuery the vector store for relevant document chunks
extract-answerquery: string, chunks: arrayExtract the most relevant answer from retrieved document chunks with citations
summarize-documentstopic: string, chunks: array, max_length?: numberCreate a focused summary from multiple document chunks
可对比工具
chromadb-mcppinecone-mcpweaviate-mcp
安装
安装
从PyPI安装(推荐)
pip install local-faiss-mcp从源码安装
git clone https://github.com/nonatofabio/local_faiss_mcp.git
cd local_faiss_mcp
pip install -e .Claude Desktop配置
添加到Claude Desktop配置中:
{
"mcpServers": {
"local-faiss-mcp": {
"command": "local-faiss-mcp",
"args": ["--index-dir", "/path/to/index/directory"]
}
}
}FAQ
- 支持哪些文档格式?
- 原生支持TXT、MD和PDF格式。安装pandoc后,支持DOCX、HTML、EPUB和其他40多种格式。
- 可以使用自定义嵌入模型吗?
- 是的,您可以使用--embed参数在启动服务器时指定任何Hugging Face sentence-transformers模型。
local_faiss_mcp 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。