QV

qpd-v/mcp-ragdocs

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

136 stars 60 forks Качество 70 Тренд 16Apache-2.0

qpd-v/mcp-ragdocs — это кандидат на MCP-сервер, импортированный из https://github.com/qpd-v/mcp-ragdocs.

Обзор

qpd-v/mcp-ragdocs — это кандидат на MCP-сервер, импортированный из https://github.com/qpd-v/mcp-ragdocs.

Обзор (машинный перевод)

Сервер Model Context Protocol (MCP), который позволяет осуществлять семантический поиск и поиск документации с помощью векторной базы данных (Qdrant). Этот сервер позволяет добавлять документацию по URL или локальным файлам, а затем искать по ним с помощью запросов на естественном языке.

Руководство по быстрой установке

  1. Установите пакет глобально:

  2. Запустить Qdrant (с помощью Docker):

  3. Убедитесь, что Ollama работает с стандартной моделью вложения:

  4. Добавьте в ваш конфигурационный файл:

  • Для Клайна: %AppData%\Roaming\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
  • Для Roo-Code: %AppData%\Roaming\Code\User\globalStorage\rooveterinaryinc.roo-cline\settings\cline_mcp_settings.json
  • Для Claude Desktop: %AppData%\Claude\claude_desktop_config.json
  1. Проверьте установку:

Версия

Текущая версия: 0.1.6

Особенности

  • Добавлять документацию по URL или локальным файлам
  • Хранение документации в векторной базе данных для семантического поиска
  • Поиск по документации с использованием естественного языка
  • Перечислить все источники документации

Установка

Установка по всему миру с помощью npm:

Это установит сервер в вашу глобальную папку npm, которая понадобится для приведённых ниже шагов настройки.

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Показан фрагмент оригинального README. Открыть оригинал.

MCP-Ragdocs

A Model Context Protocol (MCP) server that enables semantic search and retrieval of documentation using a vector database (Qdrant). This server allows you to add documentation from URLs or local files and then search through them using natural language queries.

Quick Install Guide

  1. Install the package globally:

    npm install -g @qpd-v/mcp-server-ragdocs
    
  2. Start Qdrant (using Docker):

    docker run -p 6333:6333 -p 6334:6334 qdrant/qdrant
    
  3. Ensure Ollama is running with the default embedding model:

    ollama pull nomic-embed-text
    
  4. Add to your configuration file:

    • For Cline: %AppData%\Roaming\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
    • For Roo-Code: %AppData%\Roaming\Code\User\globalStorage\rooveterinaryinc.roo-cline\settings\cline_mcp_settings.json
    • For Claude Desktop: %AppData%\Claude\claude_desktop_config.json
    {
      "mcpServers": {
        "ragdocs": {
          "command": "node",
          "args": ["C:/Users/YOUR_USERNAME/AppData/Roaming/npm/node_modules/@qpd-v/mcp-server-ragdocs/build/index.js"],
          "env": {
            "QDRANT_URL": "http://127.0.0.1:6333",
            "EMBEDDING_PROVIDER": "ollama",
            "OLLAMA_URL": "http://localhost:11434"
          }
        }
      }
    }
    
  5. Verify installation:

    # Check Qdrant is running
    curl http://localhost:6333/collections
    
    # Check Ollama has the model
    ollama list | grep nomic-embed-text
    

Version

Current version: 0.1.6

Features

  • Add documentation from URLs or local files
  • Store documentation in a vector database for semantic search
  • Search through documentation using natural language
  • List all documentation sources

Installation

Install globally using npm:

npm install -g @qpd-v/mcp-server-ragdocs

This will install the server in your global npm directory, which you’ll need for the configuration steps below.

Requirements

  • Node.js 16 or higher
  • Qdrant (either local or cloud)
  • One of the following for embeddings:
    • Ollama running locally (default, free)
    • OpenAI API key (optional, paid)

Qdrant Setup Options

Option 1: Local Qdrant

  1. Using Docker (recommended):
docker run -p 6333:6333 -p 6334:6334 qdrant/qdrant
  1. Or download from Qdrant’s website

Option 2: Qdrant Cloud

  1. Create an account at Qdrant Cloud
  2. Create a new cluster
  3. Get your cluster URL and API key from the dashboard
  4. Use these in your configuration (see Configuration section below)

Configuration

The server can be used with both Cline/Roo and Claude Desktop. Configuration differs slightly between them:

Cline Configuration

Add to your Cline settings file (%AppData%\Roaming\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json) AND/OR

Открыть полный README на GitHub

Установка

docker run -p 6333:6333 -p 6334:6334 qdrant/qdrant
Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

{ "mcpServers": { "ragdocs": { "command": "node", "args": ["C:/Users/YOUR_USERNAME/AppData/Roaming/npm/node_modules/@qpd-v/mcp-server-ragdocs/build/index.js"], "env": { "QDRANT_URL": "http://127.0.0.1:6333", "EMBEDDING_PROVIDER": "ollama", "OLLAMA_URL": "http://localhost:11434" } } } }