
rileylemm/graphrag_mcp
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
rileylemm/graphrag mcp는 MCP 서버 후보가 https://github.com/rileylemm/graphrag_mcp.에서 수입되었습니다
개요
rileylemm/graphrag mcp는 MCP 서버 후보가 https://github.com/rileylemm/graphrag_mcp.에서 수입되었습니다
개요(AI 번역)
하이브리드 그래프 및 벡터 데이터베이스 시스템을 쿼리하기위한 모델 콘텍스 프로토콜 서버, Neo4j (그래서 데이터베이스) 및 강력한 semantic 및 그래프 기반 문서 검색을위한 Qdrant (Vctor Database)를 결합합니다.
개요
GraphRAG MCP는 큰 언어 모델과 그래픽 데이터베이스 (Neo4j) 및 벡터 데이터베이스 (Qdrant)의 강도를 활용하는 하이브리드 검색 시스템 간의 원활한 통합을 제공합니다. 이 활성화:
- 문서 embeddings를 통해 Semantic 검색
- 관계를 따르는 그래프 기반 컨텍스트 확장
- 그래프 관계와 벡터 유사성을 결합하는 하이브리드 검색
- MCP를 통해 Claude 및 기타 LLM과의 완벽한 통합
이 프로젝트는 모형 Context 의정서 명세를 따르고, 어떤 MCP-enabled 클라이언트도 호환이 되는.
특징
- Semantic search 문장 embeddings 및 Qdrant 사용
- **Graph 기반 컨텍스트 확장 ** Neo4j 사용 -Hybrid search 두 가지 접근법 결합
- **MCP 도구 및 리소스 ** LLM 통합
- Neo4j schema 및 Qdrant 수집 정보의 전체 문서
필수품
- 파이썬 3.12+
- localhost:7687 (기본 설정)에서 실행되는 Neo4j
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
GraphRAG MCP Server
A Model Context Protocol server for querying a hybrid graph and vector database system, combining Neo4j (graph database) and Qdrant (vector database) for powerful semantic and graph-based document retrieval.
Overview
GraphRAG MCP provides a seamless integration between large language models and a hybrid retrieval system that leverages the strengths of both graph databases (Neo4j) and vector databases (Qdrant). This enables:
- Semantic search through document embeddings
- Graph-based context expansion following relationships
- Hybrid search combining vector similarity with graph relationships
- Full integration with Claude and other LLMs through MCP
This project follows the Model Context Protocol specification, making it compatible with any MCP-enabled client.
Features
- Semantic search using sentence embeddings and Qdrant
- Graph-based context expansion using Neo4j
- Hybrid search combining both approaches
- MCP tools and resources for LLM integration
- Full documentation of Neo4j schema and Qdrant collection information
Prerequisites
- Python 3.12+
- Neo4j running on localhost:7687 (default configuration)
- Qdrant running on localhost:6333 (default configuration)
- Document data indexed in both databases
Installation
Quick Start
-
Clone this repository:
git clone https://github.com/rileylemm/graphrag_mcp.git cd graphrag_mcp -
Install dependencies with uv:
uv install -
Configure your database connections in the
.envfile:# Neo4j Configuration NEO4J_URI=bolt://localhost:7687 NEO4J_USER=neo4j NEO4J_PASSWORD=password # Qdrant Configuration QDRANT_HOST=localhost QDRANT_PORT=6333 QDRANT_COLLECTION=document_chunks -
Run the server:
uv run main.py
Detailed Setup Guide
For a detailed guide on setting up the underlying hybrid database system, please refer to the companion repository: GraphRAG Hybrid Database
Setting up Neo4j and Qdrant
-
Install and start Neo4j:
# Using Docker docker run \ --name neo4j \ -p 7474:7474 -p 7687:7687 \ -e NEO4J_AUTH=neo4j/password \ -v $HOME/neo4j/data:/data \ -v $HOME/neo4j/logs:/logs \ -v $HOME/neo4j/import:/import \ -v $HOME/neo4j/plugins:/plugins \ neo4j:latest -
Install and start Qdrant:
# Using Docker docker run -p 6333:6333 -p 6334:6334 \ -v $HOME/qdrant/storage:/qdrant/storage \ qdrant/qdrant
Indexing Documents
To index your documents in both databases, follow these steps:
- Prepare your documents
- Create embeddings using sentence-transformers
- Store documents in Neo4j with relationship information
- Store document chunk embeddings in Qdrant
설치
docker run \설정
{
"mcpServers": {
"GraphRAG": {
"command": "/path/to/graphrag_mcp/run_server.sh",
"args": []
}
}
}