An MCP (Model Context Protocol) server that exposes Memori-backed tools for IDE/agent shells like Claude Code, Cursor, and Cline.
This server is designed to follow MCP security best practices:
- Least privilege: only two tools (
remember,recall) and no file-system/network side effects. - Scoped memory: requires or derives
entity_id+process_idto avoid cross-project leakage. - Input limits: size caps and validation on all tool inputs.
- No secrets in logs: structured logs avoid dumping request payloads by default.
References:
cd memori-mcp
python3 -m venv .venv
source .venv/bin/activate
pip install -U pip
pip install -e .Environment variables:
MEMORI_MCP_DB(default:sqlite:///./memori.db)MEMORI_MCP_ENTITY_ID(optional; default: current OS user)MEMORI_MCP_PROCESS_ID(optional; default: current working dir name)
memori-mcp(Transports/config vary by client. This project starts with stdio transport.)
Stores a memory snippet (e.g. decisions, preferences, TODOs).
Recalls relevant memories using semantic search.
Early reference implementation.
