Skip to main content

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.

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_external_memory-0.1.2.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_external_memory-0.1.2-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

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

Hashes for mcp_external_memory-0.1.2.tar.gz
Algorithm Hash digest
SHA256 098d4d5858b3bc7445659629e4f8ebcc7c67635ddfc09f171797153d5b81be33
MD5 a4c835a965337a135f7ee01b5fc66d10
BLAKE2b-256 9e53206af06002ab5e55efec4747ab099231a26d542f4bbb80e782c38d699061

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mcp_external_memory-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_external_memory-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 df8e706835498a2e8f8ee479c346ddf314a1607cfe2f400abdf894b94103fd16
MD5 6c5f4394a37752b0cab2501e4804a598
BLAKE2b-256 89c9236175c59a3cb699ee4aa9028e64358703f5f20d7368d2a765863740d9ff

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page