Skip to main content
Glama

mcp-external-memory

An MCP server that gives LLMs persistent, searchable semantic memory.

PyPI Python Coverage Ruff

Install

pip install mcp-external-memory

Related MCP server: Recall

Usage

from mcp_external_memory import memory_store, memory_search

# Store a memory
result = memory_store(content="Alice prefers dark mode", namespace="users", tags=["alice", "ui"])

# Search memories
results = memory_search(query="what does Alice prefer?", namespace="users")

CLI

mcp-external-memory --help

API

Tools

Tool

Description

memory_store

Persist text + optional namespace/tags/metadata

memory_search

Semantic search (cosine similarity) over all memories

memory_get

Retrieve a single memory by ID

memory_delete

Delete a memory by ID

memory_list

List memories with optional namespace/tag filter + pagination

memory_stats

Count of memories, namespaces, DB path

memory_update

Update an existing memory

Embedding Backends

The server supports multiple embedding backends:

  • TF-IDF (default): Pure Python, no external dependencies

  • OpenAI: Uses text-embedding-3-small model

  • Ollama: Local embeddings with Ollama

Set via MEMORY_EMBED_BACKEND environment variable.

Development

git clone https://github.com/daedalus/mcp-external-memory.git
cd mcp-external-memory
pip install -e ".[test]"

# run tests
pytest

# format
ruff format src/ tests/

# lint
ruff check src/ tests/

# type check
mypy src/

MCP Registry

mcp-name: io.github.daedalus/mcp-external-memory

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      Not graded
      maintenance
      Provides AI agents with persistent long-term memory capabilities using semantic search. Enables storing, retrieving, and searching memories through three core tools integrated with Mem0 and vector storage.
      MIT
    • F
      license
      A
      quality
      Not graded
      maintenance
      Provides long-term memory storage for AI assistants with semantic search, enabling persistent storage of preferences, decisions, and context with relationship tracking between memories.
      19
      -
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to store and semantically retrieve durable memories across sessions via MCP or REST, with tools for remembering, recalling, asking, updating, and forgetting memories.
      17 npm
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Provides AI coding agents with a persistent memory layer to save, recall, update, and track memories across sessions and repositories using hybrid semantic search.
      5
      MIT