
一个本地MCP内存服务器,由普通markdown + JSON文件支持,通过git同步。没有数据库。带有语义搜索的项目范围内存。
概览
一个本地MCP内存服务器,由普通markdown文件支持,通过git同步。无数据库。项目范围内存,具备混合语义、精确匹配和关系感知回忆。 关于高级系统地图,请参见 ARCHITECTURE.md。关于发布说明,请参见 CHANGELOG.md。 - 你的MCP客户端可以跨会话携带决策、修复和上下文,这样你无需重复解释同一项目。- 内存为纯markdown,带有YAML前言。它们可读、可微分、可合并,且易于备份。- 无需数据库或始终在线的服务。助记法使用文件、git和本地节点进程。- 项目范围回忆偏向正确的仓库上下文,同时保持更强的全局匹配可访问性。- 混合回忆不仅能找到概念匹配,还能找到确切名称、标识符、短语、错误代码和版本。- 共享的助记词/笔记随仓库传输,使项目知识不会被困在单一聊天记录中。
概述(AI 翻译)
一个本地MCP内存服务器,由普通markdown文件支持,通过git同步。无数据库。项目范围内存,具备混合语义、精确匹配和关系感知回忆。
关于高级系统地图,请参见 ARCHITECTURE.md。关于发布说明,请参见 CHANGELOG.md。
为什么要助记法
- 你的MCP客户端可以跨会话携带决策、修复和上下文,这样你就不必重复解释同一个项目。
- 内存为纯标记,带有 YAML 前置。它们可读、可微分、可合并,且易于备份。
- 无需数据库或始终在线服务。助记词使用文件、git 和本地节点进程。
- 项目范围回忆有利于合适的仓库上下文,同时保持更强的全局匹配可访问。
- 混合回忆不仅能找到概念匹配,还能找到确切名称、标识符、短语、错误代码和版本。
- 共享的
.mnemonic/笔记随仓库一起传播,因此项目知识不会被困在某人的聊天记录中。 - 文档源附件允许你将外部仓库作为只读知识源链接。他们的 markdown 文档通过回忆功能和你的记忆一起被索引和搜索。
- 嵌入保持本地且被忽略。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
mnemonic
A local MCP memory server backed by plain markdown files, synced via git. No database. Project-scoped memory with hybrid semantic, exact-match, and relationship-aware recall.
For the high-level system map, see ARCHITECTURE.md. For release notes, see CHANGELOG.md.
Why mnemonic
- Your MCP client can carry decisions, fixes, and context across sessions, so you do not have to re-explain the same project.
- Memories are plain markdown with YAML frontmatter. They are readable, diffable, mergeable, and easy to back up.
- No database or always-on service is required. mnemonic uses files, git, and a local Node process.
- Project-scoped recall favors the right repo context while keeping stronger global matches accessible.
- Hybrid recall finds conceptual matches as well as exact names, identifiers, phrases, error codes, and versions.
- Shared
.mnemonic/notes travel with the repository, so project knowledge is not trapped in one person’s chat history. - Document-source attachments let you link external repos as read-only knowledge sources. Their markdown docs are indexed and searchable through recall alongside your memories.
- Embeddings stay local and gitignored. You get semantic retrieval without committing generated vector data.
- Every
remember,update, andconsolidatecreates a semantic git commit. Your decision log and plans travel with the code in the same history. - If you stop using mnemonic, your notes remain plain markdown with YAML frontmatter. The knowledge you gather stays independent and remains yours.
Stability
The storage format is stable with migration support for any future changes. Since 1.0, mnemonic follows semantic versioning: breaking changes to the note format, vault layout, tool surface or CLI bump the major version. Keep an eye on the changelog; list_migrations shows pending work per vault after each update.
Scale: mnemonic favors simplicity and portability over large-scale knowledge bases.
- Hundreds to low thousands of notes: a good fit.
- Several thousand: often fine, depending on note size, machine speed, and embedding throughput.
- Within a session, notes and embeddings are cached after first access. Repeated
recall,get, andproject_memory_summarycalls skip storage reads regardless of vault size. - Very large collections: expect longer reindexing, higher recall latency, and more git churn.
- Many concurrent writers or massive scale: consider a dedicated database and indexing layer instead.
Prerequisites
By default, mnemonic uses Ollama locally. Start Ollama and pull an embedding model:
ollama pull nomic-embed-text-v2-moe
安装
npx @danielmarbach/mnemonic-mcp配置
{
"mcpServers": {
"mnemonic": {
"command": "npx",
"args": ["@danielmarbach/mnemonic-mcp"],
"env": {
"VAULT_PATH": "/Users/you/mnemonic-vault"
}
}
}
}