mcp-openmemory
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., "@mcp-openmemory search my memories about the recent bug fix"
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.
mcp-openmemory
A FastMCP server that exposes mem0 long-term memory to MCP clients (e.g. an AI coding agent) over SSE.
It is a thin, stateless MCP layer over an existing mem0 REST server
(http://mem0:8000) — it does not run its own vector store. This keeps a
single source of truth for memory (the mem0 pgvector store) instead of
introducing a second, disconnected memory silo.
Tools
Tool | Purpose |
| Recall memories relevant to a query. Call at the start of a task. |
| Store a fact/preference/exchange. Use automatically when you learn something durable, or on explicit request. |
| List stored memories for a bucket. |
| Forget a single memory by id. |
Memory is isolated per user_id ("bucket"). When a caller omits user_id,
MEM0_DEFAULT_USER_ID is used, giving the agent a single shared memory.
Related MCP server: mem0-agent-memory
Configuration
Environment variables (prefix MEM0_):
Variable | Default | Description |
|
| Base URL of the mem0 REST server |
| (none) | Admin API key, sent as |
|
| Bucket used when no |
|
| Primary trusted header carrying the end-user identity |
| (none) | Extra identity headers, tried after |
|
| Default number of memories per search |
|
| HTTP timeout (s) for reads (search/list) |
|
| HTTP timeout (s) for writes (add runs a server-side LLM extraction) |
|
| Bind host for the SSE server |
|
| Bind port for the SSE server |
Run
pip install -e .
openmemory-mcp-sse # SSE at http://0.0.0.0:8000/sse
# or
openmemory-mcp # stdio modeContainer
Built by the release-containers workflow (release-please) to
ghcr.io/dedsxc/openmemory-mcp:<version> for linux/amd64,linux/arm64.
Available Tools
4 toolsadd_memoryA
Store a new memory (a fact, preference, or exchange) in long-term memory.
Use this automatically when you learn something durable about the user or project, or on explicit request ("remember that ..."). mem0 runs a server-side extraction to decide what is worth keeping, so not every call creates a stored entry.
The memory bucket is determined automatically from your authenticated identity; you cannot and need not specify whose memory to write.
Inputs: text (required), role. Returns: object
delete_memoryA
Delete a single memory by its id.
Note: mem0 deletes by id without a user filter, so ids should only be
obtained from this identity's own search_memory / list_memories
results (both scoped to the caller's bucket).
Inputs: memory_id (required). Returns: object
list_memoriesA
List all stored memories for your authenticated identity's bucket.
Returns: A list of memory objects with their ids and remembered text.
Inputs: no named parameters. Returns: result
search_memoryA
Search long-term memory for entries relevant to a query.
Call this at the start of a task (or whenever prior context would help) to recall what was learned in earlier sessions.
The memory bucket is determined automatically from your authenticated identity; you cannot and need not specify whose memory to read.
Inputs: query (required), limit. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool has a clearly distinct purpose: search, add, list, and delete memory. There is no overlap or ambiguity between them, and the descriptions reinforce their unique roles.
All tool names follow a consistent verb_noun pattern (search_memory, add_memory, list_memories, delete_memory). The plural in list_memories is a natural fit for listing multiple items, similar to standard API conventions.
Four tools is well-scoped for a memory management server, covering the essential operations without unnecessary bloat. It sits comfortably within the ideal 3-15 tool range.
The server provides create, read (search and list), and delete operations, but lacks an update operation. This is a minor gap, as memories can be deleted and re-added, but it slightly limits full lifecycle coverage.
Maintenance
Related MCP Connectors
Hosted memory for AI agents over MCP. One memory shared by all your agents.
An MCP memory server. One memory your agents share — across models, devices and apps.
Persistent memory, knowledge graph, task management and more for AI agents via MCP.
Hosted agent memory: store, search, and recall facts across sessions from any MCP client.
Related MCP Servers
- AlicenseAqualityDmaintenanceSelf-hosted remote MCP memory server for ChatGPT and AI agents.342MIT
- AlicenseAqualityDmaintenanceAn MCP server that provides persistent memory capabilities for AI agents using Mem0, enabling storage, search, and management of contextual information across conversations with support for multiple backends and LLM providers.1834 PyPIMIT
- FlicenseNot gradedqualityDmaintenanceA remote MCP server deployed on Cloudflare Workers for memory storage and retrieval using Mem0, supporting SSE and standard MCP connections.1-
- AlicenseAqualityBmaintenanceA long-term memory MCP server for AI agents that stores memories (facts, decisions, etc.) in a single SQLite database with hybrid search and full edit history, ensuring consistency across sessions.43MIT