An MCP server that gives LLMs persistent, searchable semantic memory
An MCP server that gives LLMs persistent, searchable semantic memory.
pip install mcp-external-memory
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")
mcp-external-memory --help
| 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 |
The server supports multiple embedding backends:
text-embedding-3-small modelSet via MEMORY_EMBED_BACKEND environment variable.
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-name: io.github.daedalus/mcp-external-memory
Source-derived launch command. Check the maintainer’s required arguments and credentials before running:
uvx mcp-external-memoryMerge this template into ~/Library/Application Support/Claude/claude_desktop_config.json. Keep existing servers. Add any arguments, credentials, and permissions required by the maintainer; this template has not been install-tested.
{
"mcpServers": {
"io-github-daedalus-mcp-external-memory": {
"command": "uvx",
"args": [
"mcp-external-memory"
]
}
}
}Restart Claude Desktop completely for changes to take effect. Confirm the server appears connected in the client’s tool list, then try a read-only example from its documentation.
Claude Desktop setup referencemcp-external-memorypypiio.github.daedalus/mcp-external-memory works with any MCP-compatible client. Copy the config snippet from the Configuration section above and add it to the file shown for your client, then restart the application.
~/Library/Application Support/Claude/claude_desktop_config.jsonRestart Claude Desktop completely for changes to take effect.~/.cursor/mcp.jsonRestart Cursor for changes to take effect..vscode/mcp.jsonReload VS Code window for changes to take effect.~/.codeium/windsurf/mcp_config.jsonRestart Windsurf for changes to take effect..mcp.jsonSave at the project root, then start Claude Code in that project and review the MCP server approval prompt. Keep real credentials out of shared files.