mcp-rag-server
@kwanLeeFrmVi
关于 mcp-rag-server
mcp-rag-server is a Model Context Protocol (MCP) server that enables Retrieval Augmented Generation (RAG) capabilities. It empowers Large Language Models (LLMs) to answer questions based on your document content by indexing and retrieving relevant information efficiently.
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"mcp-rag-server-kwanleefrmvi": {
"command": "npx",
"args": [
"mcp-rag-server"
]
}
}
}工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is mcp-rag-server?
mcp-rag-server is a Model Context Protocol (MCP) server that enables Retrieval Augmented Generation (RAG). It indexes local documents and serves relevant context to Large Language Models, integrating with MCP-compatible clients.
How to use mcp-rag-server?
Install globally (npm install -g mcp-rag-server) or run via npx. Set environment variables (BASE_LLM_API, EMBEDDING_MODEL, VECTOR_STORE_PATH, CHUNK_SIZE) then start the server. Use MCP tools like embedding_documents and query_documents to index and retrieve content. An example MCP client configuration is provided in the README.
Key features of mcp-rag-server
- Index documents in .txt, .md, .json, .jsonl, and .csv formats
- Customizable chunk size for text splitting
- Local vector store powered by SQLite via LangChain’s LibSQLVectorStore
- Supports multiple embedding providers (OpenAI, Ollama, Granite, Nomic)
- Exposes MCP tools and resources over stdio for seamless integration
Use cases of mcp-rag-server
- Build a RAG pipeline for local document corpora
- Provide LLMs with context from private or offline files
- Index and query large collections of markdown or code documentation
- Enable question-answering systems over custom datasets
FAQ from mcp-rag-server
Which embedding providers are supported?
The server supports OpenAI, Ollama, Granite, and Nomic. Ollama with the nomic-embed-text model is recommended for best performance.
What file formats can be indexed?
It supports .txt, .md, .json, .jsonl, and .csv files.
How does the server store vectors?
Vectors are stored locally in a SQLite database via LangChain’s LibSQLVectorStore. The path is configured with the VECTOR_STORE_PATH environment variable.
What configuration variables are required?
Key variables are BASE_LLM_API, EMBEDDING_MODEL, VECTOR_STORE_PATH, and CHUNK_SIZE. An optional LLM_API_KEY can be set for providers that require it.
How do I run the server?
Install globally (npm install -g mcp-rag-server) and run mcp-rag-server, or use npx mcp-rag-server. Ensure all required environment variables are set before starting.
记忆与知识 分类下的更多 MCP 服务器
Notion MCP Server
awkoyNotion MCP server for Claude, Cursor, ChatGPT & Claude Desktop. Connect AI agents to Notion via Model Context Protocol — pages, databases, blocks, comments, files.
JupyterMCP - Jupyter Notebook Model Context Protocol Integration
jjsantos01A Model Context Protocol (MCP) for Jupyter Notebook
Notion MCP Server
makenotionOfficial Notion MCP Server
Ultimate Google Docs & Drive MCP Server
a-bonusThe Ultimate Google Docs, Sheets, Drive, Gmail, & Google Calendar MCP Server. This MCP (primarily for use in Claude Desktop) gains full access to your google suite and lets claude do its thing.
Obsidian MCP Server
cyanheadsRead, write, search, and surgically edit Obsidian vault notes, tags, and frontmatter via MCP. STDIO or Streamable HTTP.
评论