Enterprise DNA
M MCP Servers Developer low

elvismdev/mem0-mcp-selfhosted

by Various

Self-hosted mem0 MCP server for Claude Code. Run a complete memory server against self-hosted Qdrant + Neo4j + Ollama while using Claude as the main LLM.

E

MCP

elvismdev/mem0-mcp-selfhosted

Added 1 June 2026

#ai-memory #anthropic #claude-code #knowledge-graph #mcp #mcp-server #mem0 #memory

Overview

This tool provides a self-hosted memory server for Claude Code using the MCP protocol. It stores conversation history in Qdrant for vector embeddings and Neo4j for graph relationships, with Ollama generating local embeddings while Claude acts as the primary LLM.

Best for

Best for
Developers who want a self-hosted, privacy-controlled memory backend for Claude Code

Use cases

  • Persisting conversation context across Claude Code sessions
  • Building a long-term memory system for AI coding assistants
  • Running a fully self-hosted memory stack for privacy-sensitive projects

How to use

Install

pip install -e ".[dev]"

Tools exposed

  • mem0-hook-context
  • mem0-hook-stop
  • mem0-install-hooks
  • add_memory
  • search_memories
  • get_memories
  • get_memory
  • update_memory
  • delete_memory
  • delete_all_memories
  • list_entities
  • delete_entities
  • search_graph
  • get_entity
  • MEM0_ANTHROPIC_TOKEN
  • ANTHROPIC_API_KEY
  • MEM0_OAT_HEADERS
  • MEM0_OAT_REFRESH_THRESHOLD_SECONDS
  • MEM0_PROVIDER
  • MEM0_LLM_PROVIDER

Tested with

Claude Code, ChatGPT

Notes

This tool provides a self-hosted memory server for Claude Code using the MCP protocol. It stores conversation history in Qdrant for vector embeddings and Neo4j for graph relationships, with Ollama generating local embeddings while Claude acts as the primary LLM.

87 stars on GitHub. Last updated 2026-03-13. Licensed MIT.

Use cases

  • Persisting conversation context across Claude Code sessions
  • Building a long-term memory system for AI coding assistants
  • Running a fully self-hosted memory stack for privacy-sensitive projects

Pros

  • Full data control through self-hosting all components
  • Uses well-known open-source tools like Qdrant, Neo4j, and Ollama
  • Direct integration with Claude Code, a widely used coding assistant

Cons

  • Requires managing multiple external services (Qdrant, Neo4j, Ollama)
  • Low community adoption with only 87 GitHub stars
  • Setup complexity due to manual configuration and deployment

Indexed from awesome-mcp-servers-punkpeye and enriched against its public facts.

Pros

  • Full data control through self-hosting all components
  • Uses well-known open-source tools like Qdrant, Neo4j, and Ollama
  • Direct integration with Claude Code, a widely used coding assistant

Cons

  • Requires managing multiple external services (Qdrant, Neo4j, Ollama)
  • Low community adoption with only 87 GitHub stars
  • Setup complexity due to manual configuration and deployment
Free 27-page guide

Get the free Developer’s Field Guide

A 27-page field guide to the AI coding workflow with Claude. Claude Code, MCP servers, the prompt patterns that work, and what to delegate. Free.

Enter your work email. We send it straight over, plus a few short notes worth knowing. Unsubscribe any time.

No spam. Unsubscribe any time.

Running a business, not writing the code? See the MCP servers picked for operators, and get your first one wired up with us.

Operator picks