Qdrant Neo4j Crawl4AI MCP Server
Enables autonomous orchestration of vector search, knowledge graph queries, and web crawling through a single MCP interface, providing agentic RAG capabilities for AI assistants.
README
Qdrant Neo4j Crawl4AI MCP Server
Production-ready agentic RAG MCP server combining Qdrant vector search, Neo4j knowledge graphs, and Crawl4AI web intelligence with autonomous orchestration capabilities
π― What is This?
This is an Agentic RAG (Retrieval-Augmented Generation) MCP Server that provides intelligent, autonomous coordination of multiple AI services through a single Model Context Protocol interface. It combines:
- Vector Intelligence: Semantic search and embedding storage via Qdrant
- Graph Intelligence: Knowledge graphs and memory systems via Neo4j
- Web Intelligence: Smart web crawling and content extraction via Crawl4AI
- Agentic Orchestration: Autonomous query routing and result fusion
- Production-Ready: Enterprise security, monitoring, and deployment patterns
ποΈ Architecture
graph TB
Client[AI Assistant Client] --> Gateway[FastMCP Gateway]
subgraph "Qdrant Neo4j Crawl4AI MCP Server"
Gateway --> Router[Request Router]
Router --> Vector[Vector Service]
Router --> Graph[Graph Service]
Router --> Web[Web Intelligence Service]
Vector --> |mount: /vector| QdrantMCP[Qdrant MCP Server]
Graph --> |mount: /graph| Neo4jMCP[Neo4j Memory MCP]
Web --> |mount: /web| Crawl4AIMCP[Crawl4AI MCP Server]
end
subgraph "Data Layer"
QdrantMCP --> QdrantDB[(Qdrant Vector DB)]
Neo4jMCP --> Neo4jDB[(Neo4j Graph DB)]
Crawl4AIMCP --> WebSources[Web Data Sources]
end
β‘ Technology Stack
- FastMCP 2.0: Server composition and MCP protocol handling
- Python 3.11+: Modern async patterns and type safety
- Qdrant: Vector database for semantic search
- Neo4j: Graph database for knowledge representation
- Crawl4AI: Web intelligence and content extraction
- Docker: Containerized deployment with health checks
π Quick Start
Prerequisites
- Python 3.11+
- uv (recommended) or pip
- Docker & Docker Compose
Installation
# Clone the repository
git clone https://github.com/BjornMelin/qdrant-neo4j-crawl4ai-mcp.git
cd qdrant-neo4j-crawl4ai-mcp
# Install dependencies
uv sync
# Set up environment
cp .env.example .env
# Edit .env with your configuration
# Run with Docker
docker-compose up -d
# Or run locally
uv run python -m qdrant_neo4j_crawl4ai_mcp
Configuration
Key environment variables:
# Server Configuration
MCP_SERVER_HOST=localhost
MCP_SERVER_PORT=8000
JWT_SECRET_KEY=your-secure-secret-key
# Database Configuration
QDRANT_URL=http://localhost:6333
NEO4J_URI=bolt://localhost:7687
NEO4J_USER=neo4j
NEO4J_PASSWORD=password
# Security
RATE_LIMIT_PER_MINUTE=100
CORS_ORIGINS=https://your-domain.com
π» Development
Testing
# Run all tests
uv run pytest
# Run with coverage
uv run pytest --cov=qdrant_neo4j_crawl4ai_mcp --cov-report=html
# Run specific test suite
uv run pytest tests/integration/
Code Quality
# Format code
uv run ruff format .
# Lint code
uv run ruff check . --fix
# Type checking
uv run mypy .
π API Documentation
Once running, access the interactive API documentation at:
- Swagger UI: http://localhost:8000/docs
- ReDoc: http://localhost:8000/redoc
Example Usage
import asyncio
from qdrant_neo4j_crawl4ai_mcp.client import QdrantNeo4jCrawl4AIMCPClient
async def main():
client = QdrantNeo4jCrawl4AIMCPClient("http://localhost:8000")
# Vector search
results = await client.vector_search("artificial intelligence")
# Graph query
memories = await client.graph_query("MATCH (n:Memory) RETURN n LIMIT 10")
# Web crawling
content = await client.web_crawl("https://example.com")
asyncio.run(main())
π¦ Deployment
Docker Deployment
# Production build
docker build -t qdrant-neo4j-crawl4ai-mcp .
docker run -p 8000:8000 qdrant-neo4j-crawl4ai-mcp
Cloud Deployment
- Railway: One-click deployment via railway.app
- Fly.io: Global edge deployment
- AWS: ECS/Lambda deployment with CDK
π Complete Documentation
π Getting Started
- π Documentation Hub - Complete navigation guide
- β‘ Quick Start - 5-minute setup
- π§ Installation Guide - Detailed setup
- βοΈ Configuration - Environment setup
- π― First Queries - Learn the system
π User Guides
- π Vector Search Guide - Semantic similarity search
- πΈοΈ Knowledge Graph Guide - Graph reasoning
- π Web Intelligence Guide - Real-time web data
- π€ Agentic Workflows - Multi-modal intelligence
π§ Technical Reference
- π API Reference - Complete REST API docs
- ποΈ Architecture - System design overview
- π Security Guide - Enterprise security
- π Monitoring Setup - Production monitoring
π’ Deployment & Operations
- π Deployment Operations - Production deployment
- βΈοΈ Kubernetes Guide - Container orchestration
- π³ Docker Guide - Containerized deployment
- βοΈ Cloud Platforms - Railway, Fly.io, etc.
π» Development & Contributing
- π¨βπ» Developer Guide - Complete dev workflow
- π§ͺ Testing Framework - Unit & integration tests
- π¨ Contributing Guidelines - How to contribute
- π§ Local Development - Dev environment setup
π Examples & Tutorials
- π Examples Hub - Code examples & tutorials
- π° Basic Usage - Simple queries
- π Advanced Workflows - Complex patterns
- π± Client SDKs - Multiple languages
For detailed deployment guides, see π’ Deployment Operations.
π Security & Compliance
- JWT Authentication: Secure token-based authentication with refresh tokens
- Rate Limiting: Redis-backed distributed request throttling
- OWASP Compliance: Following API security best practices and security headers
- Input Validation: Comprehensive Pydantic-based request sanitization
- Audit Logging: Security event tracking with structured logging
- Enterprise Security: Complete security hardening guide
π Monitoring & Observability
- Health Checks: Multi-layer
/healthendpoints with dependency validation - Structured Logging: JSON logs with correlation IDs and context
- Prometheus Metrics: Custom business and infrastructure metrics
- Grafana Dashboards: Pre-built dashboards for monitoring
- Error Tracking: Sentry integration for error reporting
- Distributed Tracing: Request flow visualization across services
Setup Guide: π Monitoring & Observability
π€ Contributing
We welcome contributions! Please see our Contributing Guidelines for details.
Quick Start for Contributors
# 1. Fork and clone the repository
git clone https://github.com/BjornMelin/qdrant-neo4j-crawl4ai-mcp.git
cd qdrant-neo4j-crawl4ai-mcp
# 2. Set up development environment
uv sync --dev
uv run pre-commit install
# 3. Run tests to verify setup
uv run pytest
# 4. Start development server
docker-compose up -d
uv run python -m qdrant_neo4j_crawl4ai_mcp
Detailed Setup: π» Developer Guide
π License
This project is licensed under the MIT License - see the LICENSE file for details.
π― Project Goals
This project demonstrates:
- Modern Python Patterns: Async programming, type safety, and current ecosystem tools
- AI/ML Integration: Vector databases, knowledge graphs, and web intelligence
- Production Engineering: Security, monitoring, testing, and deployment automation
- Clean Architecture: Composable services with clear abstractions
- DevOps Excellence: Container orchestration, CI/CD, and infrastructure as code
π§ Contact
- Author: [Your Name]
- Email: [your.email@example.com]
- LinkedIn: [linkedin.com/in/yourprofile]
- Portfolio: [yourportfolio.com]
Built with β using FastMCP 2.0, Qdrant, Neo4j, and Web Intelligence
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.