MCP server for saving and searching documents in RAGDB

MCP server for saving and searching documents in RAGDB

ragdb-mcp•bymusoukun

An MCP server that lets MCP-enabled chat clients vectorize and store Markdown documents in a RAG database and search them by question across LibSQL, Qdrant, or PostgreSQL backends.

License: Not specified•Runtime: Awaiting documentation review•Category: databases storage

WHAT IT DOES

  • •Stores Markdown documents by vectorizing them with an embedding provider such as OpenAI or Google.
  • •Provides question-answering RAG search and basic document search tools.
  • •Offers advanced search with metadata filters and semantic similarity search.
  • •Supports creating, deleting, and listing indexes as well as adding, updating, deleting, and listing documents.

BEST FOR

  • •Teams wanting a private document search assistant inside MCP-enabled chats.
  • •Bulk registering a collection of Markdown files for retrieval.
  • •Users needing a choice between local LibSQL or server-based Qdrant and PostgreSQL storage.

ABOUT RAGDB-MCP

MCP server for saving and searching documents in RAGDB is cataloged as an MCP server attributed to musoukun. An MCP server that lets MCP-enabled chat clients vectorize and store Markdown documents in a RAG database and search them by question across LibSQL, Qdrant, or PostgreSQL backends. It is categorized under databases storage. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCP server for saving and searching documents in RAGDB are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Which embedding providers can be used?

The README lists OpenAI or Google as embedding providers, configured via environment variables.

Does using LibSQL require a separate database server?

No; with LibSQL the database file is created automatically and no DB server is needed.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 59969d534633 · 采集于 2026-11-13 12:26:52 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

RAG MCP Server(RAGDB)

MCP対応チャットで、RAGDBを管理/検索できるMCPです。

🤖 MCP対応チャットでとMCPについて

  • このシステムをインストールすると、MCP対応チャットで文書をRAGDBに保存・ベクトル検索ができるようになります。
  • コマンドを入力するだけで、MCP対応チャットで文書を管理できます。
  • Markdown形式のドキュメントをベクトル化して保存します。

✨ できること

📚 文書の保存と検索

  • 文書を保存: Markdownファイルをemmbeddingでベクトル化してRAGDBに保存
  • 質問で検索: 「この技術の使い方は?」のような質問で検索
  • Markdownファイル一括登録: スクリプトMarkdownファイルをRAGDBに一括登録できます。

💾 3つのデータベース選択肢

  • LibSQL :ローカルファイルで動作し、DBサーバーを必要としません。
  • Qdrant :クラウド対応で、大量データ対応です。
  • PostgreSQL: 大量データ対応(テスト中ですが動作確認済)

🚀 始め方

前提条件

  • libsqlを利用する場合は、libsqlのデータベースファイルが自動作成されます。
  • PgvectorやQdrantを利用する場合はDBサーバーが必要です。(Docker環境をお勧めします。)
  • 埋め込みプロバイダーのAPIキー(OpenAI または Google)

VS CodeおよびClaude Desktopでの使用

手動インストールの場合、VS CodeのUser Settings (JSON)ファイルに以下のJSONブロックを追加してください。Ctrl + Shift + Pを押してPreferences: Open User Settings (JSON)と入力することで設定ファイルを開けます。

そのほかのDBの例は、jsonフォルダのサンプルをご覧ください。 INDEXについてはデフォルトでdocumentsを設定していて、必要に応じて追加してください。

{
    "mcpServers": {
        "rag-server": {
            "command": "node",
            "args": ["your-ragdb-mcp-path/rag-mcp/dist/index.js"],
            "env": {
                "RAG_DATABASE_TYPE": "libsql",
                "RAG_CONNECTION_URL": "file:your-ragdb-mcp-path/rag-mcp/libsql/rag.db",
                "EMBEDDING_PROVIDER": "google",
                "EMBEDDING_MODEL": "text-embedding-004",
                "EMBEDDING_API_KEY": "your-google-api-key",
                "EMBEDDING_DIMENSIONS": "768",
                "RAG_CHUNK_SIZE": "512",
                "RAG_CHUNK_OVERLAP": "50",
                "RAG_TOP_K": "5",
                "RAG_STRATEGY": "markdown",
                "AUTO_CREATE_INDEXES": "documents,technical", 
                "LOG_LEVEL": "info"
            }
        }
    }
}

