Memory-lean MCP Server

memory-lean is an MCP server that gives Claude Code, Claude Desktop, Cursor and any other MCP client a knowledge graph that persists between sessions. It is a drop-in replacement for the reference…

Local serverstdioMIT

What is the Memory-lean MCP Server?

memory-lean is an MCP project maintained in the zamansheikh/memory-lean repository. The maintainer describes its purpose as “memory-lean is an MCP server that gives Claude Code, Claude Desktop, Cursor and any other MCP client a knowledge graph that persists between sessions. It…”. Read the project documentation for the complete scope.

Installation

The documented npm package is memory-lean. The configuration below comes from the maintainer’s example; adapt its paths and account values to your environment.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-13.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
search_nodesRanked list of entity names with counts and up to two matching snippets each. Every word must match the name, type, an observation, or the type of a relation…
open_nodesThe full entities you name, as compact text, with every relation touching them. Unknown names come back with "did you mean" suggestions.
read_graphAn index: entity names grouped by type, with observation counts. Never the observations.
create_entitiesCreates entities; existing names are skipped.
create_relationsCreates relations between existing entities; duplicates are skipped.
add_observationsAdds facts to an entity, enforcing the length limit and the per-entity cap.
rename_entityRenames an entity, keeping its observations, relations and archive. Not in the reference server.
archived_observationsLists what was archived for an entity, optionally filtered, and can restore chosen observations. Not in the reference server.
delete_observationsRemoves observations by exact text.
delete_relationsRemoves specific relations.
delete_entitiesRemoves entities and every relation touching them.

How to install the Memory-lean MCP Server

{
  "mcpServers": {
    "memory": {
      "command": "npx",
      "args": [
        "-y",
        "memory-lean"
      ]
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.