Skip to main content

🔌 RAGify Docs: Recursive Documentation Scraper MCP Server

A production-ready Model Context Protocol (MCP) server that empowers AI agents to recursively scrape entire software documentation sites, compile them into an in-memory vector store, and provide accurate, context-grounded answers to developer questions.

Built using the FastMCP Framework, LangChain, and Ollama, this server lets tools like Claude Desktop, Cursor, or Zed read documentation pages in real-time to resolve coding problems without leaving the chat interface.


🔥 Key Features

  • Recursive Deep Scraping: Crawls documentation sites up to two levels deep out of the box using custom beautifulsoup extraction.
  • Dynamic Context Assembly: Automatically splits raw website texts into clean, code-aware semantic blocks.
  • High-Diversity MMR Search: Uses Maximal Marginal Relevance to fetch contrasting context points rather than duplicating search matches from single sections.
  • Local-First Architecture: Leverages a lightweight in-memory vector index alongside local llama3.2 models for privacy and cost efficiency.
  • Safe Data Pipeline: Explicitly channels all background terminal metrics into stderr to avoid protocol communication corruption over standard I/O channels.

🛠️ Prerequisites

Before installing the server, ensure your local environment contains the following applications:

  • Python: version 3.10 or higher.
  • Ollama: Installed and running locally with the target model pulled:
    ollama pull llama3.2
    

📦 Installation & Setup

Follow these steps to download and configure the project directory on your local machine.

1. Clone and Navigate to the Project

git clone https://github.com
cd ragify_docs_2.0

2. Set Up a Virtual Environment

Create and boot up an isolated Python runtime container to avoid package conflicts:

# Windows PowerShell
python -m venv .venv
.venv\Scripts\Activate.ps1

# macOS / Linux
python3 -m venv .venv
source .venv/bin/activate

3. Install Dependencies

Install the required framing libraries directly via pip:

pip install fastmcp langchain-community langchain-text-splitters langchain-huggingface langchain-core langchain-ollama tqdm bs4 lxml sentence-transformers python-dotenv

4. Create Environment Configuration

Create a configuration file named .env in the root of your workspace:

# .env Configuration File
# Note: You can optionally add service platform API credentials here if swapping components

🚀 Local Testing & Debugging

The platform provides simple verification mechanisms to make sure everything links up fine before giving it over to real apps.

Running via FastMCP

Execute the framework inspection validator to ensure the internal tool parsing definitions register correctly:

fastmcp inspect .\src\ragify_docs\tools.py

To boot up the live server instance locally via your custom python orchestration file, run:

python .\src\ragify_docs\main.py

(You will see informational logging indicate the server is successfully listening for external connections over the standard I/O communication channel).


💻 Client Integration (Claude Desktop)

To expose this capability directly to Claude Desktop, add its execution routing coordinates to your application parameters profile.

  1. Press Win + R (Windows) and paste the following directory location to open your config file:
    %APPDATA%\Claude\claude_desktop_config.json
    
  2. Inject the following block into the structure (Ensure you escape all absolute disk location paths with double-backslashes \\):
{
  "mcpServers": {
    "ragify-docs-server": {
      "command": "C:\\Users\\yasho\\OneDrive\\Desktop\\ragify_docs_2.0\\.venv\\Scripts\\python.exe",
      "args": [
        "C:\\Users\\yasho\\OneDrive\\Desktop\\ragify_docs_2.0\\src\\ragify_docs\\main.py"
      ],
      "env": {}
    }
  }
}
  1. Completely Restart Claude Desktop. If correctly parsed, a 🔌 Hammer Icon will materialize inside your message submission console tray!

📖 Usage Guide & Example Prompts

Once integrated, you do not need to format your query manually. Simply prompt the AI agent with a URL and a specific engineering problem:

  • "Scrape https://yashodeep.me and tell me what the Anuvadak project is."
  • "Look up the framework guidelines at https://example.com and show me how to initialize its basic auth route."

Metadata

Release files for ragify-docs-mcp 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ragify-docs-mcp 0.2.0
File Size Uploaded
ragify_docs_mcp-0.2.0.tar.gz 5.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ragify-docs-mcp 0.2.0
File Interpreter ABI Platform
ragify_docs_mcp-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.6 kB

Release files / ragify_docs_mcp-0.2.0.tar.gz

Download URL ragify_docs_mcp-0.2.0.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
3953dc958aabb503ea087061ef30d61d5ac8d337da8972576c6000c02f63cea3
BLAKE2b-256 checksum
How to use checksums
a052306ca470b76572a081f720bc7fc8223a4078778bd6029f6f17e016b546cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / ragify_docs_mcp-0.2.0-py3-none-any.whl

Download URL ragify_docs_mcp-0.2.0-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fddc7e7b66c0e9965624736c45f82127a536d5c8fe0cfd8b89b91a3dd1edf68b
BLAKE2b-256 checksum
How to use checksums
fd0c94f3f7e1a78ce9a21b182371ca4c1f5e3f94c345194e806419ba1a25ce63
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page