Memory Engine MCP logo

Memory Engine MCP

Local-first MCP memory built on SQLite, typed knowledge graphs, hybrid retrieval, and optional Ollama embeddings.

Install Memory Engine MCP

Run the project’s own setup commands, in order.

Setup steps from the project

Memory Engine MCP installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Start the server
    docker compose up -d
    
  2. 2. Install
    git clone https://github.com/SimoneB79/memory-engine-mcp.git
    
  3. 3. Run
    cd memory-engine-mcp
    
  4. 4. Configure
    cp docker-compose.yml docker-compose.local.yml
    
  5. 5. Start the server
    docker compose -f docker-compose.local.yml up -d --build
    
  6. 6. Configure
    python -m venv .venv
    

Overview

Memory Engine MCP MCP server gives AI assistants persistent local memory through SQLite atoms, typed bonds, semantic search, and graph-aware retrieval. Its MCP tools cover memory capture, recall, context packing, graph navigation, curation, error tracking, preference lookup, backups, and session analysis. Optional Ollama embeddings add semantic retrieval while SQLite FTS5 supports recall without a cloud API. Use it when an assistant needs durable, structured context across tasks or sessions.

Use cases

  • Persist assistant facts, decisions, and preferences across sessions
  • Retrieve task context with semantic and graph-based recall
  • Import markdown notes into structured memory
  • Review mistakes and corrections before repeating a task
  • Inspect and maintain an OpenClaw session memory store

Key features

  • SQLite-backed atoms and typed knowledge-graph bonds
  • Hybrid full-text and local semantic retrieval
  • Task-oriented working-set generation
  • Curation, decay, contradiction, and duplicate handling
  • OpenClaw session search and summarization
  • SQLite backup, restore, JSON export, and import

Tools38

What Memory Engine MCP lets your agent do. Expand a tool for its parameters.

Self-reported~432 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

25/29 checks healthy over the last 117d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars1Stargazers on the source repository.
Last commit9d agoMost recent push to the default branch.
Tools exposed38Callable tools this server registers over MCP.

How Memory Engine MCP works

What Memory Engine MCP does

Memory Engine MCP stores assistant memory as structured atoms connected by typed bonds. An atom can represent a fact, decision, event, preference, log, procedure, or note, with fields such as a title, body, domain, confidence, weight, tags, and optional expiration. The underlying database is SQLite, with FTS5 indexes, JSON metadata, and version information.

The server is designed for local-first, long-term memory. It can preserve relationships between memories rather than treating each note as an isolated text record. It also includes facilities for contradictions, memory tiers, impact analysis, error history, preferences, session data, backups, and portable import or export.

How it works

Memory Engine combines SQLite full-text search with optional local embeddings from Ollama using the nomic-embed-text model. Hybrid recall considers semantic similarity alongside confidence, recency, and weight, then can expand results through related graph bonds. Pure semantic search is available separately when graph expansion is not wanted.

The memory workflow includes tools for creating or updating atoms, reading and filtering them, merging duplicates, linking related items, and assembling task-oriented working sets. Maintenance tools can identify contradictions, weak memories, merge candidates, gaps, duplicate session atoms, and expired session data. A curator pass is intended for conservative, non-destructive maintenance.

OpenClaw session tools can search and summarize individual sessions. Session ingestion supports an OpenClaw SQLite database with schema 17 and a legacy JSONL fallback. Markdown notes can be imported into atoms without replacing the original human-readable files.

Setup and configuration

The server can run from Python or Docker. A local Python setup creates a virtual environment, installs requirements.txt, and starts server.py. Docker Compose can use the published image or build from the repository. The default SSE endpoint is http://localhost:8085/sse.

Configuration is stored in config.json, with environment variables for database location, markdown imports, bind address, port, optional API authentication, OpenClaw sources, and session digest output. MEMORY_DB_PATH defaults to /data/memory.db, while MEMORY_HOST defaults to 127.0.0.1 and MEMORY_PORT to 8085. MEMORY_API_TOKEN enables optional token authentication.

Ollama must be reachable from the server process for semantic embeddings. Set the Ollama feature off when local embeddings are not needed; full-text recall remains available. The optional web UI can run on port 6000 and provides graph exploration, atom inspection, contradiction browsing, impact analysis, and statistics.

Tools and capabilities

  • Capture and retrieve memory with remember, recall, working_set, semantic_search, get_atom, and list_atoms.
  • Build and inspect relationships with link, search_graph, suggest_bonds, and bulk bond suggestions.
  • Maintain memory with curation, learning, decay, duplicate cleanup, session cleanup, and embedding reindexing tools.
  • Track mistakes and preferences through error logging, error checks, error lists, and structured preference search.
  • Inspect contradictions, classify memory tiers, analyze atom impact, and generate summaries or statistics.
  • Back up and restore SQLite data, or exchange memory through JSON and markdown import/export.

Limitations and notes

Semantic search depends on Ollama and its configured embedding model; disabling Ollama leaves SQLite FTS-based recall available. The default service bind address is local-only, while remote deployments can configure the host and optional API token. OpenClaw-specific session features depend on the supported SQLite or JSONL session sources. Database snapshots, restore operations, and data imports should be treated as operational tasks because they modify persistent memory.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Memory Engine MCP

Memory Engine MCP is an MCP server that connects AI assistants to a local SQLite memory store, optional Ollama embeddings, and OpenClaw session data. Its main tools create and retrieve atoms, search semantically, expand through graph bonds, build working sets, maintain memories, track errors, and manage backups.

Install it either with Docker Compose or locally from Python. Docker can use the published image or build from source; a local setup creates a virtual environment, installs `requirements.txt`, and runs `server.py`. The default SSE endpoint is `http://localhost:8085/sse`.

Yes, Cursor is listed as a supported MCP client. Connect it to the server's SSE endpoint, such as `http://localhost:8085/sse`, using the MCP server configuration format.

Yes. Disable Ollama in `config.json` when local embeddings are not needed; SQLite FTS5-based recall remains available. Ollama is required for the semantic embedding path using the configured `nomic-embed-text` model.

Use `import_markdown` to bring existing markdown notes into atoms.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMemory Engine MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/memory-engine-mcp?style=directory)](https://allmcps.com/mcp/memory-engine-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/memory-engine-mcp"><img src="https://allmcps.com/api/badge/memory-engine-mcp?style=directory" alt="Memory Engine MCP on AllMCPs" /></a>