Mem0 MCP Selfhosted MCP Server

Self-hosted [mem0](https://github.com/mem0ai/mem0) MCP server for Claude Code. Run a complete memory server against self-hosted Qdrant + Neo4j +

Remote serverstreamable-httpPython

What is the Mem0 MCP Selfhosted MCP Server?

Self-hosted mem0 MCP server for Claude Code. Run a complete memory server against self-hosted Qdrant + Neo4j + Ollama, with your

Credentials and setup notes

| Service | Required | Purpose | |---------|----------|---------| | Qdrant | Yes | Vector memory storage and search | | Ollama | Yes | Embedding generation (bge-m3) and optionally local LLM | | Neo4j 5+ | Optional | Knowledge graph (entity relationships) | | Google API Key | Optional | Required only for gemini/gemini_split graph providers | Python >= 3.10 and

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
add_memoryStore text or conversation history as memories. Supports enable_graph, infer, metadata.
search_memoriesSemantic search with optional filters, threshold, rerank, enable_graph.
get_memoriesList/filter memories (non-search). Supports limit and scope filters.
get_memoryFetch a single memory by UUID.
update_memoryReplace memory text. Re-embeds and re-indexes in Qdrant.
delete_memoryDelete a single memory by UUID.
delete_all_memoriesBulk-delete all memories in a scope.
list_entitiesList users/agents/runs with memory counts. Uses Qdrant Facet API.
delete_entitiesCascade-delete an entity and all its memories.
search_graphSearch Neo4j entities by name substring. Returns entities + outgoing relationships.
get_entityGet all relationships for an entity (bidirectional: incoming + outgoing).

How to install the Mem0 MCP Selfhosted MCP Server

{
  "mcpServers": {
    "mem0": {
      "command": "uvx",
      "args": [
        "--from",
        "git+https://github.com/elvismdev/mem0-mcp-selfhosted.git",
        "mem0-mcp-selfhosted"
      ],
      "env": {
        "MEM0_PROVIDER": "ollama",
        "MEM0_LLM_MODEL": "qwen3:14b",
        "MEM0_USER_ID": "your-user-id"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

| Service | Required | Purpose | |---------|----------|---------| | Qdrant | Yes | Vector memory storage and search | | Ollama | Yes | Embedding generation (bge-m3) and optionally local LLM | | Neo4j 5+ | Optional | Knowledge graph (entity relationships) | | Google API Key | Optional | Required only for gemini/gemini_split graph providers | Python >= 3.10 and

VariableDescriptionRequired
MEM0_PROVIDERDeclared in the maintainer’s client configuration.Check documentation
MEM0_LLM_MODELDeclared in the maintainer’s client configuration.Check documentation
MEM0_USER_IDDeclared in the maintainer’s client configuration.Check documentation

Example prompts to try

  • “Use Mem0 MCP Selfhosted to add memory.”
  • “Use Mem0 MCP Selfhosted to search memories.”
  • “Use Mem0 MCP Selfhosted to get memories.”

Frequently asked questions

Self-hosted [mem0](https://github.com/mem0ai/mem0) MCP server for Claude Code. Run a complete memory server against self-hosted Qdrant + Neo4j + Ollama, with your Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.