Skip to main content
Glama

DuckDB-RAG-MCP-Sample

by nananaman

DuckDB RAG MCP Sample

markdown 문서를 포함 벡터화하여 MCP에서 RAG로 설명할 수 있는 샘플입니다.

벡터화에는 Plamo-Embedding-1B 를 사용합니다.

기능

  • markdown 파일에서 텍스트 추출 및 벡터화
  • DuckDB를 사용하여 벡터 검색
  • Parquet 파일로 벡터 데이터 지속성
  • 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.py
MCP 클라이언트 설정

사용하려는 클라이언트에 따라 설정하십시오.

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 Sample은 Apache License, Version 2.0에서 제공됩니다.

-
security - not tested
A
license - permissive license
-
quality - not tested

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.

  1. 기능
    1. 사용방법
      1. 벡터 데이터 생성
      2. MCP 설정
      3. 개발 서버 시작
    2. 라이센스

      Related MCP Servers

      • A
        security
        F
        license
        A
        quality
        An MCP server for converting Markdown documents to PDF files.
        Last updated -
        1
        1
        JavaScript
      • A
        security
        A
        license
        A
        quality
        Converts various file formats to Markdown using the MarkItDown utility and can be integrated with MCP clients for seamless document processing and conversion.
        Last updated -
        26
        Python
        MIT License
      • A
        security
        A
        license
        A
        quality
        Vectorize MCP server for advanced retrieval, Private Deep Research, Anything-to-Markdown file extraction and text chunking.
        Last updated -
        3
        60
        67
        JavaScript
        MIT License
        • Apple
        • Linux
      • A
        security
        A
        license
        A
        quality
        An open-source platform for Retrieval-Augmented Generation (RAG). Upload documents and query them ⚡
        Last updated -
        1
        41
        5
        JavaScript
        MIT License

      View all related MCP servers

      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