Skip to main content

mcp-external-memory

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

PyPI Python Coverage Ruff

Install

pip install mcp-external-memory

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

Metadata

Release files for mcp-external-memory 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcp-external-memory 0.1.2
File Size Uploaded
mcp_external_memory-0.1.2.tar.gz 11.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mcp-external-memory 0.1.2
File Interpreter ABI Platform
mcp_external_memory-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 23.1 kB

Release files / mcp_external_memory-0.1.2.tar.gz

Download URL mcp_external_memory-0.1.2.tar.gz
Size 11.5 kB
Tags Source
SHA-256 checksum
How to use checksums
098d4d5858b3bc7445659629e4f8ebcc7c67635ddfc09f171797153d5b81be33
BLAKE2b-256 checksum
How to use checksums
9e53206af06002ab5e55efec4747ab099231a26d542f4bbb80e782c38d699061
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 13, 2026.

Transparency log

Release files / mcp_external_memory-0.1.2-py3-none-any.whl

Download URL mcp_external_memory-0.1.2-py3-none-any.whl
Size 11.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
df8e706835498a2e8f8ee479c346ddf314a1607cfe2f400abdf894b94103fd16
BLAKE2b-256 checksum
How to use checksums
89c9236175c59a3cb699ee4aa9028e64358703f5f20d7368d2a765863740d9ff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 13, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page