Mismem logo

Mismem

Shared SQLite memory for MCP clients, with episodic capture, searchable memories, durable traits, and optional semantic recall.

Install Mismem

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "mismem": {
      "command": "npx",
      "args": [
        "-y",
        "@lucasmella/mismem"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

The mismem MCP server gives MCP-compatible clients a shared, persistent memory stored in SQLite. It organizes information as short-lived episodes, reinforced memories, and durable traits, exposed through capture, recall, consolidate, crystallize, and forget operations. Local deployments use stdio, while a Docker-based Streamable HTTP mode supports remote multi-client access with optional Basic Auth. Reach for it when several assistants or coding agents need continuity across sessions and shared scopes.

Use cases

  • Share project context between Claude Desktop, Claude Code, and other MCP clients
  • Capture coding-session episodes under separate project scopes
  • Recall reinforced memories across independent agent sessions
  • Consolidate conversation evidence into durable project knowledge
  • Crystallize stable preferences or technical decisions as traits

Key features

  • SQLite persistence with WAL
  • FTS5 and optional Ollama semantic recall
  • Episode, memory, and trait lifecycle
  • Hierarchical scopes with deduplicated capture
  • Stdio and Streamable HTTP deployment modes
  • Engram compatibility layer

Security & health

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

ActiveLast checked Today

Recent health check succeeded.

7/7 checks healthy over the last 42d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 14d ago via OSV.dev · @lucasmella/mismem (npm)

Adoption & maintenance

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

GitHub stars3Stargazers on the source repository.
npm downloads119Package downloads in the last 30 days.
Last commitTodayMost recent push to the default branch.

How Mismem works

What mismem MCP server does

The mismem MCP server provides a shared memory layer for multiple MCP clients and agent instances. Instead of keeping context inside one assistant or application, it stores data in a SQLite database that can be accessed by local clients through the same MCP endpoint. The default database path is ~/.mismem/mem.db, and the location can be changed with MISMEM_DB.

Its data model has three levels. Episodes retain dated source text for immediate context, but are intended to expire after consolidation. Memories represent distilled knowledge and have a salience score that decreases over time unless recalled. Traits store stable preferences, decisions, or rules and remain until explicitly removed. This model is useful when raw conversation history should not persist indefinitely while conclusions and durable policies should remain available.

How it works

The mismem MCP server exposes five primary operations:

  • capture records an episode under a hierarchical scope.
  • recall searches stored information and reinforces returned memories.
  • consolidate turns related episodes into a memory.
  • crystallize records a trait supported by evidence.
  • forget removes memories that meet the configured forgetting conditions.

Search uses SQLite FTS5. Memory recall can also add semantic matching through a local Ollama embedding model, with vectors stored in the same database. Without Ollama, recall falls back to FTS5. Semantic search applies to memories; episodes and traits use FTS5. Salience decays to half its value after 90 days by default, and recall applies the pending decay before adding Hebbian reinforcement.

A compatibility layer also supports Engram-style operations such as mem_save, mem_search, mem_context, and session-related calls. Hierarchical scopes are used to separate contexts and prevent cross-scope leakage. Capture and ingestion include deduplication so repeated imports are idempotent.

Setup and configuration

The quickest installation uses the npm package @lucasmella/mismem with npx in an MCP client's server configuration:

config.json
{
  "mcpServers": {
    "mismem": {
      "command": "npx",
      "args": ["-y", "@lucasmella/mismem"]
    }
  }
}

The local engine requires Node.js 22 or newer. Developers can instead clone the repository, install dependencies from engine, build the TypeScript project, and launch engine/dist/server.js with Node. The database is created on first use.

For remote access, the project provides a Docker image with Streamable HTTP support. Mount a volume at /data, publish port 3200, and set MISMEM_AUTH_USER and MISMEM_AUTH_PASS when authentication is needed. The HTTP service also exposes /healthz; the included viewer provides read-only pages and APIs for statistics, recent entries, and search. Do not expose HTTP without authentication beyond localhost.

Tools and capabilities

The mismem MCP server includes command-line utilities for ingesting ChatGPT exports and VS Code transcripts, consolidating data, forgetting entries, viewing statistics, migrating Engram data, and managing embeddings. A scheduled LLM consolidation workflow can use OpenRouter to distill episodes into memories, with a Pareto pre-filter intended to remove noise. Optional embedding backfill and reindexing are available through mismem-embed.

Limitations and notes

SQLite uses WAL mode, supporting multiple readers but one concurrent writer. Semantic search requires a running local Ollama service and the nomic-embed-text model; otherwise the system remains usable with lexical search. Traits and episodes do not receive semantic search. Memory deletion is threshold- and grace-period-based, and forget supports a dry-run mode before changing the database.

The project is marked as having a Bun-compiled distributable still in progress. Personal databases, exports, and dumps should stay out of version control. The software is licensed under MIT.

Reviews

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

Frequently Asked Questions about Mismem

mismem is an MCP server that connects MCP-compatible clients to a shared SQLite memory database. Its main tools capture episodes, recall searchable memories, consolidate episodes, crystallize durable traits, and forget stale memories. It supports local stdio use, remote Streamable HTTP deployment, and optional semantic recall through Ollama.

Install it by adding `npx -y @lucasmella/mismem` as the MCP server command in the client's configuration. The database is created automatically on first use at `~/.mismem/mem.db` unless `MISMEM_DB` specifies another path.

It states that mismem works with clients that speak MCP and gives configurations for VS Code, Claude Code, and Claude Desktop.

Run Ollama locally and install the `nomic-embed-text` model with `ollama pull nomic-embed-text`. Recall then adds semantic search for memories; if Ollama is unavailable, mismem silently uses FTS5 search instead.

Run the supplied Docker image in Streamable HTTP mode with a persistent volume and port 3200 exposed. Set `MISMEM_AUTH_USER` and `MISMEM_AUTH_PASS` to enable Basic Auth, then follow the repository's deployment guidance for broader network exposure.

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 PreviewMismem AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/mismem?style=directory)](https://allmcps.com/mcp/mismem)
HTML Embed
<a href="https://allmcps.com/mcp/mismem"><img src="https://allmcps.com/api/badge/mismem?style=directory" alt="Mismem on AllMCPs" /></a>