Get the FREE Ultimate OpenClaw Setup Guide →

ledgermind

​LedgerMind — an autonomous living memory for AI agents. It self-heals, resolves conflicts, distills experience into rules, and evolves without human intervention. SQLite + Git + reasoning layer. Perfect for multi-agent systems and on-device deployment.

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio sl4m3-ledgermind python -m ledgermind \
  --env LEDGermind_ENV="Describe or placeholder for environment variables if needed"

How to use

LedgerMind is an autonomous knowledge lifecycle manager that blends a hybrid storage system (SQLite + Git) with a reasoning layer to maintain and evolve an agent's memory. It continuously monitors knowledge health, resolves conflicts, and distills experiences into actionable rules, all in the background. The MCP interface exposes a suite of tools (15 in total) that enable automation, project bootstrapping, memory lifecycle management, and advanced auditing via Git-based cryptographic trails. You can leverage these tools to initialize projects, inject hooks into clients, perform memory processing, and observe the ongoing background heartbeat that handles syncing and reflection tasks. Use the MCP server to interact with LedgerMind's capabilities through standardized endpoints, enabling multi-agent orchestration, versioned knowledge, and autonomous memory evolution across your AI agents.

How to install

Prerequisites:

  • Python 3.10 or higher
  • Git installed and available on your system
  • Internet access to install Python packages

Installation steps:

  1. Create and activate a Python virtual environment (optional but recommended):

    python3 -m venv venv source venv/bin/activate # on Windows use: venv\Scripts\activate

  2. Install LedgerMind from PyPI:

    pip install ledgermind

  3. Verify installation:

    ledgermind --help

  4. Run the MCP server (as a module):

    python -m ledgermind

Notes:

  • If you are using Termux or mobile environments, ensure any necessary build tools are installed and compatible with your Python environment.
  • The MCP server exposes multiple tools for memory lifecycle management; consult the Quick Start Guide for detailed usage of each tool.

Additional notes

Tips and common considerations:

  • LedgerMind runs a background heartbeat every 5 minutes to perform Git syncing, reflection, and decay tasks; ensure sufficient disk space for long-running operation.
  • The system uses a hybrid storage model (SQLite + Git); maintain regular backups of your repository to preserve the cryptographic audit trail.
  • Environment variables are optional but can be used to tailor behavior (e.g., paths, model selection, or client hook configurations). If not set, defaults are used.
  • When upgrading LedgerMind, review the release notes for changes to the 15 MCP tools and any required migration steps.
  • Ensure your agents and clients are compatible with the MCP interface and that there is network access if you plan to run multiple agents or remote clients.

Related MCP Servers

Sponsor this space

Reach thousands of developers