Back to MCP Catalog

RAG Documentation MCP Server

Knowledge & MemoryTypeScript
Vector search for documentation retrieval and processing
Available Tools

search_documentation

Search indexed documentation using natural language queries. Results are ranked by relevance and include source context. The limit parameter controls the number of results returned.

querylimit

list_sources

List all indexed documentation sources currently available in the system, providing information about each source.

extract_urls

Crawl and extract content from specified URLs, adding them to the processing queue. URLs must be valid and accessible.

urls

remove_documentation

Permanently remove documentation from the index based on URL. This action cannot be undone.

url

list_queue

Display the current processing queue status, showing URLs waiting to be processed.

run_queue

Process all URLs in the queue, extracting and indexing their content. Reports processing status and any errors encountered.

clear_queue

Clear all URLs from the processing queue. This permanently removes items from the queue, requiring re-adding if needed later.

RAG Documentation provides a powerful set of tools for retrieving and processing documentation through vector search. It enables AI assistants to augment their responses with relevant documentation context, improving accuracy and providing source-backed information. The server implements a Retrieval-Augmented Generation (RAG) system specifically designed for documentation management. It allows for crawling URLs to extract documentation, managing a processing queue, searching through indexed content with natural language queries, and maintaining the documentation database.

RAG Documentation MCP Server

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

Installation

To use the RAG Documentation MCP server, you'll need to install it via npm:

npm install @hrudolph/mcp-ragdocs

After installation, you can configure your AI client to use this MCP server by adding the following configuration:

"mcpServers": {
  "ragdocs": {
    "command": "npx",
    "args": ["@hrudolph/mcp-ragdocs"]
  }
}

Usage

Once installed and configured, the RAG Documentation server provides several capabilities:

  1. Documentation Indexing: Extract content from URLs and add them to the documentation database.
  2. Vector Search: Search through indexed documentation using natural language queries.
  3. Queue Management: Manage a processing queue for documentation extraction.
  4. Source Management: List and remove documentation sources.

Configuration

The server stores indexed documentation and vector embeddings locally. No additional configuration is required for basic usage.

For advanced usage, you may want to customize:

  • Storage location for documentation and embeddings
  • Processing queue behavior
  • URL extraction parameters

Workflow Example

A typical workflow might look like:

  1. Extract documentation from URLs using extract_urls
  2. Process the queue with run_queue
  3. Search the indexed documentation with search_documentation
  4. List available sources with list_sources

This allows AI assistants to provide responses backed by specific documentation, improving accuracy and providing source attribution.

Related MCPs

Knowledge Graph Memory
Knowledge & MemoryTypeScript

A persistent memory system using a local knowledge graph

MemoryMesh
Knowledge & MemoryTypeScript

A knowledge graph server for structured memory persistence in AI models

Cognee
Knowledge & MemoryPython

Knowledge management and retrieval system with code graph capabilities

About Model Context Protocol

Model Context Protocol (MCP) allows AI models to access external tools and services, extending their capabilities beyond their training data.

Generate Cursor Documentation

Save time on coding by generating custom documentation and prompts for Cursor IDE.