RAGBuddy

RAGBuddy

MCP server that enables coding agents to retrieve project context, semantically search indexed documentation, and read specific documents from registered repositories.

Category
访问服务器

README

RAGBuddy

A multi-project RAG (Retrieval-Augmented Generation) platform for coding agents and developers. RAGBuddy provides project-aware access to documentation and knowledge through a web dashboard with AI chat, CLI, and MCP server — all powered by the same underlying core.

What it is

RAGBuddy indexes the docs/ folder (configurable) of one or more registered Git repositories into Qdrant, a vector database, and exposes that index three ways:

  • CLI — ragbuddy ingest/sync/search/hook/project/mcp/web
  • Web dashboard — register projects, browse indexed files, upload extra documents, search, chat with a project's indexed docs, run ingest/sync with a live log, review sync history, toggle auto-sync, and copy per-project MCP config, all from a browser
  • MCP server — a coding agent working in your repo can call get_project_context for a quick orientation, then search_project_docs to find the architecture doc, feature spec, or issue writeup relevant to what it's doing right now, instead of relying on whatever happened to fit in its context window

Features

  • 🧠 Multi-project RAG with project-isolated retrieval
  • 💬 Web AI chat over project knowledge
  • 🔌 MCP server for coding agents
  • 📚 Repository documentation indexing
  • 📎 Upload PDF, Word, Excel, Markdown, CSV, and text documents
  • 🔄 Incremental synchronization using content hashes
  • 🪝 Git post-commit auto-sync
  • 🗄️ Single Qdrant collection with project-level isolation
  • 🧩 Ollama and OpenAI-compatible embedding providers
  • 🖥️ Web Dashboard and CLI using the same core implementation

Architecture

RAGBuddy system architecture

Coding Agents / Web Chat
          │
          ▼
       RAGBuddy
          │
    ┌─────┴─────┐
    │           │
   MCP       Web / CLI
    │           │
    └─────┬─────┘
          ▼
     RAG Pipeline
          │
          ▼
       Qdrant

Each project is isolated using a project field in the Qdrant payload. Retrieval operations are always filtered by project.

See docs/steering/architecture.md for the detailed architecture.

Quick Start

Requirements

  • Node.js 18+
  • npm
  • Docker
  • Qdrant
  • Optional: Ollama for local embeddings

Install

git clone <this-repository>
cd ragbuddy

npm install
npm run build

cp .env.example .env

Start Qdrant:

docker compose up -d

Configure Embeddings

For local Ollama:

EMBEDDING_PROVIDER=ollama
EMBEDDING_BASE_URL=http://localhost:11434
EMBEDDING_MODEL=bge-m3

Then:

ollama pull bge-m3

OpenAI-compatible embedding providers are also supported.

See docs/steering/setup.md for configuration details.

Register a Project

ragbuddy project register <id> <repository>

Example:

ragbuddy project register my-project /path/to/my-project

Projects can also be managed from the Web Dashboard.

Index & Sync

Initial indexing:

ragbuddy ingest <project-id>

Incremental synchronization:

ragbuddy sync <project-id>

Install Git auto-sync:

ragbuddy hook install <project-id>

RAGBuddy uses the Git repository as the source of truth. Qdrant acts as a rebuildable search index.

Web Dashboard

RAGBuddy includes a web dashboard for managing projects, documents, RAG search, AI chat, ingestion, synchronization, and MCP configuration.

Project Overview

Project overview

Project Documents

Project documents

Project Search

Project search

AI Chat

AI Chat

Start the dashboard:

npm run web

Open:

http://localhost:4300

For frontend development:

cd web
npm install
npm run dev

MCP

RAGBuddy exposes project knowledge through MCP.

Available tools:

Tool Purpose
get_project_context Get a compact overview of the current project
search_project_docs Semantic search over project knowledge
get_project_document Read a specific document
list_project_knowledge List indexed project knowledge

Example:

claude mcp add ragbuddy -- node /absolute/path/to/ragbuddy/dist/cli/index.js mcp

The current project can be resolved automatically from the agent's working directory.

See docs/steering/mcp.md for MCP configuration and usage.

Teaching your agent to actually use it

The four tools above are visible to your agent automatically once the MCP server connects — no extra config needed for that. But an agent only reaches for a tool it happens to think of; it won't necessarily call get_project_context before diving into a task just because the tool exists. Add this to the registered project's AGENTS.md / CLAUDE.md so your agent knows when to use each one:

## Knowledge Retrieval Strategy (ragbuddy MCP)

Before implementing a non-trivial feature in this project:
  1. Use `get_project_context` first to understand the project (identity, Git status, tech stack/architecture summaries, doc inventory).
  2. Use `search_project_docs` for architecture, business rules, historical issues, conventions, and documented behavior.
  3. Use `get_project_document` to read a full doc found via search when a snippet isn't enough.
  4. Use `list_project_knowledge` to see everything currently indexed when orienting from scratch.
  5. Read the actual source code before making implementation decisions — treat it as the final authority for current behavior.

Don't force `get_project_context` for trivial tasks where it adds no value.

Knowledge Sources

RAGBuddy can index:

Repository
├── README.md
└── configured documentation paths
    ├── features/
    ├── steering/
    ├── issue/
    └── ...

Additional documents can be uploaded through the Web Dashboard.

All indexed knowledge is stored in a single Qdrant collection and isolated using the project identifier.

Documentation

Documentation Description
docs/steering/ Architecture, stack, setup, routing, system flow, and conventions
docs/features/ Feature documentation
docs/issue/ Issues and root-cause analysis
docs/design-system/ Web UI design system

Development

npm run typecheck
npm test
npm run build
npm run web

Frontend:

cd web
npm run dev
npm run build
npx oxlint src

See CLAUDE.md and AGENTS.md for the coding-agent workflow.

License

See LICENSE.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选