mdmem
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mdmemcreate a memory file about Q3 goals and link it to the projects index"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
markdown-hierarchical-memory
markdown-hierarchical-memory-spec.md v1 の実装。
MCPサーバー (
src/mdmem/): ファイル読み書き、frontmatter管理、wikilinkグラフ、 キーワード+グラフ展開検索、楽観的並行制御(§16)、双方向リンク整合性チェック(§12)、 変更ログ(§10/§17) を提供する機械的実行層。意味的判断(凝集度・重要度など §9)は 実装していない。Claude Code subagent (.claude/agents/memory-manager.md): 仕様書§10のManager Agent。MCPツールを呼び出して意味的判断を行う側。
スコープ
検索は §15 のうちリンクグラフ+キーワード検索のみ(埋め込みベクトル検索は未実装。
src/mdmem/search.pyの_scoreを差し替えれば追加できる)。Manager Agentの判断ロジックはサーバー内部にLLM呼び出しを持たない。呼び出し元 (Claude Code)が判断し、判断結果をツール呼び出しのパラメータとして渡す想定。
Related MCP server: auxly-memory-cli
セットアップ
pip install -e .
python -m pytest tests/Claude Codeへの登録
.mcp.json.example を .mcp.json にコピーし、<ABSOLUTE_PATH_TO_THIS_REPO> をこのリポジトリの
絶対パスに書き換える(.mcp.json は個人のローカルパスを含むため .gitignore 対象):
cp .mcp.json.example .mcp.json
# .mcp.json を編集してパスを埋めるClaude Codeを再起動(またはMCP設定を再読込)するとmdmem サーバーが有効になり、
.claude/agents/memory-manager.md の memory-manager subagentから mcp__mdmem__* ツール群を呼び出せる。
claude mcp listで mdmem が認識されているか確認できる。
Cursorへの登録
MCP:
.cursor/mcp.json(Claude Codeの.mcp.jsonと同じMDMEM_ROOTを指す)Manager Agent:
.cursor/skills/memory-manager/SKILL.md
Cursorを再起動(または Settings → Tools & MCP で mdmem を再読込)すると、
同じ memory/ を Claude Code と共有して使える。
ディレクトリ
memory/
├── index.md # 純粋なレジストリ(§14)
├── projects/
├── concepts/
└── archive/
└── _manager_log.md # 変更ログ(§10/§17)memory/ の実体パスは環境変数 MDMEM_ROOT で変更できる(デフォルト: カレントディレクトリの memory/)。
主なMCPツール
ツール | 対応する仕様 |
| §14, §15, §11(access_count) |
| §3, §14 |
| §4 Step1, §16 |
| §12(双方向リンクを1操作として実行、自己チェック付き) |
| §9/§10 分割 |
| §5/§9/§13 要約してarchive |
| §13 忘却モデル(内容そのまま) |
| §13(提案のみ、実行はしない。§11) |
| §10/§17 |
すべての書き込み系ツールは expected_updated を受け取り、読み取り時の値と不一致なら
ConflictError を返す(§16)。
既知の制限
並行書き込みの狭いレース条件:
expected_updatedの楽観ロックは「読んだ後に検証してから書く」 までを1プロセス内でしか保証していない。CursorとClaude Codeが同じMDMEM_ROOTを共有する運用 (実際にこのリポジトリの開発中に両者が同時に書き込んでいる場面を確認済み)では、2プロセスが ほぼ同時に同じファイルを読んで両方チェックを通過し、片方の更新が消える理論上の余地がある。 致命的ではないが、単一プロセスからのみ書き込む運用であれば問題にならない。埋め込みベクトル検索は未実装(スコープの節を参照)。
idは^[A-Za-z0-9_-]+$のみ許可(ファイルパスに直接使われるため)。
ライセンス
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceEnables storing, searching, and discovering knowledge connections using associative memory, with semantic search, hierarchical organization, and cross-environment sync.Last updated1MIT
- Alicense-qualityAmaintenanceLocal-first, file-based memory layer for AI agents — one shared Markdown vault across Claude, Codex, Gemini, Cursor and any MCP client. Provides read/write memory tools with an audit trail, per-agent trust levels, and Git sync; no cloud and no lock-in.Last updated2MIT
- Alicense-qualityDmaintenanceProvides persistent long-term memory for AI assistants with tag-based retrieval, wiki-style linking, and source references, storing memories as markdown files with SQLite index.Last updatedMIT
- Flicense-qualityBmaintenanceA local-first, Markdown-native AI agent layered memory system that provides MCP tools for storing, recalling, exporting, and importing memories with types like working, persona, and fact.Last updated
Related MCP Connectors
Token-efficient MCP memory for Markdown vaults. Tiered search, GraphRAG, AI memories.
User-owned memory for AI agents, Copilot, Claude, IDEs, CLIs, and chat apps over remote MCP.
Persistent docs and memory for AI agents — read, write, organize & search a shared workspace.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/masaki-kato-119/markdown-hierarchical-memory'
If you have feedback or need assistance with the MCP directory API, please join our Discord server