Qdrant Neo4j Crawl4AI MCP Server

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.

Category
访问服务器

README

Qdrant Neo4j Crawl4AI MCP Server

Production Ready FastMCP 2.0 Python 3.11+ License: MIT

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:

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

📖 User Guides

🔧 Technical Reference

🚢 Deployment & Operations

💻 Development & Contributing

📝 Examples & Tutorials

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 /health endpoints 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

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选