環境変数の設定

環境変数説明例
RAG_DATABASE_TYPEデータベースタイプlibsql, pgvector, qdrant
RAG_CONNECTION_URLデータベース接続URL./database.db (LibSQL), postgresql://... (PostgreSQL)
RAG_QDRANT_URLQdrant接続URL(Qdrant使用時)http://localhost:6333
EMBEDDING_PROVIDER埋め込みプロバイダーopenai, google
EMBEDDING_MODEL埋め込みモデルtext-embedding-3-small, text-embedding-gecko@003
EMBEDDING_API_KEYAPIキーOpenAIまたはGoogleのAPIキー
RAG_CHUNK_SIZEチャンクサイズ(オプション)512
RAG_CHUNK_OVERLAPチャンクオーバーラップ(オプション)50
RAG_TOP_K検索結果数(オプション)5

利用可能なツール

ツール名説明パラメータ
create_indexインデックスを作成indexName: インデックス名, dimension?: ベクター次元数
delete_indexインデックスを削除indexName: インデックス名
list_indexesインデックス一覧を表示なし
add_documentMarkdownドキュメントを追加content: 文書内容, metadata?: メタデータ, chunkingOptions?: チャンキング設定
update_documentドキュメントを更新documentId: ドキュメントID, content?: 新しい内容, metadata?: メタデータ
delete_documentドキュメントを削除documentId: ドキュメントID, indexName?: インデックス名
search_documents基本的なドキュメント検索query: 検索クエリ, indexName?: インデックス名, options?: 検索オプション
rag_search質問応答形式のRAG検索question: 質問, indexName?: インデックス名, options?: 検索オプション
advanced_rag_searchフィルター機能付き高度検索query: 検索クエリ, filters?: メタデータフィルター, searchOptions?: 検索設定
semantic_similarity_searchセマンティック類似検索referenceText: 参照テキスト, indexName?: インデックス名, options?: 検索オプション
list_documentsドキュメント一覧を表示indexName?: インデックス名, limit?: 取得数, offset?: 開始位置, filter?: フィルター
get_rag_infoRAGシステム情報を表示なし

基本的な使用例

  1. インデックス作成:

    create_index indexName="my-docs"
    
  2. ドキュメント追加:

    add_document content="# プロジェクト概要\n\nこのプロジェクトは..." metadata={"title": "プロジェクト概要", "category": "技術文書"}
    
  3. 質問で検索:

    rag_search question="このプロジェクトの目的は何ですか?"
    
  4. ドキュメント一覧表示:

    list_documents limit=10
    

📄 ライセンス

自由に使用・改変・商用利用可能です。 MCPを通常使用する場合、商用利用は可能ですが

ただしRAGDBとのやり取りや処理は、mastraのライブラリを利用して実装しています。

mastraはElastic License 2.0のため、例えばMastraのPlayground部分をそのままSaasサービスとして 提供したりすることできないので注意してください。

詳しくは以下もご覧ください。 https://mastra.ai/ja/docs/faq#elastic-license-20-elv2

🤝 改善提案・バグ報告

不具合を見つけた方、改善アイデアをお持ちの方は、GitHubのIssuesまでお知らせください。


🎉 MCP対応チャットでがあなた専用の文書検索アシスタントになります!

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCP server for saving and searching documents in RAGDB from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/ragdb-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related databases storage MCP Servers

Alternative and complementary servers in the same category

View all in databases storage →
AIStor MCP server
mcp-server-aistor•minio

This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

Repository stats unavailable
Databases & Storage
InfluxDB v2 MCP Server
influxdb-mcp-server•idoru

A Model Context Protocol (MCP) server that exposes access to an InfluxDB v2 instance using the InfluxDB OSS API v2.

Repository stats unavailable
Databases & Storage