Graphiti MCP Demo
Stores knowledge graphs in Neo4j, persisting entities, relationships, and community summaries extracted from episodes, enabling structured context retrieval.
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., "@Graphiti MCP Demoadd episode: my name is Alice and I like pizza"
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.
π Table of Contents
π About
We are implementing an MCP server and AI agent integration to leverage Zep's Graphiti for persistent memory and context continuity across Cursor and Claude.
This setup allows AI agents to:
β
Connect to the MCP for dynamic tool discovery
β
Select the optimal tool for a query
β
Formulate responses with context continuity
β
Persist interactions in Neo4j as a knowledge graph
π Workflow of the Project
The workflow of this project shows how Cursor or Claude Desktop integrates with the MCP server and stores context in Graphiti memory (Neo4j):
Developer sends a Query from Cursor IDE or Claude Desktop.
The MCP Host connects to the MCP Server.
The MCP Server makes tool calls (e.g.,
add_episode,search_nodes,clear_graph) to interact with Graphiti memory.Extracted context (documents, conversations, JSONs) is stored as structured data.
This data flows into different layers of the Graphiti Memory Structure:
Level 1: Episodes β Raw data like documents, conversations, JSONs
Level 2: Entities β Nodes & relationships extracted from episodes
Level 3: Communities β Clusters of entities with summaries
The MCP Host sends the enriched context back to the developer as a response.
π½οΈ Workflow Demo

βοΈ Setup
1οΈβ£ Clone GitHub Repository
git clone https://github.com/getzep/graphiti.git
cd graphiti/mcp_server2οΈβ£ Install Dependencies
uv sync3οΈβ£ Configure Environment
Create a .env file in graphiti/mcp_server:
# Neo4j Database Configuration
NEO4J_URI=bolt://localhost:7687
NEO4J_USER=neo4j
NEO4J_PASSWORD=demodemo
# OpenAI API Configuration
OPENAI_API_KEY=<your_openai_api_key>
MODEL_NAME=gpt-4.1-miniπ₯ Running MCP Server
Graphiti MCP server can be run using Docker or Python. Docker is recommended, but direct execution helps with troubleshooting.
βΆοΈ Run with Docker
docker compose upπΈ Docker Container Running

βΆοΈ Run with Python (for debugging)
uv run graphiti_mcp_server.py --model gpt-4.1-mini --transport sseπΈ Graphiti SSE Output

π€ Integrating MCP Clients
πΉ Cursor
Add this to your mcp.json:
{
"mcpServers": {
"Graphiti": {
"url": "http://localhost:8000/sse"
}
}
}πΉ Claude
Update claude_desktop_config.json:
{
"mcpServers": {
"graphiti": {
"transport": "stdio",
"command": "/path/to/uv",
"args": [
"run",
"--isolated",
"--directory",
"/path/to/graphiti/mcp_server",
"--project",
".",
"graphiti_mcp_server.py",
"--transport",
"stdio"
]
}
}
}πΈ Verifying in Neo4j
Open the Neo4j browser β http://localhost:7474/browser/
πΈ Connected Neo4j Browser

πΈ Data Stored in Neo4j

π Final Output from Cursor β Neo4j
Flow: Cursor Prompt β MCP Server β Neo4j Graph Storage
πΈ Final Cursor Output Sent to Neo4j

π€ Contribution
Contributions are welcome!
Fork this repo
Create a new branch
Make changes & submit a PR
π‘ Connect with Me
Stay connected on LinkedIn for more projects, ideas, and collaborations:
Kartik Jain
Letβs build, learn, and grow together! π
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
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/Kartikk-26/Graphiti-MCP-Demo'
If you have feedback or need assistance with the MCP directory API, please join our Discord server