Crawl4AI RAG MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Crawl4AI RAG MCP Serversearch the knowledge base for error handling examples"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Crawl4AI RAG MCP Server
A Retrieval-Augmented Generation (RAG) MCP server built with Python that enables AI assistants to crawl, index, and retrieve information from technical documentation using semantic search.
The server integrates Crawl4AI for web crawling, Supabase (pgvector) for vector storage, OpenAI embeddings for semantic retrieval, and Neo4j for repository knowledge graph validation.
Features
Model Context Protocol (MCP) server
Intelligent web crawling with Crawl4AI
Recursive website indexing
Automatic document chunking
OpenAI embedding generation
Supabase pgvector vector database
Semantic document retrieval
Optional Hybrid Search
Optional Contextual Embeddings
Optional Agentic RAG
Optional Cross-Encoder Reranking
Neo4j Knowledge Graph integration
AI code hallucination detection
Repository structure validation
Docker support
SSE & STDIO transport support
Related MCP server: Documentation MCP Server
Tech Stack
Category | Technologies |
Language | Python |
AI | OpenAI API |
Protocol | Model Context Protocol (MCP) |
Web Crawling | Crawl4AI |
Vector Database | Supabase + pgvector |
Knowledge Graph | Neo4j |
Containerization | Docker |
Retrieval | RAG |
Architecture
AI Assistant
│
▼
MCP Server (Python)
│
┌────────────────┼────────────────┐
│ │ │
▼ ▼ ▼
Crawl4AI Knowledge Graph RAG Pipeline
│ (Neo4j) │
▼ ▼
Crawl Websites Document Chunking
│
▼
OpenAI Embeddings
│
▼
Supabase (pgvector)
│
▼
Semantic Search
│
▼
Generated ResponseMCP Tools
Crawling
Crawl a single page
Crawl complete documentation websites
Recursive crawling
Sitemap crawling
Retrieval
Semantic RAG search
Source filtering
Hybrid retrieval
Context-aware retrieval
Knowledge Graph
Parse GitHub repositories
Validate AI-generated Python code
Detect hallucinated imports
Detect invalid methods/classes
Query repository graph
Project Structure
src/
├── crawl4ai_mcp.py
├── tools/
├── knowledge_graphs/
├── rag/
├── utils/
public/
docker/
.env
README.mdInstallation
Clone the repository
git clone <repository-url>
cd crawl4ai-rag-mcp-serverInstall dependencies
pip install -r requirements.txtEnvironment Variables
Create a .env file.
OPENAI_API_KEY=
SUPABASE_URL=
SUPABASE_SERVICE_KEY=
NEO4J_URI=
NEO4J_USER=
NEO4J_PASSWORD=Running
Using Python
python src/crawl4ai_mcp.pyUsing Docker
docker build -t crawl4ai-rag .
docker run --env-file .env -p 8051:8051 crawl4ai-ragRetrieval Pipeline
Crawl technical documentation
Clean extracted content
Split documents into chunks
Generate embeddings
Store vectors in pgvector
Perform semantic similarity search
Inject retrieved context into prompts
Generate grounded responses
Knowledge Graph Pipeline
Parse GitHub repositories
Extract classes
Extract methods
Extract imports
Build Neo4j graph
Validate AI-generated code
Detect hallucinated APIs
Future Improvements
Multiple embedding model support
Local embedding models
Incremental indexing
Authentication
Citation support
Multi-user support
Document upload
PDF ingestion
Monitoring & Observability
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityFmaintenanceEnables AI assistants to enhance their responses with relevant documentation through a semantic vector search, offering tools for managing and processing documentation efficiently.2362MIT
- Flicense-qualityDmaintenanceScrapes and indexes documentation websites to provide AI assistants with searchable access to documentation content, API references, and code examples through configurable URL crawling.
- Alicense-quality-maintenanceCrawls documentation websites and provides semantic search capabilities over the content through vector embeddings, enabling natural language queries of technical documentation.2
- Alicense-qualityDmaintenanceEnables AI coding assistants to search and retrieve information from a locally ingested knowledge base using hybrid search, grounded in user-curated documentation.17MIT
Related MCP Connectors
Provide your AI coding tools with token-efficient access to up-to-date technical documentation for…
Search your knowledge bases from any AI assistant using hybrid RAG.
Your company's brain for AI agents. Cited, permission-aware knowledge across every system.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/adnan0758/Crawl4AI-RAG-MCP-Server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server