Lodis
Indexes Google Drive documents as external sources so their content can be searched and retrieved alongside Lodis memories.
Indexes Notion documents as external sources so their content can be searched and retrieved alongside Lodis memories.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Lodis
Universal, portable memory layer for AI agents.
Lodis gives your AI tools a shared memory — searchable, correctable, and under your control. Install once, connect to Claude Code, Cursor, Windsurf, or any MCP-compatible client.
Quick Start
Add to your Claude Code config (~/.claude.json):
{
"mcpServers": {
"lodis": {
"command": "npx",
"args": ["-y", "@sunriselabs/lodis"]
}
}
}That's it. Your AI now has persistent memory.
Migrating from
engrams? This project was published asengramson npm prior to v0.6.0. The package is now@sunriselabs/lodis— same code, same data directory (~/.lodis/), same MCP tools. To migrate, swapengramsfor@sunriselabs/lodisin your MCP config ("args": ["-y", "@sunriselabs/lodis"]) and reinstall. The oldengramspackage on npm is frozen at v0.5.1 and will not receive further updates.
Related MCP server: Agent Memory
Claude Code Plugin
Prefer a one-step install that brings the MCP server and the memory skills together? Lodis ships as a Claude Code plugin:
/plugin marketplace add Sunrise-Labs-Dot-AI/lodis
/plugin install lodis@lodis-officialInstalling the plugin registers the lodis MCP server (no manual config edit) and adds four skills that teach the agent to use memory well:
Skill | What it does |
| Drive |
| Write discipline — durable fact vs. progress snippet, dedup resolution, entity typing, connections |
| First-run setup: configure the agent to prefer Lodis, scan tools, interview, seed memories |
| End-of-session distillation into durable memory before context is lost |
The plugin manifest lives in .claude-plugin/; the skills are in skills/.
Using Codex, Cursor, Cline, or another MCP client?
The plugin is Claude-Code-only, but the MCP server and all 40 tools work everywhere. To give those agents the same memory know-how the skills provide, connect the server (e.g. Codex: codex mcp add lodis -- npx -y @sunriselabs/lodis) and paste the Lodis memory policy into your client's instruction file (AGENTS.md, .cursor/rules, Cline custom instructions, etc.).
Getting Started
After installing, tell your AI assistant:
"Help me set up Lodis"
The assistant will call memory_onboard and:
Scan your connected tools (calendar, email, GitHub) to extract people, projects, and context
Interview you with targeted questions based on what it found
Seed 30-50 memories with entity types and connections
Review your memories at localhost:3838. Confirm what's right, correct what's wrong.
Importing Existing Memories
If you have memories in other tools, your AI can import them:
Claude Code auto-memory: "Import my Claude memories into Lodis"
ChatGPT memory export: "Import this ChatGPT memory export into Lodis"
Cursor rules: "Import my .cursorrules as Lodis preferences"
The memory_import tool handles parsing and deduplication. Where semantic judgment is needed, the calling agent supplies entity fields or follows up with memory_classify / memory_update.
What It Does
Remembers across tools. Teach Claude something, Cursor knows it too.
Searches semantically. Hybrid search (full-text + vector embeddings) finds relevant memories even with different wording.
Knows what it knows. Confidence scoring, source attribution, and entity classification on every memory.
Lets you correct it. Confirm, correct, split, or remove memories through the dashboard or MCP tools.
Deduplicates on write. Similar memories are detected and surfaced to the agent for resolution.
Builds a knowledge graph. Memories connect to each other with typed relationships. 14 entity types (people, organizations, projects, preferences, snippets, and more) can be supplied by agents and linked by deterministic helpers or agent-reviewed connection proposals.
Manages memory permanence. Four tiers — canonical, active, ephemeral (TTL), and archived — control confidence decay and search ranking.
Packs context efficiently. Token-budget-aware retrieval via
memory_contextdelivers the right amount of context for any LLM window.Generates entity profiles. On-demand summaries of known people, projects, and organizations via
memory_briefing.Indexes external documents. Pull in context from Google Drive, Notion, or local files for unified search.
Phase 3 adds temporal supersession for facts: memories can carry valid_from, valid_to, and superseded_by, and memory_write can resolve a contradiction with resolution: "supersede" deterministically. Current retrieval hides superseded facts by default, while includeSuperseded: true preserves the audit trail without putting an LLM on the write path.
Phase 4 partitions noisy progress data out of everyday retrieval. memory_search and memory_context accept scope: "default" | "all"; default scope excludes snippets and rows in archived domains unless you explicitly filter for that entity type or domain. memory_write_snippet also accepts connections[], so progress events can link back to durable people, organizations, and projects instead of becoming graph-isolated noise.
Dashboard
Start the dashboard to browse, search, and manage memories:
cd packages/dashboard && pnpm devOpens at localhost:3838.
Features:
Memory browser with filtering by domain, entity type, confidence, and usage
Memory detail view with provenance, connections, and event timeline
Inline editing — click to edit any memory
Correction, splitting, and classification workflows that let the calling agent apply semantic judgment while Lodis stores the audited result
Knowledge graph visualization
Cleanup page for deduplication and maintenance
Archive page for browsing archived memories with restore actions
Entity profile pages with cached summaries and evidence memories
Settings page with database stats, export, and API token management
MCP Tools
Lodis provides 40 MCP tools:
Tool | Description |
| Hybrid semantic + keyword search with filters |
| Fetch one or many memories by ID (up to 50, deduplicated) |
| Resolve a partial ID prefix or content substring to candidate summary rows |
| Token-budget-aware context retrieval |
| Close the feedback loop on a prior |
| Cached entity profile summaries, or source memories for the calling agent to summarize |
| Store a memory (with dedup detection and permanence tiers) |
| Upload many memories at once for imports from canonical external sources |
| Modify content, detail, or metadata |
| Mark a memory as verified (confidence → 0.99) |
| Replace content with corrected or user-asserted information |
| Degrade confidence |
| Soft-delete |
| Soft-delete many memories at once, scoped by domain / entityName / ids[]. Defaults to dryRun. |
| Pin as canonical (decay-immune, high confidence) |
| Archive for reference (deprioritize, freeze confidence) |
| Link memories with typed relationships |
| Commit multiple relationship edges in one call |
| Server-side candidate selection for the agent connection loop |
| Traverse the relationship graph |
| Break compound memories into atomic parts |
| List untyped memories so the calling agent can classify them |
| Discover known entities |
| Browse by domain, type, or confidence |
| List all domains with counts and registered/archived status |
| Per-agent access control |
| Detect and redact PII |
| Write a validated progress event |
| Time-ranged snippet query by domain or goal |
| Roll up progress by domain, type, and goal |
| Register a life-domain slug for snippet writes |
| Archive a domain so snippet writes are rejected until unarchived |
| Guided onboarding: scan tools, interview, seed memories |
| Agent-driven cleanup and gap-fill |
| Batch import from Claude, ChatGPT, Cursor, gitconfig, or plaintext |
| Export memories as portable JSON |
| Index external docs (Drive, Notion, filesystem) |
| Check staleness of indexed documents |
| Legacy migration helper for existing deployments |
| Interactive chapter-by-chapter tutorial for how Lodis works |
Architecture
Storage: SQLite/libSQL via
@libsql/client, local at~/.lodis/lodis.dbSearch: FTS5 + sqlite-vec + Reciprocal Rank Fusion
Embeddings: all-MiniLM-L6-v2 via Transformers.js (local, no API calls)
Semantic interpretation: caller-side agent reasoning; Lodis itself stays LLM-free on read/write paths
Dashboard: Next.js 15, Tailwind v4
Transport: MCP stdio protocol
Configuration
Client configs
Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"lodis": {
"command": "npx",
"args": ["-y", "@sunriselabs/lodis"]
}
}
}Cursor (.cursor/mcp.json):
{
"mcpServers": {
"lodis": {
"command": "npx",
"args": ["-y", "@sunriselabs/lodis"]
}
}
}Windsurf (~/.windsurf/mcp.json):
{
"mcpServers": {
"lodis": {
"command": "npx",
"args": ["-y", "@sunriselabs/lodis"]
}
}
}Semantic Reasoning
Lodis does not call an LLM from its core read/write paths. It exposes structured tools and safe candidate sets; your AI client performs semantic tasks like classification, connection review, correction wording, and briefing synthesis, then writes the result back to Lodis. Core features (search, store, connect, export) work without configuring any model provider inside Lodis.
Data
All data lives locally at ~/.lodis/:
lodis.db— SQLite databasemodels/— Cached embedding model (~22MB, downloaded on first search)
No accounts or API keys required for core functionality.
Development
pnpm install
pnpm build
pnpm test
# Run MCP server
cd packages/mcp-server && node dist/cli.js
# Run dashboard
cd packages/dashboard && pnpm devLicense
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Persistent, inspectable memory for AI agents with lineage, correction, and a hosted MCP endpoint.
Persistent memory, knowledge graph, task management and more for AI agents via MCP.
Hosted memory for AI agents over MCP. One memory shared by all your agents.
Persistent memory for AI agents across Claude, ChatGPT and any MCP client.
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to store and semantically retrieve durable memories across sessions via MCP or REST, with tools for remembering, recalling, asking, updating, and forgetting memories.17 npmMIT
- AlicenseNot gradedqualityBmaintenanceProvides a self-hosted shared memory service that lets AI agents capture and recall durable facts, decisions, and context across multiple tools and MCP-capable clients.3MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to store, search, and link typed knowledge entities such as memories, people, projects, tasks, and documents over a Streamable HTTP MCP endpoint. Combines hybrid BM25 and vector search with a knowledge graph, and separates short-lived session context from durable memory that future agents can trust.11AGPL 3.0
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to store and recall durable facts, decisions, and lessons over MCP using hybrid semantic and keyword search, typed memories, graph relations, sessions, and time-travel queries. Runs locally with no server process or API key, persisting everything to files that both agents and a CLI can share.18 npmMIT