RAG Documentation MCP Server

RAG Documentation MCP Server

An MCP server implementation that provides tools for retrieving and processing documentation through vector search, enabling AI assistants to augment their responses with relevant documentation context.

Table of Contents

Features

Tools

  1. search_documentation
    • Search through the documentation using vector search
    • Returns relevant chunks of documentation with source information
  2. list_sources
    • List all available documentation sources
    • Provides metadata about each source
  3. extract_urls
    • Extract URLs from text and check if they're already in the documentation
    • Useful for preventing duplicate documentation
  4. remove_documentation
    • Remove documentation from a specific source
    • Cleans up outdated or irrelevant documentation
  5. list_queue
    • List all items in the processing queue
    • Shows status of pending documentation processing
  6. run_queue
    • Process all items in the queue
    • Automatically adds new documentation to the vector store
  7. clear_queue
    • Clear all items from the processing queue
    • Useful for resetting the system
  8. add_documentation
    • Add new documentation to the processing queue
    • Supports various formats and sources

Quick Start

The RAG Documentation tool is designed for:

  • Enhancing AI responses with relevant documentation
  • Building documentation-aware AI assistants
  • Creating context-aware tooling for developers
  • Implementing semantic documentation search
  • Augmenting existing knowledge bases

Docker Compose Setup

The project includes a docker-compose.yml file for easy containerized deployment. To start the services:

docker-compose up -d

To stop the services:

docker-compose down

Web Interface

The system includes a web interface that can be accessed after starting the Docker Compose services:

  1. Open your browser and navigate to: http://localhost:3030
  2. The interface provides:
    • Real-time queue monitoring
    • Documentation source management
    • Search interface for testing queries
    • System status and health checks

Configuration

Cline Configuration

Add this to your cline_mcp_settings.json:

{ "mcpServers": { "rag-docs": { "command": "node", "args": ["/path/to/your/mcp-ragdocs/build/index.js"], "env": { "OPENAI_API_KEY": "your-api-key-here", "QDRANT_URL": "http://localhost:6333" }, "disabled": false, "autoApprove": [ "search_documentation", "list_sources", "extract_urls", "remove_documentation", "list_queue", "run_queue", "clear_queue", "add_documentation" ] } } }

Claude Desktop Configuration

Add this to your claude_desktop_config.json:

{ "mcpServers": { "rag-docs": { "command": "node", "args": ["/path/to/your/mcp-ragdocs/build/index.js"], "env": { "OPENAI_API_KEY": "your-api-key-here", "QDRANT_URL": "http://localhost:6333" } } } }

Acknowledgments

This project is a fork of qpd-v/mcp-ragdocs, originally developed by qpd-v. The original project provided the foundation for this implementation.

Special thanks to the original creator, qpd-v, for their innovative work on the initial version of this MCP server. This fork has been enhanced with additional features and improvements by Rahul Retnan.

Troubleshooting

Server Not Starting (Port Conflict)

If the MCP server fails to start due to a port conflict, follow these steps:

  1. Identify and kill the process using port 3030:
npx kill-port 3030
  1. Restart the MCP server
  2. If the issue persists, check for other processes using the port:
lsof -i :3030
  1. You can also change the default port in the configuration if needed
-
security - not tested
F
license - not found
-
quality - not tested

Enables AI assistants to enhance their responses with relevant documentation through a semantic vector search, offering tools for managing and processing documentation efficiently.

  1. Table of Contents
    1. Features
      1. Tools
      2. Quick Start
        1. Docker Compose Setup
          1. Web Interface
            1. Configuration
              1. Cline Configuration
                1. Claude Desktop Configuration
                2. Acknowledgments
                  1. Troubleshooting
                    1. Server Not Starting (Port Conflict)