DuckDB RAG MCP Sample
This is a sample that embeds and vectorizes a markdown document so that it can be explained using MCP and RAG.
We use Plamo-Embedding-1B for vectorization.
function
- Extract and vectorize text from markdown files
- Vector Searching with DuckDB
- Persisting vector data with Parquet files
- Vector search from MCP
How to use
Vector data generation
First, place the markdown files you want to search in a specific directory, then convert them to Parquet files with the following command.
Configuring MCP
Build
The following command will generate a single binary in dist/server
.
MCP Client Configuration
Please set it according to the client you want to use.
For Claude Desktop it looks like this:
For VECTOR_PARQUET, specify the file you just converted.
It is set as follows:
Start the development server
license
The DuckDB RAG MCP Sample is provided under the Apache License, Version 2.0.
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
An MCP server that enables RAG (Retrieval-Augmented Generation) on markdown documents by converting them to embedding vectors and performing vector search using DuckDB.
Related MCP Servers
- AsecurityFlicenseAqualityAn MCP server for converting Markdown documents to PDF files.Last updated -11JavaScript
- AsecurityAlicenseAqualityConverts various file formats to Markdown using the MarkItDown utility and can be integrated with MCP clients for seamless document processing and conversion.Last updated -26PythonMIT License
Vectorizeofficial
AsecurityAlicenseAqualityVectorize MCP server for advanced retrieval, Private Deep Research, Anything-to-Markdown file extraction and text chunking.Last updated -31517JavaScriptMIT LicenseAgentsetofficial
AsecurityAlicenseAqualityAn open-source platform for Retrieval-Augmented Generation (RAG). Upload documents and query them ⚡Last updated -1169JavaScriptMIT License