Skip to main content
Glama

Mnemonic - AI Memory MCP Server

Persistent memory management for Claude and other AI assistants. Give your AI a brain that remembers.

Born from the Claude Memory Architecture research project.

Quick Install

# Using uvx (recommended)
uvx mnemonic-memory

# Or pip
pip install mnemonic-memory

Related MCP server: SAE4U Memory

Claude Code Setup

Add to your Claude Code MCP config (~/.claude.json or project .claude/settings.json):

{
  "mcpServers": {
    "mnemonic": {
      "command": "uvx",
      "args": ["mnemonic-memory"]
    }
  }
}

Or with pip-installed version:

{
  "mcpServers": {
    "mnemonic": {
      "command": "mnemonic"
    }
  }
}

Features

Free Tier (Available Now)

Tool

Description

mnemonic_create

Create a new memory with tags and triggers

mnemonic_get

Retrieve a memory by ID

mnemonic_update

Update an existing memory

mnemonic_delete

Permanently delete a memory

mnemonic_search

Full-text search with tag filtering

mnemonic_list

List all memories with sorting

mnemonic_pin

Pin important memories

mnemonic_export

Export all memories to JSON

mnemonic_import

Import from a previous export

mnemonic_stats

View memory statistics

Premium Tier (Coming Soon) - $29 one-time or $5/mo

  • Semantic Search: Find memories by meaning, not just keywords

  • Auto-Decay: Memories fade based on access patterns

  • Consolidation: Automatically merge similar memories

  • Maintenance: Clean up stale data

Usage Examples

Create a memory

mnemonic_create({
  "title": "Bash's communication preferences",
  "content": "Direct and concise. Lead with conclusions (Minto Pyramid). No fluff.",
  "tags": ["preferences", "communication"],
  "triggers": ["how should I respond to bash"]
})

Search memories

# Full-text search
mnemonic_search({"query": "communication preferences"})

# Filter by tags
mnemonic_search({"tags": ["preferences"]})

# Combined
mnemonic_search({"query": "direct", "tags": ["communication"]})

Pin important memories

mnemonic_pin({"id": "abc-123", "pinned": true})

Data Storage

Memories are stored in ~/.mnemonic/memories.db (SQLite).

Override with MNEMONIC_DATA_DIR environment variable:

export MNEMONIC_DATA_DIR="/custom/path"

Schema

memories
├── id (TEXT, UUID)
├── type (TEXT, default 'memory')
├── title (TEXT)
├── content (TEXT)
├── weight (REAL, 0.1-1.0)
├── pinned (BOOLEAN)
├── emotional_flag (BOOLEAN)
├── created_at (TEXT, ISO timestamp)
├── updated_at (TEXT)
├── last_accessed_at (TEXT)
├── access_count (INTEGER)
├── status (TEXT: active, archived)
└── metadata (JSON)

tags
├── id (INTEGER)
└── name (TEXT, unique)

memory_tags (many-to-many)

triggers
├── id (INTEGER)
├── memory_id (TEXT)
└── phrase (TEXT)

Architecture

This project implements the Claude Memory Architecture research:

  • Weighted memories: Not all memories are equal (0.1-1.0 weight)

  • Memory decay: Unused things fade (premium feature)

  • Depth on demand: Load summaries, expand when needed

  • Trigger-based recall: Phrases that surface relevant memories

Development

# Clone
git clone https://github.com/bashoh/mnemonic-memory
cd mnemonic-memory

# Install with dev dependencies
pip install -e ".[dev]"

# Run locally
python -m mnemonic

License

MIT

Author

Built by Bash @ Wishly Group


"Current AI assistants have Alzheimer's. Let's fix that."

Available Tools

10 tools
mnemonic_createA

Create a new memory.

Use this to store important information that should persist across sessions. Memories can be tagged for organization and have trigger phrases that surface them when relevant topics come up.

Example: - Title: "Bash's communication style" - Content: "Direct, concise, no fluff. Lead with conclusions." - Tags: ["preferences", "user-profile"] - Triggers: ["how does bash like responses"]

Inputs: params (required). Returns: result

mnemonic_deleteA

Permanently delete a memory.

This cannot be undone. Consider setting status to 'archived' instead if you might need the memory later.

Inputs: params (required). Returns: result

mnemonic_exportA

Export all active memories to JSON.

Returns a complete export that can be imported later or backed up. Useful for:

  • Backing up memories

  • Transferring to another system

  • Debugging

Inputs: no named parameters. Returns: result

mnemonic_getA

Get a single memory by its ID.

Returns the full memory including content, tags, triggers, and metadata. Also records that the memory was accessed (updates access count and timestamp).

Inputs: params (required). Returns: result

mnemonic_importA

Import memories from a previous export.

The data must be in the export format with a 'memories' array.

Options:

  • overwrite: If true, updates existing memories with matching IDs If false, skips memories that already exist

Returns statistics about the import operation.

Inputs: params (required). Returns: result

mnemonic_listA

List all memories with optional filtering and sorting.

Use this for browsing memories rather than searching. Returns paginated results with metadata.

Inputs: params (required). Returns: result

mnemonic_pinA

Pin or unpin a memory.

Pinned memories:

  • Won't decay in weight over time (premium feature)

  • Are prioritized in search results

  • Useful for critical information like user preferences

Inputs: params (required). Returns: result

mnemonic_statsA

Get memory statistics.

Returns:

  • Total memory count by status

  • Weight distribution

  • Most used tags

  • Pinned/emotional counts

Useful for understanding your memory landscape.

Inputs: no named parameters. Returns: result

mnemonic_updateA

Update an existing memory.

Only specified fields will be updated. Tags and triggers are replaced entirely if provided (not merged).

Example: - id: "abc-123" - weight: 0.95 # Increase importance - tags: ["high-priority"] # Replace existing tags

Inputs: params (required). Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.5/5.0

    Scored across 10 tools

    Disambiguation5/5

    Each tool targets a distinct operation: create, get, update, delete, search, list, pin, export, import, stats. Search and list are differentiated by intent (query-based vs. browsing), and all other actions are unambiguous.

    Naming Consistency5/5

    All tools follow a consistent 'mnemonic_<verb>' pattern (e.g., mnemonic_create, mnemonic_get, mnemonic_update). The verb is clear and the naming is uniform.

    Tool Count5/5

    10 tools is well-scoped for a memory management server. It covers all core CRUD operations plus search, organization (pin), data portability (export/import), and analytics (stats) without bloat.

    Completeness5/5

    The tool set provides complete lifecycle coverage for memories: create, read, update, delete, search, list, plus additional features like pinning, export/import, and statistics. No significant gaps are apparent.

    Maintenance

    ActivityNo data
    ResponsivenessSyncing

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides long-term memory capabilities for Claude through persistent storage and full-text search of context across conversations. Enables storing, searching, and managing memories organized by categories like facts, preferences, projects, and goals.
      7 npm
      1
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Provides persistent memory for Claude with hierarchical categorization, cross-corpus recall, session journals, and customizable persona, enabling memory continuity across sessions.
      7
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Provides persistent memory for AI assistants like Claude, enabling them to remember user identity, projects, and conversations across sessions and platforms via natural language commands.
      29
      697 npm
      2
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Persistent memory with semantic search for Claude and MCP-compatible clients, storing context that survives conversations and can be retrieved intelligently.
      1
      MIT