Markdown Memory Context MCP Server
Enables AI agents to maintain a structured Markdown or Obsidian memory vault with tools for reading, writing, searching, and organizing notes.
README
Markdown Memory Context MCP Server
Markdown Memory Context, or MMC, is a local MCP server that gives AI agents structured read and write tools for a folder-based Markdown or Obsidian memory context vault.
The vault is intentionally simple: a top-level Project Index.md, lightweight
category hubs, and focused child notes under category folders. Templates live
outside the vault in memory-templates/, so agents can read them without
cluttering the Obsidian graph.
Quickstart
From this repository:
cd markdown-memory
python -m venv .venv
source .venv/bin/activate
python -m pip install -e ".[dev]"
python -m pytest
Configure an MCP client to run the local executable:
{
"mcpServers": {
"mmc": {
"command": "mmc-mcp",
"args": [],
"env": {
"MARKDOWN_MEMORY_ROOT": ".markdown-memory",
"MARKDOWN_MEMORY_EMBEDDINGS_API_KEY": "..."
}
}
}
}
The older markdown-memory-mcp executable remains available for compatibility.
New configs should prefer mmc as the MCP server key and mmc-mcp as the
command.
You can also pass memory_root to every tool call. Tool arguments take
precedence over MARKDOWN_MEMORY_ROOT; if neither is set, the server uses
.markdown-memory in the current working directory.
Vault Layout
Run memory_init to create the base layout:
.markdown-memory/
Project Index.md
Architecture.md
Architecture/
Commands.md
Commands/
Current State.md
Current State/
Rules.md
Rules/
...
memory-templates/
Project Index Template.md
Category Hub Template.md
Memory Entry Template.md
Architecture Entry Template.md
Commands Entry Template.md
Rules Entry Template.md
Ignore Entry Template.md
Decision Entry Template.md
Risk Entry Template.md
Category hubs stay short and link to focused notes. Durable details belong in
focused notes such as Architecture/Data Flow.md or Rules/Safety And Secrets.md.
Tools
memory_init: create missing vault hubs, category folders, and templates.memory_index: list index, hubs, focused notes, tags, snippets, and presence flags.memory_brief: return a compact orientation payload for agents.memory_workflow: return the recommended read/write memory workflow.memory_context_pack: combine the brief, semantic/lexical matches, and selected reads.memory_search: search focused notes by query and optional category.memory_vector_status: report whether semantic search is usable, chunk counts, stale notes, model, dimensions, and DB path.memory_vector_rebuild: create or refresh the derived vector SQLite index.memory_vector_search: semantic search focused notes, with silent lexical fallback.memory_read: read one note by key or path.memory_upsert: create or replace a focused note.memory_append: append a bounded section to a focused note.memory_link: ensure a category hub links to a focused note.
Semantic Search
Markdown remains the source of truth. The vector index is derived local state at:
.markdown-memory/.markdown-memory-vector/index.sqlite3
Deleting the SQLite file is safe; rebuild it with memory_vector_rebuild.
Vector search uses OpenAI-compatible embeddings:
MARKDOWN_MEMORY_EMBEDDINGS_BASE_URL, defaulthttps://api.openai.com/v1MARKDOWN_MEMORY_EMBEDDINGS_API_KEYMARKDOWN_MEMORY_EMBEDDINGS_MODEL, defaulttext-embedding-3-smallMARKDOWN_MEMORY_EMBEDDINGS_TIMEOUT, default30
For compatibility, the server also accepts the corresponding
JARVIS_EMBEDDINGS_* variables when Markdown Memory-specific variables are not
set.
If embeddings or the database are unavailable, vector tools return non-fatal
metadata and memory_vector_search falls back to memory_search. Memory writes
still succeed. memory_upsert, memory_append, and memory_link try to refresh
the affected note and hub vectors automatically.
Using With Coding Agents
Use memory as working context, not as a substitute for repository evidence.
- Start with
memory_context_pack,memory_brief, ormemory_index. - Use
memory_vector_searchfor task terms and categories; lexical search is the fallback. - Use
memory_readfor the smallest relevant focused notes. - Inspect source evidence before decisions.
- Save durable findings with
memory_upsertormemory_append.
Prefer memory_append for decisions, risks, workflows, and time-based updates.
Safety
Markdown Memory refuses path traversal, writes outside the configured memory
root, secret-like filenames, and secret-like content such as env assignments or
private key blocks. It excludes .obsidian/ from index and search results.
Never store secrets, credentials, tokens, private environment values, or API keys in memory notes.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。