Provides integration with Neo4j graph database for storing and querying temporally-aware knowledge graphs built from user interactions and enterprise data
Graphiti MCP Pro
English | 中文
About Graphiti
Graphiti is a framework for building and querying temporally-aware knowledge graphs, specifically tailored for AI agents operating in dynamic environments. Unlike traditional retrieval-augmented generation (RAG) methods, Graphiti continuously integrates user interactions, structured and unstructured enterprise data, and external information into a coherent, queryable graph. The framework supports incremental data updates, efficient retrieval, and precise historical queries without requiring complete graph recomputation, making it suitable for developing interactive, context-aware AI applications.
This project is an enhanced memory repository MCP service and management platform based on Graphiti. Compared to the original project's MCP service, it offers the following core advantages: enhanced core capabilities, broader AI model compatibility, and comprehensive visual management interface.
Features
Enhanced Core Capabilities
Asynchronous Parallel Processing
Adding memories is the core functionality of the MCP service. We have introduced an asynchronous parallel processing mechanism based on the original implementation. The same group ID (such as different development projects) can execute up to 5 adding memory tasks in parallel, significantly improving processing efficiency.
Task Management Tools
Four new MCP tools have been added for managing add_memory
tasks:
list_add_memory_tasks
- List alladd_memory
tasksget_add_memory_task_status
- Getadd_memory
task statuswait_for_add_memory_task
- Wait foradd_memory
task completioncancel_add_memory_task
- Canceladd_memory
task
Unified Configuration Management
Optimized configuration management to resolve inconsistencies between command-line parameters, environment variables, and management backend database configurations.
Note
When the management backend is enabled, MCP service parameters in the .env environment configuration file only take effect during the initial startup. Subsequent configurations will be based on parameters in the management backend database.
Broader AI Model Compatibility and Flexibility
Enhanced Model Compatibility
Through integration with the instructor library, model compatibility has been significantly improved. Now supports various models such as DeepSeek, Qwen, and even locally run models through Ollama, vLLM, as long as they provide OpenAI API compatible interfaces.
Separated Model Configuration
The original unified LLM configuration has been split into three independent configurations, allowing flexible combinations based on actual needs:
- Large Model (LLM): Responsible for entity and relationship extraction
- Small Model (Small LLM): Handles entity attribute summarization, relationship deduplication, reranking, and other lightweight tasks
- Embedding Model (Embedder): Dedicated to text vectorization
Note
When configuring the embedding model, note that its API path differs from the two LLMs above. LLMs use the chat completion path {base_url}/chat/completions
, while text embedding uses {base_url}/embeddings
. If you select "Same as Large Model" in the management backend, ensure your configured large model supports text embedding.
Additionally, if you run the service via docker compose while the LLM or embedding model is running locally, the base_url needs to be configured as http://host.docker.internal:{port}
, where the port should be adjusted according to your local running port.
Comprehensive Management Platform
To provide better user experience and observability, we have developed a complete management backend and Web UI. Through the management interface, you can:
- Service Control: Start, stop, restart MCP service
- Configuration Management: Real-time configuration updates and adjustments
- Usage Monitoring: View detailed token usage statistics
- Log Viewing: Real-time and historical log queries
Getting Started
Running with Docker Compose (Recommended)
- Clone Project
- Configure Environment Variables (Optional)
- Start Services
Tip
If the project has updates and you need to rebuild the image, use docker compose up -d --build
.
Rest assured, data will be persistently saved in the external database and will not be lost.
- Access Management Interface Default address: http://localhost:6062
Manual Installation
Note
Prerequisites:
- Python 3.10+ and uv project manager
- Node.js 20+
- Accessible Neo4j 5.26+ database service
- AI model service
- Clone Project
- Install Dependencies
- Configure Environment Variables
- Run MCP Service
- Build and Run Management FrontendEnter frontend directory and install dependencies:Build and run frontend:Access management interface: http://localhost:6062
Important Notes
Known Limitations
- 🔒 Security Notice: The management backend does not implement authorization access mechanisms. DO NOT expose the service on public servers.
- 🧪 Test Coverage: Due to resource constraints, the project has not been thoroughly tested. Recommended for personal use only.
- 📡 Transport Protocol: Only supports streamable-http transport protocol. Removed stdio and sse support from the original project.
- ⚙️ Code Optimization: Some architectural designs (dependency injection, exception handling, client decoupling, etc.) still have room for optimization.
Usage Recommendations
- Configuration Instructions: Please carefully read the setup instructions and comments in
.env.example.en
- Model Selection: If using natively supported models like GPT/Gemini/Claude and don't need detailed runtime information, consider using the original Graphiti MCP
- Issue Feedback: Welcome to submit Issues or Pull Requests for any usage problems
Developed with assistance from 🤖 Augment Code
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
An enhanced memory repository MCP service that builds and queries temporally-aware knowledge graphs from user interactions and data. Features asynchronous parallel processing, task management, broader AI model compatibility, and a comprehensive visual management interface.
Related MCP Servers
- AsecurityAlicenseAqualityA customized MCP memory server that enables creation and management of a knowledge graph with features like custom memory paths and timestamping for capturing interactions via language models.Last updated -114JavaScriptMIT License
- -securityAlicense-qualityEnhances the MCP memory server by implementing PouchDB for robust document storage and enabling the creation and management of a knowledge graph that captures interactions via language models.Last updated -4JavaScriptMIT License
- -securityAlicense-qualityA bridge that exposes structured, verifiable context and query capabilities of a local Temporal Knowledge Graph to MCP-compatible AI agents, enabling them to access explicit project history and relationships rather than just semantic content.Last updated -1PythonMIT License
- -securityFlicense-qualityAn advanced MCP server providing RAG-enabled memory through a knowledge graph with vector search capabilities, enabling intelligent information storage, semantic retrieval, and document processing.Last updated -3516TypeScript