SuperAPIAI Directory

mcp-ragdocs

github.com · AI office

Retrieve and process documentation through vector search to augment responses with relevant documentation context.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)

About this tool

mcp-ragdocs is an MCP server implementation that provides tools for retrieving and processing documents through vector search, enabling AI assistants to enhance their responses with relevant document context.

  1. Main Capabilities

  2. Vector-based document search and retrieval

  3. Support for multiple document sources

  4. Semantic search capabilities

  5. Automated document processing

  6. Real-time context enhancement for LLMs

  7. Provided Tools

  8. search_documentation: Search stored documents using natural language queries. Returns matching excerpts sorted by relevance along with their context.

    • query (string): The text to search for in the documents. Can be a natural language query, specific terms, or a code snippet.
    • limit (number, optional): The maximum number of results to return (1-20, default 5). A higher limit provides more comprehensive results but may take longer to process.
  9. List all document sources currently stored in the system: Returns a complete list of all indexed documents, including source URL, title, and last update time. Can be used to learn which documents are searchable, or to verify whether a specific source has been indexed.

  10. Extract and analyze all URLs from a given web page: This tool crawls the specified web page, identifies all hyperlinks, and optionally adds them to the processing queue.

    • url (string): The full URL of the web page to analyze (must include the protocol, e.g. https://)。页面必须可公开访问。
    • add_to_queue (boolean, optional): If true, automatically adds the extracted URLs to the processing queue for later indexing. Use with caution on large websites to avoid excessive queuing.
  11. remove_documentation: Remove a specific document source from the system by URL. Removal is permanent and affects future search results.

    • urls (array of strings): An array of URLs to remove from the database. Each URL must exactly match the URL used when the document was added.
  12. List all URLs currently waiting in the document processing queue: Displays the pending document sources that will be processed when run_queue is called. Can be used to monitor queue status, verify whether URLs have been added correctly, or check the processing backlog.

  13. Process and index all URLs currently in the document queue: Each URL is processed in order, with proper error handling and retry logic. Progress updates are provided during processing. Long-running operations continue until the queue is empty or an unrecoverable error occurs.

  14. Remove all pending URLs in the document processing queue: Can be used to reset the queue when you want to start over, remove unwanted URLs, or cancel pending operations. This operation takes effect immediately and permanently—if you want to process these URLs later, you will need to add them again.

  15. Use Cases The RAG Documentation tool is intended for:

  • Enhancing AI responses with relevant documentation
  • Building documentation-aware AI assistants
  • Creating context-aware tools for developers
  • Implementing semantic document search
  • Enhancing existing knowledge bases
  1. Usage To use with Claude Desktop: Add the configuration to claude_desktop_config.json. The following environment variable values need to be provided:
  • OPENAI_API_KEY: The OpenAI API key used to generate embeddings
  • QDRANT_URL: The URL of the Qdrant vector database instance
  • QDRANT_API_KEY: The API key used to authenticate with Qdrant
  1. License and Source Notes This MCP server is licensed under the MIT License. This means the software may be freely used, modified, and distributed, subject to the terms and conditions of the MIT License. For more details, see the LICENSE file in the project repository. This project is a branch of qpd-v/mcp-ragdocs, originally developed by qpd-v. The original project provided the foundation for this implementation.
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools