Skip to main content
Glama

License Python MCP Storage

What is Persistent Memory MCP?

Persistent Memory MCP is an open-source Model Context Protocol server that gives development assistants durable, searchable project memory. It stores architecture, technical decisions, tasks, warnings, file relationships, checkpoints and session state in a private local database so another compatible client can continue the work without asking you to explain the project again.

The intended product is personal and local-first: one local installation, one private dashboard and isolated memory for the projects owned by that installation. Remote team workspaces, shared memberships and multi-user roles are intentionally outside the product scope.

Before: “Can you explain the repository again?”
After: “The authentication refactor is in progress, RLS is the active risk, and the next task is token rotation.”

Related MCP server: memory-mcp

Why developers use it

Capability

Result

Cross-client memory

Continue work across compatible development tools

Git-aware context

Remember repository, branch, commit and working-tree state

Decisions and warnings

Preserve architectural reasoning, risks and blockers

Tasks and checkpoints

Resume from the exact implementation state

File-level memory

Understand important modules and dependencies

Semantic and lexical search

Find relevant context instead of loading everything

Confirmed deletion

Preview exact records and require a signed confirmation before deletion

Private local dashboard

Inspect project memory without exposing it remotely

Quick start

1. Install

pipx install persistent-memory-mcp

For development installs:

git clone https://github.com/dannymaaz/memory-mcp.git
cd memory-mcp
python -m venv .venv
source .venv/bin/activate  # Windows: .venv\Scripts\Activate.ps1
pip install -e .

2. Configure interactively

memory-mcp init

The setup command creates a private configuration, initializes the local SQLite database and generates an MCP configuration block for supported clients. The default local database is ~/.memory-mcp/memory.db.

Supabase and PostgreSQL adapters remain available for advanced self-managed storage, but the product direction and dashboard are local and personal.

3. Diagnose the installation

memory-mcp doctor
memory-mcp status

4. Add it to your MCP client

{
  "mcpServers": {
    "persistent-memory-mcp": {
      "command": "memory-mcp",
      "env": {
        "MEMORY_STORAGE_BACKEND": "sqlite",
        "OWNER_ID": "your-stable-local-identifier",
        "MEMORY_CONFIRMATION_SECRET": "your-private-confirmation-secret"
      }
    }
  }
}

The command starts over stdio automatically when your MCP client launches it. You can also run it manually with memory-mcp serve.

Natural-language examples

Resume this project and tell me where we left off.
Save the architecture decision we just made.
Show active warnings before changing authentication.
Search project memory for the database migration decision.
Preview deletion of these completed task records.
Execute the unchanged deletion plan with its confirmation token.

How it works

MCP client A ─────┐
MCP client B ─────┼── Model Context Protocol ── Persistent Memory MCP ── Local SQLite
MCP client C ─────┘                                      │
                                                         ├─ decisions
                                                         ├─ tasks
                                                         ├─ warnings
                                                         ├─ sessions
                                                         ├─ file memory
                                                         └─ checkpoints

The server detects repository context, resolves or creates the current project, stores structured memories and returns an optimized resume context to compatible clients.

Main MCP tools

Tool

Purpose

resume_project

Return a concise continuation brief

capture_project_memory

Save decisions, tasks, warnings, files and state together

search_semantic_memory

Search by meaning with lexical fallback

load_unified_context

Load optimized project context

save_cross_interface_decision

Preserve technical decisions across local clients

update_task_status

Track work across sessions and clients

sync_session_state

Save the current working state

export_memory_bundle

Export memory as JSON or Markdown

plan_memory_deletion

Preview exact deletion candidates and issue a short-lived signed token

execute_memory_deletion

Execute only the unchanged, scoped and confirmed plan

Advanced tools remain available for checkpoints, timelines, retention, prompts, analytics, embeddings, code intelligence and file relationships.

Confirmed deletion safety model

