mcp-external-memory
An MCP server that gives LLMs persistent, searchable semantic memory.
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-smallmodel - 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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mcp_external_memory-0.1.2.tar.gz | 11.5 kB | With provenance | Details for mcp_external_memory-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mcp_external_memory-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for mcp_external_memory-0.1.2-py3-none-any.whl |
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 logRelease 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 logSecurity for mcp-external-memory 0.1.2
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for mcp_external_memory-0.1.2.tar.gz
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 logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.