An MCP server that gives LLMs persistent, searchable semantic memory
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_external_memory-0.1.2.tar.gz.
File metadata
- Download URL: mcp_external_memory-0.1.2.tar.gz
- Upload date:
- Size: 11.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
098d4d5858b3bc7445659629e4f8ebcc7c67635ddfc09f171797153d5b81be33
|
|
| MD5 |
a4c835a965337a135f7ee01b5fc66d10
|
|
| BLAKE2b-256 |
9e53206af06002ab5e55efec4747ab099231a26d542f4bbb80e782c38d699061
|
Provenance
The following attestation bundles were made for mcp_external_memory-0.1.2.tar.gz:
Publisher:
pypi-publish.yml on daedalus/mcp-external-memory
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcp_external_memory-0.1.2.tar.gz -
Subject digest:
098d4d5858b3bc7445659629e4f8ebcc7c67635ddfc09f171797153d5b81be33 - Sigstore transparency entry: 1287171868
- Sigstore integration time:
-
Permalink:
daedalus/mcp-external-memory@256de69927dcce4404c17546f7c7f53d38697815 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/daedalus
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@256de69927dcce4404c17546f7c7f53d38697815 -
Trigger Event:
release
-
Statement type:
File details
Details for the file mcp_external_memory-0.1.2-py3-none-any.whl.
File metadata
- Download URL: mcp_external_memory-0.1.2-py3-none-any.whl
- Upload date:
- Size: 11.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df8e706835498a2e8f8ee479c346ddf314a1607cfe2f400abdf894b94103fd16
|
|
| MD5 |
6c5f4394a37752b0cab2501e4804a598
|
|
| BLAKE2b-256 |
89c9236175c59a3cb699ee4aa9028e64358703f5f20d7368d2a765863740d9ff
|
Provenance
The following attestation bundles were made for mcp_external_memory-0.1.2-py3-none-any.whl:
Publisher:
pypi-publish.yml on daedalus/mcp-external-memory
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcp_external_memory-0.1.2-py3-none-any.whl -
Subject digest:
df8e706835498a2e8f8ee479c346ddf314a1607cfe2f400abdf894b94103fd16 - Sigstore transparency entry: 1287171924
- Sigstore integration time:
-
Permalink:
daedalus/mcp-external-memory@256de69927dcce4404c17546f7c7f53d38697815 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/daedalus
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi-publish.yml@256de69927dcce4404c17546f7c7f53d38697815 -
Trigger Event:
release
-
Statement type: