memory-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
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: light-agent-memory-mcp-server
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
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogโฆ
This server cannot be deployed
Maintenance
Related MCP Connectors
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.
Hosted memory for AI agents over MCP. One memory shared by all your agents.
Persistent personal memory for AI assistants โ save, search, and recall across every MCP client.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceProvides persistent, cooperative memory for LLMs via MCP, with SQLite storage and tools for capturing, recalling, consolidating, crystallizing, and forgetting memories across sessions.4MIT
- AlicenseAqualityCmaintenanceProvides 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.129 npmMIT
- AlicenseBqualityBmaintenanceLocal long-term memory service for AI agents via MCP, using SQLite with tools for memory CRUD, semantic search, time-based facts, and graph capabilities.2725 npm1MIT
- AlicenseNot gradedqualityBmaintenanceEnables MCP clients to give agents durable long-term memory by exposing remember, recall and forget tools backed by a typed SQLite store, so facts about a user can be written deliberately and the most important ones retrieved on request.27MIT