MCP Neo4j Knowledge Graph Memory Server
MCP Memory Server with Neo4j backend for AI knowledge graph storage
Overview
MCP Neo4j Knowledge Graph Memory Server is a memory server based on the Neo4j graph database, designed for storing and retrieving information during interactions between AI assistants and users. It enhances the official Knowledge Graph Memory Server by using Neo4j as the backend storage engine.
To use the server, you can install it via npm or Docker. For npm, run npm install -g @jovanhsu/mcp-neo4j-memory-server. For Docker, clone the repository and use docker-compose to start the server.
- High-performance storage based on Neo4j graph database - Powerful fuzzy search and exact match capabilities - Complete CRUD operations for entities, relationships, and observations - Full compatibility with the MCP protocol - Support for complex graph queries and traversals - Docker support for easy deployment
- Storing user interactions for personalized AI responses
- Building complex knowledge graph applications
- Enhancing AI assistant capabilities with memory retrieval
Add to your AI client
Use these steps to connect MCP Neo4j Knowledge Graph Memory Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"mcp-neo4j-memory-server-jovanhsu": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-neo4j-memory-server-jovanhsu"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"mcp-neo4j-memory-server-jovanhsu": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-neo4j-memory-server-jovanhsu"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"mcp-neo4j-memory-server-jovanhsu": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-neo4j-memory-server-jovanhsu"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"mcp-neo4j-memory-server-jovanhsu": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-neo4j-memory-server-jovanhsu"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcp-neo4j-memory-server-jovanhsu": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-neo4j-memory-server-jovanhsu"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mcp-neo4j-memory-server-jovanhsu": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-neo4j-memory-server-jovanhsu"
]
}
}
}FAQ
Can I use this server with any AI assistant?
Yes! It is designed to integrate with various AI assistants that support the MCP protocol.
Is there a cost to use the MCP Neo4j Knowledge Graph Memory Server?
No, it is open-source and free to use under the MIT license.
What are the system requirements?
You need Node.js >= 22.0.0 and a Neo4j database (local or remote) to run the server.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":2877,"uuid":"2af41a7a-3e22-4549-8d63-3c1bbfeead1e","name":"mcp-neo4j-memory-server","title":"MCP Neo4j Knowledge Graph Memory Server","description":"MCP Memory Server with Neo4j backend for AI knowledge graph storage","avatar_url":"https://avatars.githubusercontent.com/u/94590594?v=4","created_at":"2025-03-15T14:00:33.721Z","updated_at":"2025-03-15T14:16:52.309Z","status":"created","author_name":"JovanHsu","author_avatar_url":"https://avatars.githubusercontent.com/u/94590594?v=4","tags":"mcp-neo4j,knowledge-graph,memory-server","category":"research-and-data","is_featured":false,"sort":1,"url":"https://github.com/JovanHsu/mcp-neo4j-memory-server","target":"_self","content":"$29","summary":"$2a","img_url":"https://camo.githubusercontent.com/c2215ae7cfd0dee7c3155bb25e0ef0a695accca0c57243398978a090699e5e2d/68747470733a2f2f696d672e736869656c64732e696f2f6e706d2f762f40697a756d6973792f6d63702d6e656f346a2d6d656d6f72792d7365727665722e737667","type":null,"metadata":"{\"star\":\"0\",\"license\":\"MIT license\",\"language\":\"TypeScript\",\"is_official\":false,\"latest_commit_time\":\"2025-03-15 19:39:48\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]