memory-lean MCP
A token-lean MCP memory server for AI coding agents that uses a knowledge graph to provide long-term memory. It acts as a drop-in replacement for the reference memory server, offering search capabilities that return ranked lists of names and matching lines, resulting in answers approximately 40 times smaller than the reference implementation. It includes a web UI for viewing and editing the graph, supports multiple agents, and operates with plain local files and zero dependencies.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
Checks and signals
Each line is separate evidence, not a trust score.
- Popularity 3 GitHub stars
What you can do with it
- Provide long-term memory for AI coding agents across sessions
- Search knowledge graph for project dependencies and rules
- View and edit memory graph via web UI
- Replace reference memory server with smaller token footprint
Source and maintenance
- Last repository push
- Latest release
- v1.5.0
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
memory-lean 1.5.0
{
"version": "1.5.0",
"transport": "stdio",
"identifier": "memory-lean",
"registryType": "npm",
"environmentVariables": [
{
"name": "MEMORY_FILE_PATH",
"format": "filepath",
"description": "Where the graph file lives (default ~/.claude/memory-graph/memory.jsonl)"
}
]
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Maintenance history
Public check and source-refresh events. Editorial and ownership records remain private.
- · repository · passed · metadata changed · updated
- · backfill · recorded · Pre-expansion baseline; unobserved rich metadata remains unknown
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"memory-lean-mcp": {
"command": "npx",
"args": [
"-y",
"memory-lean@1.5.0"
],
"env": {
"MEMORY_FILE_PATH": "<YOUR_MEMORY_FILE_PATH>"
}
}
}
}Cline
{
"mcpServers": {
"memory-lean-mcp": {
"command": "npx",
"args": [
"-y",
"memory-lean@1.5.0"
],
"env": {
"MEMORY_FILE_PATH": "<YOUR_MEMORY_FILE_PATH>"
}
}
}
}VS Code
{
"servers": {
"memory-lean-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"memory-lean@1.5.0"
],
"env": {
"MEMORY_FILE_PATH": "<YOUR_MEMORY_FILE_PATH>"
}
}
}
}Claude Desktop
{
"mcpServers": {
"memory-lean-mcp": {
"command": "npx",
"args": [
"-y",
"memory-lean@1.5.0"
],
"env": {
"MEMORY_FILE_PATH": "<YOUR_MEMORY_FILE_PATH>"
}
}
}
}Let your agent find its tools
Find servers like memory-lean MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.