# Lians Agent Memory [Health: Active]

**Category:** 🧠 Knowledge & Memory  
**Repository:** https://github.com/Lians-ai/Lians  
**GitHub Stars:** 17  
**Views:** 1  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/lians-agent-memory

## Description
Bitemporal memory for AI agents with point-in-time recall and tamper-evident audit history.

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `uvx` (confidence: high):

```json
"mcpServers": {
  "lians-agent-memory": {
    "command": "uvx",
    "args": ["--from","lians-sdk[mcp]","lians-mcp"],
    "env": {
      "LIANS_MCP_ENABLED_TOOLS": ""
    }
  }
}
```

**Requires environment variables:** `LIANS_MCP_ENABLED_TOOLS` — the values above are empty placeholders; fill in real credentials before running (see the repository for what each one is for).

## Documentation

## What Lians Agent Memory MCP server does

Lians Agent Memory MCP server gives coding agents a local memory store that can survive separate chats and sessions. It is intended for retaining safe project facts, recovering context after interrupted work, and keeping corrections or deletions under the developer's control. The memory layer does not replace the model, Git, CI, repository instructions, or human review.

The repository also describes Lians Guard, a broader workflow for current task state and completion readiness. Guard can distinguish measured evidence from agent claims and produce states such as recovered, stale, blocked, or ready for human review. Those Guard capabilities are separate from the available local MCP memory path; several are marked developer preview, beta, or in development.

## How it works

The MCP server runs locally and uses a SQLite database at `~/.lians/mcp.db` by default. An MCP-compatible client connects the agent to that store, allowing memory operations to be requested from the agent loop. The README presents this as a recovery path that can work across supported Codex, Claude Code, and Cursor setups.

Lians also maintains state related to task continuity. Its documented trust model treats measured local evidence, matching CI evidence, and interactive human confirmation differently from agent-attested or inferred activity. Agent-reported work can remain visible as context, but it cannot by itself open the review gate. This distinction matters if you are evaluating Lians for completion checks rather than simple memory storage.

A fresh coding agent can receive a bounded handoff derived from current stored state. That handoff may identify reported work that still needs verification, open tasks, decisions, changed paths, and the next action instead of replaying a full conversation.

## Setup and configuration

The Lians Agent Memory MCP server can be added to Codex with `uvx` after installing `uv`:

```bash
codex mcp add lians --env LIANS_MCP_ENABLED_TOOLS=remember,recall,list_memories,correct_memory,forget_memory -- uvx --from "lians-sdk[mcp]" lians-mcp
```

Restart the client after adding the server, then save a project fact and retrieve it from a new chat. The example explicitly limits the enabled tool set to remembering, recalling, listing, correcting, and forgetting memories. The repository also documents setup paths for Claude Code, Cursor, and other MCP clients, including a one-click Cursor option and a minimal generic MCP configuration.

The free local recovery path does not require a Lians account, an AI password, or a provider API key. Local memory is available through MCP and Python. The README identifies the full Guard workflow as a developer preview, so teams should distinguish the stable local-memory use case from the broader preview features.

## Tools and capabilities

The documented MCP tool names are:

- `remember` — save a memory.
- `recall` — retrieve relevant stored memory.
- `list_memories` — inspect stored memories.
- `correct_memory` — amend an existing memory.
- `forget_memory` — delete a memory.

The project describes inspection, correction, and confirmed permanent deletion as available recovery features. It also documents bounded context and signed selection receipts, while automatic stale-evidence invalidation remains in development. These additional Guard and continuity capabilities should not be assumed to be part of the five memory tools above.

Lians is a fit when local, cross-session project context is more useful than replaying transcripts or manually maintaining a handoff. It is less suitable if you need a shared team queue or a production-ready, fully automatic stale-evidence workflow, since those areas are listed as planned or still under development.

_Full upstream README: https://allmcps.com/mcp/lians-agent-memory/readme_

