memory-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@memory-mcpRemember that Alice prefers dark mode"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
memory-mcp
π·πΊ Π ΡΡΡΠΊΠ°Ρ Π²Π΅ΡΡΠΈΡ
MCP server that gives LLM clients (Open WebUI, Claude Desktop, Cursor, custom bots) access to per-user long-term memory backed by SQLite.
Features
7 tools β save, search, list, get, delete memories
Per-user isolation β each
user_idis a separate namespaceSQLite β single file, no server, no setup
HTTP (streamable) and SSE transports β works with any MCP client
CORS enabled β ready for browser-based clients
Related MCP server: agent-memory
Installation
Docker (recommended)
docker pull ghcr.io/dolphin2702/memory-mcp:latestRun with a local data directory:
docker run -d \
--name memory-mcp \
-p 8765:8765 \
-v $(pwd)/data:/data \
-e DB_PATH=/data/memory.db \
ghcr.io/dolphin2702/memory-mcp:latestFrom source
git clone git@github.com:dolphin2702/memory-mcp.git
cd memory-mcp
python3 -m venv .venv
source .venv/bin/activate
pip install -e .
DB_PATH=./data/memory.db memory-mcpConfiguration
Variable | Default | Description |
|
| Path to the SQLite database file |
|
| Bind address |
|
| HTTP port |
Tools
Tool | Description |
| Save a piece of information for a user |
| Find memories by substring |
| Alias for |
| List all memories for a user |
| Get a single memory by ID |
| Delete memories by a list of IDs |
| Delete all memories for a user |
Each tool accepts an optional user_id argument (defaults to "default").
The server also reads the X-User-Id HTTP header if user_id is missing.
User IDs
user_id is a free-form string. The convention is up to the client. Common
patterns:
aliceβ one shared space per personaliceandalice_privateβ two independent spaces (e.g. reference facts vs. personal notes)telegram:471375444β namespace per Telegram account
There is no built-in list of users; any string works.
HTTP API
Method | Path | Description |
POST |
| Streamable HTTP JSON-RPC |
GET |
| SSE stream endpoint |
POST |
| SSE message channel |
GET |
| Liveness probe |
GET |
| Status |
POST |
| JSON-RPC (legacy) |
Connecting from MCP clients
Open WebUI
Admin Settings β Integrations β Tool Servers
+ Add Connection
Type: MCP (Streamable HTTP)
URL:
https://mem0.example.com/mcpAuth: none (or Bearer, if you've configured a reverse proxy)
Claude Desktop / Cursor
{
"mcpServers": {
"memory": {
"type": "streamable",
"url": "https://mem0.example.com/mcp"
}
}
}curl
curl -s -X POST https://mem0.example.com/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"add_memories","arguments":{"text":"Alice prefers dark mode","user_id":"alice"}}}'Behind a reverse proxy (nginx)
SSE requires special settings. See the example configuration in the project
documentation. Minimum for /sse:
proxy_buffering off;
proxy_read_timeout 24h;
proxy_set_header Connection '';License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Shared, governed long-term memory for AI agents across tools and sessions via MCP and REST.
- KogniteOAuthdev.kognite
Hosted agent memory: store, search, and recall facts across sessions from any MCP client.
Cross-tool persistent memory and context for AI assistants over MCP.
Persistent memory for AI agents β log and recall conversation context over MCP.
Related MCP Servers
- AlicenseAqualityBmaintenanceProvides persistent, inspectable memory storage for AI agents using SQLite. Agents can store, recall, and search memories across sessions via three MCP tools.3MIT
- AlicenseNot gradedqualityCmaintenanceMCP server for zero-config, traceable long-term memory using SQLite, enabling agents to store, search, trace, and monitor memory with tools like memory_store, memory_search, and memory_health.1MIT
- AlicenseNot gradedqualityAmaintenanceProvides persistent, cooperative memory for LLMs via MCP, with SQLite storage and tools for capturing, recalling, consolidating, crystallizing, and forgetting memories across sessions.3MIT
- AlicenseAqualityBmaintenanceProvides persistent, searchable memory for AI agents across any MCP-compatible client, storing project context, user preferences, and session learnings locally in SQLite with tools to save, retrieve, search, and manage them.1212 npmMIT