
Mem0 Self-Hosted
by elvismdev
Persistent memory server for Claude Code using Qdrant, Neo4j, and Ollama for a fully self-hosted knowledge base.
What it does
Connects Claude Code to a self-hosted memory infrastructure, allowing the AI to remember project architecture, user preferences, and debugging insights across sessions. It leverages a combination of vector search for semantic recall and a knowledge graph for entity relationships.
Tools
add_memory: Stores text or conversation history as persistent memories.search_memories: Semantic search for relevant context with optional reranking.get_memories: List or filter memories based on scope.update_memory: Modifies existing memory text and re-indexes it.delete_memory: Removes a specific memory by UUID.list_entities: Lists users, agents, and runs with associated memory counts.search_graph: Searches the Neo4j knowledge graph for entities and relationships.get_entity: Retrieves all bidirectional relationships for a specific entity.
Installation
Add to Claude Desktop config:
{
"mcpServers": {
"mem0": {
"command": "uvx",
"args": ["--from", "git+https://github.com/elvismdev/mem0-mcp-selfhosted.git", "mem0-mcp-selfhosted"],
"env": {
"MEM0_USER_ID": "your-user-id"
}
}
}
}
Supported hosts
- claude
Quick install
claude mcp add --scope user --transport stdio mem0 --env MEM0_USER_ID=your-user-id -- uvx --from git+https://github.com/elvismdev/mem0-mcp-selfhosted.git mem0-mcp-selfhostedInformation
- Pricing
- free
- Published






