Mimir's Vault
Mímir's Vault is an MCP server that provides a structured, interlinked memory graph (in .context/) to help AI agents navigate codebases efficiently. With it, you can:
Initialize a project's memory graph with starter
overview.mdanddecisions.md.Fetch the root overview node to understand the project scope and file structure.
Navigate to specific module nodes using Obsidian-style wikilinks (e.g.,
[[modules/auth]]).Search all nodes by keywords or topics to quickly find information.
Create new module/submodule notes that are automatically linked into the parent overview.
Update node content surgically by appending or replacing text under specific headings.
Log architectural decisions as structured ADRs in
decisions.md.Reduce token waste by guiding agents to only relevant source files mapped in the graph.
Visualize the interconnected memory graph using Obsidian or VS Code Foam.
Provides an Obsidian-compatible memory graph and context management system, allowing AI agents to navigate project architecture, module relationships, and target file paths via wikilinked markdown notes.
Click on "Deploy 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., "@Mimir's Vault Navigate the memory graph to find the dependencies of the auth module"
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.
Key Pillars • System Architecture • Installation • MCP Client Setup • Tool Reference • Agent Workflow Guide
The Problem: Wandering AI Coding Agents
When AI coding agents (Claude Code, Cursor, Antigravity) work on complex software repositories, they frequently suffer from Context Inflation & Wandering:
They blindly grep directories, re-scan full codebases, and load 30+ unrelated files into memory.
They waste thousands of LLM tokens, increase execution latency, and lose track of core architectural rules.
Related MCP server: vault-master-mcp
The Solution: Mímir's Vault Memory Graph
Mímir's Vault (Mimirs_Vault) is a high-performance Model Context Protocol (MCP) server built in Python (FastMCP).
It maintains a human-readable, interlinked Obsidian-Wikilink memory graph inside ./.context/ for any software repository.
AI agents follow the Memory-First Scanning Rule:
Inspect
.context/overview.mdviaget_root_node.Follow Obsidian wikilinks (
[[modules/auth]]).Inspect only the targeted source code files mapped in that module note.
Edit zero unnecessary files.
Key Pillars
Rune | Pillar | Rationale |
ᛗ | Memory-First Protocol | Mandates AI agents to consult |
ᛟ | Obsidian-Wikilink Graph | Interlinked notes ( |
⚡ | Zero Token Waste | Reduces context consumption by up to 80%, eliminating agent codebase wandering. |
⚔️ | Surgical Node Updates | Tools to append, update, and log Architectural Decision Records (ADRs) without clobbering existing notes. |
ᛚ | Human & Agent Shared Memory | Clean Markdown files ( |
System Architecture
<your-project-root>/
└── .context/ <-- Memory Graph Root (Ignored in .gitignore)
├── overview.md <-- ROOT NODE (Scope, File Structure Map, [[modules/*]] index)
├── decisions.md <-- Architectural Decision Records (ADRs)
└── modules/ <-- LINKED MODULE NODES
├── auth.md <-- Module Note (Scope, Mapped Source Files)
├── database.md <-- Module Note
└── ui/ <-- Submodule Directory
└── components.md <-- Submodule Note ([[modules/ui/components]])Installation
Prerequisites
Python 3.10+
1. Clone the Repository & Initialize Environment
# Clone repository
git clone https://github.com/GopikChenth/Mimir-s_Vault.git
cd "Mimir-s_Vault"
# Create virtual environment & install dependencies
python3 -m venv .venv
.venv/bin/pip install "fastmcp>=3.4.0" "mcp>=1.2.0" "pydantic>=2.0.0"2. Verify Installation & Test Graph Engine
.venv/bin/python test_graph.pyExpected Result:
ALL TESTS PASSED SUCCESSFULLY!
MCP Client Setup
Add Mimirs_Vault to your preferred AI Client configuration:
Google Antigravity IDE (agy.json / Settings) or Claude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"Mimirs_Vault": {
"command": "<path-to-repo>/.venv/bin/python",
"args": [
"<path-to-repo>/main.py"
]
}
}
}Note: Replace
<path-to-repo>with the absolute path where you clonedMimir-s_Vault(e.g./home/user/projects/Mimir-s_VaultorC:/Projects/Mimir-s_Vault).
Cursor IDE
Open Cursor Settings → Features → MCP Servers.
Click + Add New MCP Server.
Name:
Mimirs_VaultType:
commandCommand:
<path-to-repo>/.venv/bin/python "<path-to-repo>/main.py"
MCP Tool Reference
Mimirs_Vault exposes 7 core tools for AI agent navigation:
Tool | Signature | Purpose |
|
| Fetches |
|
| Traverses a wikilink node (e.g. |
|
| Performs keyword and topic search across all |
|
| Bootstraps |
|
| Creates a module note and registers |
|
| Surgically appends or replaces content under a specific section heading. |
|
| Appends an Architectural Decision Record (ADR) in |
System Prompts & Resources
MCP Prompts
memory_first_workflow: Instructs AI agents: "Consultget_root_nodefirst. Read ONLY the target source files mapped in module wikilinks."bootstrap_project_context: Guides AI to auto-scan an un-documented repository and build.context/notes.
MCP Resources
context://root— Direct read of.context/overview.md.context://decisions— Direct read of.context/decisions.md.
Agent Workflow Guide
1. Bootstrapping a New Repository
In any project workspace, prompt your AI agent:
"Run the
bootstrap_project_contextprompt to initialize the memory graph for this repository."
The AI will call init_context_graph and create_module_node to build your project's .context/ tree.
2. Daily Task Execution
When asking your AI agent to implement a feature:
"Implement user authentication with JWT. Check the memory graph first."
The AI will:
Call
get_root_nodeto inspect.context/overview.md.Follow
[[modules/auth]]to extract mapped file paths (src/auth/service.py).Inspect & edit only
src/auth/service.py(zero token waste).
3. Logging Architecture Decisions
"Log an architectural decision that we switched to RS256 JWT signing."
The AI calls log_decision, appending ADR-002 to .context/decisions.md.
Visualizing Your Memory Graph in 3D
Because all nodes use standard Obsidian Wikilink syntax ([[modules/auth]]), open your repository's .context/ directory in:
VS Code Foam Extension
Enjoy an interactive, 3D visual graph of your codebase's architectural memory!
ᛗ Built with Wisdom for AI-First Engineering ᛗ
Crafted with Python FastMCP • Report Issue • Submit Request
Available Tools
7 toolscreate_module_nodeA
Create a new module or submodule markdown note and automatically register its Wikilink [[modules/...]] in the parent overview node.
Inputs: scope (required), module_name (required), parent_node, source_files, +1 more. Returns: result
get_root_nodeA
Fetch the main root node (.context/overview.md) of the project memory graph. ALWAYS call this tool FIRST before scanning raw codebase files.
Inputs: workspace_path. Returns: result
init_context_graphB
Initialize a fresh human-readable .context/ memory graph in the workspace with overview.md, decisions.md, and module templates.
Inputs: scope (required), description (required), project_name (required), workspace_path. Returns: result
log_decisionA
Record an Architectural Decision Record (ADR) in .context/decisions.md with title, context, decision, and consequences.
Inputs: title (required), context (required), decision (required), consequences (required), +1 more. Returns: result
search_nodesB
Search for keywords or topics across all Obsidian-wikilink nodes in the project memory graph.
Inputs: query (required), workspace_path. Returns: result
update_nodeB
Surgically update or append content under a specific section heading in a node markdown file.
Inputs: content (required), node_path (required), mode, workspace_path, +1 more. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool has a clearly distinct purpose: initialization, navigation, search, module creation, updating, and decision logging. There is no overlap in their responsibilities.
All tools follow a consistent verb_noun pattern in snake_case (e.g., get_root_node, create_module_node, log_decision). The naming convention is uniform and predictable.
With 7 tools, the set is well-scoped for managing a project memory graph. Each tool fulfills a specific need without unnecessary bloat or redundancy.
The toolset covers initialization, reading, creating, and updating nodes, plus decision logging. It lacks a delete or rename operation, which are minor gaps for a full lifecycle but not critical for the primary use case.
Maintenance
Related MCP Connectors
Token-efficient MCP memory for Markdown vaults. Tiered search, GraphRAG, AI memories.
AI memory governance & hallucination-blocking MCP server with verifiable knowledge cells.
Persistent memory, knowledge graph, task management and more for AI agents via MCP.
An MCP server that gives your AI access to the source code and docs of all public github repos
Related MCP Servers
- AlicenseAqualityCmaintenanceLocal-first MCP server that gives any AI coding agent per-project memory, workflow intelligence, and always-on, lossless token & context optimization.378 npm6MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that treats Obsidian vaults as knowledge graphs, enabling AI agents to traverse wikilinks, assemble token-budgeted context, and search with backlink awareness.3 npm1MIT
- AlicenseNot gradedqualityCmaintenanceAn MCP server that provides controlled read/write tools for managing local-first research memory in an Obsidian vault, enabling AI agents to maintain project context across sessions.4 npm1MIT
- AlicenseNot gradedqualityCmaintenanceAn MCP server that reduces AI coding agent token usage by 80-99% through a queryable knowledge graph of code, change tracking, and persistent memory across sessions.52 npm4MIT