DeepMem logo

DeepMem

DeepMem adds persistent, semantically searchable memory to AI agents through MCP, a Mem0-compatible API, or self-hosted Docker.

Install DeepMem

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "deepmem": {
      "command": "uvx",
      "args": [
        "deepmem-client"
      ],
      "env": {
        "DEEPMEM_API_KEY": "YOUR_VALUE_HERE",
        "DEEPSEEK_API_KEY": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env DEEPMEM_API_KEY=YOUR_VALUE_HERE --env DEEPSEEK_API_KEY=YOUR_VALUE_HERE --transport stdio deepmem -- uvx deepmem-client

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We hit an unexpected error while testing this listing automatically.

uvx deepmem-client

Rate limit exceeded, please try again later - you have reached the maximum number of concurrent E2B sandboxes (20). If you need more, please visit 'https://e2b.dev/docs/billing'

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

The DeepMem MCP server gives AI agents tools to write and recall persistent memories backed by a FastAPI service and Qdrant vector store. It extracts durable facts from conversations, then searches them with hybrid retrieval using vector similarity, BM25, entity boosting, and time decay. Run it self-hosted with Docker or use DeepMem Cloud; reach for it when agents need memory across sessions, users, or projects without adopting a knowledge graph.

Use cases

  • Persist user preferences across agent sessions
  • Recall project and debugging context
  • Search stored research findings
  • Separate memories for multiple users
  • Connect Claude Desktop or Cursor to agent memory

Key features

  • Mem0-compatible MemoryClient API
  • Hybrid vector and keyword retrieval
  • MCP read and write access
  • User-scoped memory isolation
  • Asynchronous fact extraction
  • Self-hosted Docker deployment

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

26/26 checks healthy over the last 84d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 9d ago via OSV.dev · deepmem-client (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars113Stargazers on the source repository.
Last commit3mo agoMost recent push to the default branch.
Install checkInconclusiveWe hit an unexpected error running the automated check.

How DeepMem works

What DeepMem MCP server does

The DeepMem MCP server provides persistent memory for AI agents. It accepts conversation content, extracts durable facts, stores them in a searchable memory system, and retrieves relevant information later. The project also exposes a Mem0-compatible HTTP API, so applications using the MemoryClient pattern can migrate by changing the client import rather than rewriting method calls.

Memory is scoped with user_id, which supports isolation between users or agent identities. The system is intended for preferences, identity details, project context, research findings, debugging history, and other facts that should survive individual conversations. It is not designed as a knowledge graph: graph relations are not replicated, and relation results remain empty.

How it works

A FastAPI HTTP layer sits in front of Qdrant, which stores the vector-based memory data. LLM-based fact extraction turns incoming messages into durable memories. Retrieval combines vector similarity with BM25 keyword matching, entity boosting, and time decay rather than relying on a single embedding score.

By default, inferred additions can be processed asynchronously. The cloud client may return a pending result before extracted facts are available. Using infer=False stores raw text synchronously and makes it immediately searchable.

The DeepMem MCP server allows MCP clients such as Claude Desktop and Cursor to read and write memories directly. Self-hosted deployments run the HTTP API on port 8000 and the MCP service on port 8001, alongside a Qdrant sidecar in the documented Docker Compose setup.

Setup and configuration

DeepMem can be used through the managed service at deepmem.dev or run locally. Cloud access uses a dm_live_... API key and the DeepMem base URL. The Python client is installed with pip install deepmem-client and follows the Mem0 MemoryClient interface.

For local deployment, the documented path is Docker Compose:

  • Copy .env.example to .env.
  • Add an LLM provider key.
  • Run docker compose up --build.
  • Check the HTTP service at http://localhost:8000/health.

The published Docker image is langdeepmem/deepmem:latest. A direct Docker run publishes ports 8000 and 8001 and passes an LLM key through the environment. The project supports bring-your-own LLM and embedding providers, including OpenAI, Anthropic, OpenAI-compatible endpoints, BGE-M3, Google, and OpenAI-compatible embedding services.

Tools and capabilities

  • Write conversation-derived memories.
  • Search memories semantically and by keyword.
  • Read and write memories through MCP clients.
  • Isolate memory using user_id.
  • Apply asynchronous fact extraction and batched distillation.
  • Use GDPR controls and semantic caching.

Limitations and notes

The DeepMem MCP server stores extracted preferences and facts rather than complete code dumps; large fenced code blocks are removed before extraction. Retrieval is hybrid, not graph-based, so applications requiring temporal graph relations should use a different system. Reset behavior is scoped to a user_id and includes a confirmation guard, unlike the account-wide behavior described for Mem0.

Self-hosting requires managing the service, Qdrant, and the chosen LLM or embedding providers. Open mode does not require an API key or user registration for a local deployment, while DeepMem Cloud requires its API key. Cloud inference may be asynchronous, so clients should account for pending results when using the default extraction behavior.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about DeepMem

DeepMem is an MCP server that connects AI agents to persistent, searchable memory backed by a FastAPI service and Qdrant. Its main tools let MCP clients write conversation-derived memories and retrieve relevant facts later. It also supports Mem0-compatible API access, user-scoped isolation, hybrid retrieval, and self-hosted Docker deployment.

Install it locally with Docker Compose by copying `.env.example` to `.env`, adding an LLM key, and running `docker compose up --build`. The deployment exposes HTTP on port 8000 and MCP on port 8001, with Qdrant included as a sidecar.

Yes, DeepMem works with Cursor through its built-in MCP server. The README identifies Cursor and Claude Desktop as clients that can read and write memories directly.

Yes, migration is supported through the Mem0-compatible `MemoryClient` interface. Install `deepmem-client`, change the import from `mem0` to `deepmem`, and keep the documented method signatures and `user_id` filtering style.

No, DeepMem uses hybrid retrieval rather than a knowledge graph. Its search combines vector similarity, BM25 matching, entity boosting, and time decay, while graph relation results remain empty.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewDeepMem AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/deepmem?style=directory)](https://allmcps.com/mcp/deepmem)
HTML Embed
<a href="https://allmcps.com/mcp/deepmem"><img src="https://allmcps.com/api/badge/deepmem?style=directory" alt="DeepMem on AllMCPs" /></a>