Deletion is a two-phase local operation:

  1. plan_memory_deletion returns a dry-run preview, exact record IDs, counts, fingerprint, expiry and confirmation token.

  2. execute_memory_deletion revalidates owner/project scope and current records, rejects altered, expired or reused plans, and deletes only exact planned IDs.

Retention cleanup uses the same preview-and-confirm contract. No retention deletion runs automatically at startup. Audit events record operation metadata and counts without copying deleted content.

Privacy and security

  • The dashboard binds only to localhost and rejects remote interfaces.

  • The default database is a private SQLite file under the user's home directory.

  • Every memory operation is scoped by owner and project.

  • Sensitive values are redacted before persistence.

  • Destructive operations require a short-lived confirmation tied to an exact plan.

  • Keep local configuration and confirmation secrets private.

  • Create verified backups before upgrades, migrations or destructive maintenance.

Product scope

Persistent Memory MCP is not a collaborative SaaS. Workspace invitations, team memberships, owner/admin/member/reader roles, public remote dashboards, billing and organization administration are out of scope.

Roadmap

  • Persistent project, task, decision and warning memory

  • Git-aware project resolution

  • Cross-client session continuity foundation

  • Semantic search with lexical fallback

  • Import, export, timeline and retention foundations

  • Interactive init, doctor and status commands

  • Local SQLite starter mode

  • Localhost-only visual memory dashboard

  • Automatic nested secret redaction

  • Provider-based embedding generation and reindexing

  • Selective deletion and confirmed retention execution

  • Verified local backup and restore workflow

  • Dashboard pagination and operational summary cards

  • Complete automatic continuation checkpoints

  • Package publication, upgrades and MCP Registry release

Documentation

Public documentation covers installation, client configuration, architecture, data model, API reference, troubleshooting and English/Spanish guidance.

Visit: https://dannymaaz.github.io/memory-mcp/

Contributing

Contributions are welcome. Read CONTRIBUTING.md, open an issue, or submit a pull request.

License

MIT License. See LICENSE.

Author

Created and maintained by Danny Maaz.

Install Server
A
license - permissive license
C
quality
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    A
    quality
    B
    maintenance
    Persistent cloud memory for AI coding assistants. 28 MCP tools for semantic search, auto-learning, task tracking, correction patterns, knowledge graphs, and session replay across Claude Code, Cursor, Windsurf, Cline, and any MCP client. Encrypted at rest. Team shared memory with author attribution.
    Last updated
    35
    199
    7
    MIT
  • A
    license
    -
    quality
    C
    maintenance
    An MCP server that stores project memory in Supabase, allowing AI tools to persist context, notes, and decisions across sessions. Enables Claude Code, Codex, and similar assistants to maintain long-term project continuity through persistent memory storage.
    Last updated
    2
  • A
    license
    -
    quality
    B
    maintenance
    Enables AI coding agents to maintain persistent, cross-session memory of codebase architecture, naming conventions, and decisions through MCP tools. Eliminates repetitive project re-explanation by automatically injecting stored context into every session with local-first SQLite storage and optional team sharing capabilities.
    Last updated
    4
    MIT
  • A
    license
    B
    quality
    B
    maintenance
    Persistent memory MCP server for Claude Code, Cursor, and GitHub Copilot. Semantic search, Git sync, project-based, Persistent memory MCP server for Claude Code, Cursor, and GitHub Copilot. Semantic search, Git sync, project-based organization, and team collaboration via Model Context Protocol.
    Last updated
    67
    207
    2
    MIT

View all related MCP servers

Related MCP Connectors

  • User-owned memory for AI agents, Copilot, Claude, IDEs, CLIs, and chat apps over remote MCP.

  • Persistent memory and cross-session learning for AI coding assistants (hosted remote MCP).

  • Cross-AI personal memory. Save once in ChatGPT, recall in Claude, Mistral, Grok, or any MCP client.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dannymaaz/memory-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server