Domain Memory

•
4
•

Provides a local Model Context Protocol server to capture and serve critical business-domain knowledge to AI agents like Claude, Cursor, and Copilot.

Domain Memory is a local-first Model Context Protocol (MCP) server designed to accumulate and expose the critical 'why' behind your code – encompassing business domain knowledge, architectural decisions, integrations, and nuanced flows. It aims to bridge the gap between code (the 'what') and its underlying intent, making this invaluable context available to any MCP-compatible AI agent. By storing knowledge as human-readable Markdown files on disk and providing robust search, drift detection, and confidence decay mechanisms, it ensures that essential project understanding is preserved, searchable, and kept up-to-date for both new and experienced developers.

Key Features

01Employs a 'Triple Matcher' combining semantic embedding, BM25 keyword, and path/symbol matching for intelligent knowledge retrieval.
02Implements lazy confidence decay for knowledge entries, prompting developers to verify stale information.
030 GitHub stars
04Captures business-domain knowledge (the 'why') in source-controlled Markdown files, with SQLite as a derived index.
05Integrates as a local MCP server, compatible with AI agents like Claude Code, Cursor, Copilot, Gemini, and OpenCode.
06Supports per-branch staging of findings, allowing agents to append knowledge that survives session compaction.

Use Cases

01Onboarding new developers by providing AI agents with project-specific business domain knowledge.
02Enriching existing domain knowledge by passively capturing findings and decisions made during pull request reviews.
03Proactively documenting and deepening understanding of specific features or aspects through guided prompts with an AI agent.