DuckDB-RAG-MCP-Sample
DuckDB RAG MCP 示例
这是一个嵌入和矢量化 markdown 文档的示例,以便可以使用 MCP 和 RAG 进行解释。
我们使用Plamo-Embedding-1B进行矢量化。
功能
从 markdown 文件中提取并矢量化文本
使用 DuckDB 进行向量搜索
使用 Parquet 文件保存矢量数据
从 MCP 搜索向量
Related MCP server: RAG-MCP
如何使用
矢量数据生成
首先,将要搜索的markdown文件放在特定的目录中,然后使用以下命令将其转换为Parquet文件。
uv run main.py --directory ~/path/to/markdown/files --parquet vectors.parquet配置 MCP
建造
以下命令将在dist/server中生成单个二进制文件。
uv run pyinstaller --clean --strip --noconfirm --onefile server.pyMCP 客户端配置
请根据您要使用的客户端进行设置。
对于 Claude Desktop 来说它看起来像这样:
对于 VECTOR_PARQUET,指定刚刚转换的文件。
uv run mcp install server.py -v VECTOR_PARQUET=/path/to/vectors.parquet设置如下:
{
"mcpServers": {
"DuckDB-RAG-MCP-Sample": {
"command": "/path/to/dist/server",
"env": {
"VECTOR_PARQUET": "/path/to/vectors.parquet"
}
}
}
}启动开发服务器
uv run mcp dev server.py执照
DuckDB RAG MCP 示例根据 Apache 许可证 2.0 版提供。
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceAn MCP server that indexes documents and serves relevant context to LLMs via Retrieval Augmented Generation (RAG).24536MIT
- Flicense-qualityDmaintenanceA Retrieval Augmented Generation MCP server that ingests documents into a local vector database and enables semantic search queries.10
- Alicense-qualityDmaintenanceMCP RAG Server is a Python MCP server that indexes documents in multiple formats (Markdown, text, PowerPoint, PDF) using multilingual-e5-large embeddings and enables vector search for retrieval-augmented generation.MIT
- Alicense-qualityCmaintenanceAn MCP server that enables semantic search over a private knowledge base via pgvector, with GitHub OAuth authentication and a RAG pipeline.11MIT
Related MCP Connectors
MCP server for AI dialogue using various LLM models via AceDataCloud
Markdown-first MCP server for Notion API with 8 composite tools and 39 actions.
An MCP server that gives your AI access to the source code and docs of all public github repos
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/nananaman/DuckDB-RAG-MCP-Sample'
If you have feedback or need assistance with the MCP directory API, please join our Discord server