Duckdb RAG MCP Sample
D

Duckdb RAG MCP Sample

A project that uses DuckDB and Plamo-Embedding-1B to implement RAG functionality, supporting vectorized storage and retrieval of markdown files and providing an MCP service interface.
2.5 points
6.1K

What is the DuckDB RAG MCP Sample?

This is an example of a Retrieval Augmented Generation (RAG) system based on DuckDB and Plamo-Embedding-1B. It can convert markdown documents into vector form for storage and provide intelligent search functionality through the MCP protocol.

How to use the DuckDB RAG MCP Sample?

You need to first convert markdown documents into vector data, then configure the MCP server, and finally query through supported clients (such as Claude Desktop).

Applicable scenarios

Suitable for scenarios that require quickly searching a large amount of document content and obtaining relevant information, such as knowledge base Q&A and document retrieval.

Main features

Document vectorization
Extract and convert the content of markdown documents into vector representation
Vector search
Use DuckDB for efficient vector similarity search
Data persistence
Save and load vector data through the Parquet file format
MCP integration
Support providing search services through the Model Context Protocol
Advantages
A lightweight solution that does not require complex infrastructure based on DuckDB
Use the efficient Plamo-Embedding-1B model for vectorization
Support integration with multiple MCP clients
Data is stored in Parquet format, which is convenient for management and transmission
Limitations
Currently only supports markdown format documents
Need to manually convert documents into vector data
Performance may be limited by single-machine resources

How to use

Prepare documents
Put the markdown files to be searched into the specified directory
Generate vector data
Run the command to convert the documents into vectors and save them as a Parquet file
Build the server
Use PyInstaller to build a single-file executable server
Configure the MCP client
Configure the server path and parameters in the client (such as Claude Desktop)

Usage cases

Knowledge base Q&A
After vectorizing the company's internal knowledge base documents, obtain relevant information by asking natural language questions
Technical document search
Search for specific function descriptions in API documents

Frequently Asked Questions

Which document formats are supported?
How to update the search content?
Which MCP clients are supported?

Related resources

DuckDB official documentation
DuckDB database usage documentation
Introduction to Plamo-Embedding-1B
Technical blog about the vectorization model
MCP protocol description
Model Context Protocol specification

Installation

Copy the following command to your Client for configuration
Note: Your key is sensitive information, do not share it with anyone.

Alternatives

A
Airweave
Airweave is an open - source context retrieval layer for AI agents and RAG systems. It connects and synchronizes data from various applications, tools, and databases, and provides relevant, real - time, multi - source contextual information to AI agents through a unified search interface.
Python
6.1K
5 points
V
Vestige
Vestige is an AI memory engine based on cognitive science. By implementing 29 neuroscience modules such as prediction error gating, FSRS - 6 spaced repetition, and memory dreaming, it provides long - term memory capabilities for AI. It includes a 3D visualization dashboard and 21 MCP tools, runs completely locally, and does not require the cloud.
Rust
5.6K
4.5 points
B
Better Icons
An MCP server and CLI tool that provides search and retrieval of over 200,000 icons, supports more than 150 icon libraries, and helps AI assistants and developers quickly obtain and use icons.
TypeScript
6.7K
4.5 points
H
Haiku.rag
Haiku RAG is an intelligent retrieval - augmented generation system built on LanceDB, Pydantic AI, and Docling. It supports hybrid search, re - ranking, Q&A agents, multi - agent research processes, and provides local - first document processing and MCP server integration.
Python
10.2K
5 points
C
Claude Context
Claude Context is an MCP plugin that provides in - depth context of the entire codebase for AI programming assistants through semantic code search. It supports multiple embedding models and vector databases to achieve efficient code retrieval.
TypeScript
16.7K
5 points
A
Acemcp
Acemcp is an MCP server for codebase indexing and semantic search, supporting automatic incremental indexing, multi-encoding file processing, .gitignore integration, and a Web management interface, helping developers quickly search for and understand code context.
Python
18.0K
5 points
M
MCP
The Microsoft official MCP server provides search and access functions for the latest Microsoft technical documentation for AI assistants
15.0K
5 points
C
Cipher
Cipher is an open-source memory layer framework designed for programming AI agents. It integrates with various IDEs and AI coding assistants through the MCP protocol, providing core functions such as automatic memory generation, team memory sharing, and dual-system memory management.
TypeScript
0
5 points
N
Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
20.4K
4.5 points
G
Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
25.5K
4.3 points
M
Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
35.4K
5 points
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
72.2K
4.3 points
U
Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
32.2K
5 points
F
Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
65.5K
4.5 points
C
Context7
Context7 MCP is a service that provides real-time, version-specific documentation and code examples for AI programming assistants. It is directly integrated into prompts through the Model Context Protocol to solve the problem of LLMs using outdated information.
TypeScript
97.1K
4.7 points
G
Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
22.1K
4.5 points
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2026AIBase