Skip to main content
Glama
dedsxc
by dedsxc

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

search_memory(query, user_id?, limit?)

Recall memories relevant to a query. Call at the start of a task.

add_memory(text, user_id?, role?)

Store a fact/preference/exchange. Use automatically when you learn something durable, or on explicit request.

list_memories(user_id?)

List stored memories for a bucket.

delete_memory(memory_id)

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

MEM0_MEM0_URL

http://mem0:8000

Base URL of the mem0 REST server

MEM0_API_KEY

(none)

Admin API key, sent as X-API-Key

MEM0_DEFAULT_USER_ID

coder-agent

Bucket used when no user_id is passed

MEM0_IDENTITY_HEADER

x-mem0-user-id

Primary trusted header carrying the end-user identity

MEM0_IDENTITY_HEADERS

(none)

Extra identity headers, tried after MEM0_IDENTITY_HEADER (comma-separated, e.g. x-coder-owner-id). First non-empty wins.

MEM0_SEARCH_LIMIT

5

Default number of memories per search

MEM0_TIMEOUT

10

HTTP timeout (s) for reads (search/list)

MEM0_WRITE_TIMEOUT

60

HTTP timeout (s) for writes (add runs a server-side LLM extraction)

MEM0_SERVER_HOST

0.0.0.0

Bind host for the SSE server

MEM0_SERVER_PORT

8000

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 mode

Container

Built by the release-containers workflow (release-please) to ghcr.io/dedsxc/openmemory-mcp:<version> for linux/amd64,linux/arm64.

Available Tools

4 tools
add_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.

ParametersJSON Schema
NameRequiredDescriptionDefault
roleNoMessage role to attribute the text to ("user" or "assistant").user
textYesThe content to remember.

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the burden of behavioral disclosure. It reveals that mem0 performs server-side extraction ('not every call creates a stored entry') and that the memory bucket is auto-derived from identity, with no way to specify the target. This is valuable non-obvious behavior. It does not mention potential side effects like overwrites or deduplication, but the disclosure is solid.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is compact and front-loaded with the main action. Each sentence adds value: purpose, when to use, the extraction caveat, and identity-based bucket. No redundant phrases or filler. It is appropriately sized for the tool's complexity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description covers the tool's purpose, invocation triggers, behavioral caveats, and identity constraints. With an output schema available, explaining return values is unnecessary. Sibling tools are easily distinguishable, and the edge case of extraction means the description is complete for an AI agent to select and invoke correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3. The description adds context about the overall purpose but does not elaborate on parameter-specific semantics beyond what the schema already provides (e.g., the 'role' default). It does not clarify how role affects extraction or storage, but the schema is sufficient for basic usage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's action ('Store a new memory... in long-term memory'), specifies the types of content (fact, preference, exchange), and distinguishes it from siblings by being the write operation (vs search/list/delete). It also adds nuance about server-side extraction, making the purpose fully concrete.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description explicitly tells when to use it ('when you learn something durable... or on explicit request'), which is strong usage guidance. However, it does not explicitly mention when not to use it or name alternatives (though siblings are obvious). This is clear context but not a full when/when-not comparison.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

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).

ParametersJSON Schema
NameRequiredDescriptionDefault
memory_idYesThe id of the memory to forget (from search/list results).

Output Schema

ParametersJSON Schema
NameRequiredDescription

No output parameters

TDQS

A4.5/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the transparency burden. It discloses the critical behavioral trait that deletion is not scoped to a user ('mem0 deletes by id without a user filter'), which is a potential hazard. It also implies an identity/bucket context, adding value beyond the schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, front-loaded with the core action, followed by a relevant caveat. No filler; every sentence contributes essential information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-parameter delete operation with an output schema, the description covers the action, parameter provenance, and a critical behavioral nuance. It is sufficiently complete for an agent to invoke the tool correctly without additional details.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema already documents memory_id as 'The id of the memory to forget (from search/list results)' with 100% coverage. The description reinforces this by explaining why ids must come from this identity's own results, adding meaningful context to the parameter's safe usage.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a clear verb and object: 'Delete a single memory by its id.' This precisely states the tool's function and distinguishes it from siblings like search_memory, add_memory, and list_memories, which involve other operations.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The note 'ids should only be obtained from this identity's own search_memory / list_memories results' gives concrete usage guidance, explaining how to safely source the id and why (deletes without a user filter). It does not explicitly mention alternatives, but the scoping caution serves as effective when-to-use context.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

list_memoriesA

List all stored memories for your authenticated identity's bucket.

Returns: A list of memory objects with their ids and remembered text.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden. It explicitly discloses that it lists all memories for the authenticated identity's bucket and describes the return structure (ids and remembered text). It does not mention ordering or pagination, but for a read-only list operation, this is sufficient contextual detail.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is two concise sentences, front-loaded with the specific action ('List all stored memories'), and includes a clear return value statement. Every sentence contributes value with no redundancy or fluff.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple, no-parameter list tool with an output schema, the description fully covers purpose, scope, and return type. It mentions the authenticated identity's bucket and the returned fields, making it complete for this tool's complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool has zero parameters, so the baseline is 4 per the rubric. The description adds no parameter-specific details because none are needed; the schema fully accounts for the empty parameter list.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description uses a specific verb ('List') and clearly identifies the resource ('all stored memories for your authenticated identity's bucket'). It distinguishes itself from sibling tools like search_memory by emphasizing 'all' and 'authenticated identity's bucket', leaving no ambiguity about what it does.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies the tool is for retrieving all memories, but it does not explicitly state when to use it over alternatives like search_memory or add_memory. There is no mention of exclusions or alternative tool names, leaving the agent to infer usage from the word 'all' versus the sibling tool names.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

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.

ParametersJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of memories to return (default from config).
queryYesNatural-language description of what to recall.

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.2/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the burden. It discloses that memory bucket is auto-determined from authenticated identity and cannot be specified, adding important behavioral context. It implies a read-only operation through the verb 'search', though it does not explicitly state that no modifications occur. This is sufficient for a search tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three concise, well-structured sentences. The purpose is front-loaded, usage guidance follows, and the identity constraint is clearly stated. No verbose or redundant language.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool is simple with full schema coverage and an output schema, so the description need not explain return values. It covers purpose, usage timing, and a key identity constraint. It could have briefly mentioned strategies for effective queries, but overall it is complete for the tool's complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, with query and limit already described in the schema. The description adds no additional parameter-level detail, so the baseline of 3 is appropriate. The auto-bucket note clarifies that no identity parameter is needed, but that is a behavioral clarification rather than parameter semantics.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a clear verb+resource statement: 'Search long-term memory for entries relevant to a query.' It specifically focuses on recall from earlier sessions, distinguishing it from sibling tools like add_memory, list_memories, and delete_memory.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly states when to use: 'Call this at the start of a task (or whenever prior context would help) to recall what was learned in earlier sessions.' It provides clear context but does not explicitly name alternatives or when-not-to-use scenarios, such as using list_memories for browsing without a query.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. 4 tool updatesv0.0.1
    • First observedadd_memory
    • First observeddelete_memory
    • First observedlist_memories
    • First observedsearch_memory

TDQS

A4.4/5.0
Disambiguation5/5

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.

Naming Consistency5/5

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.

Tool Count5/5

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.

Completeness4/5

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

ActivitySlowing
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    An 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.
    MIT
  • A
    license
    A
    quality
    B
    maintenance
    A 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.
    24
    MIT

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dedsxc/mcp-openmemory'

If you have feedback or need assistance with the MCP directory API, please join our Discord server