MIMIRS
Named after Mímir, the Norse god of wisdom and knowledge.
Persistent project memory for AI coding agents. One command to set up, nothing to maintain.
Your agent starts every session blind — guessing filenames, grepping for keywords, burning context on irrelevant files, and forgetting everything you discussed yesterday.
On one real project, a typical prompt was burning 380K tokens and ~12 seconds end-to-end.
After indexing with mimirs: 91K tokens, ~3 seconds — a 76% drop on that codebase. Your numbers will vary with repo size, query, and model.
No API keys. No cloud. No Docker.
Just bun and SQLite.
Works with: Claude Code · Cursor · Windsurf · JetBrains (Junie) · GitHub Copilot · any MCP client
Quick start
1. Prerequisites
Bun (curl -fsSL https://bun.sh/install | bash) and, on macOS, a modern SQLite — Apple's bundled one doesn't support extensions:
brew install sqlite
Linux and Windows ship with a compatible SQLite already.
2. Set up your editor (automatic)
bunx mimirs init --ide claude # or: cursor, windsurf, copilot, jetbrains, all
This creates the MCP server config, editor rules, .mimirs/config.json, and .gitignore entry. Run with --ide all to set up every supported editor at once.
init covers Claude Code, Cursor, Windsurf, Copilot, and JetBrains (Junie). For everything else — Codex, Zed, custom clients — copy one of the snippets below.
3. Set up your editor (manual reference)
The mimirs MCP server runs over stdio. Every client needs the same three things: a command (bunx), args (["mimirs@^1", "serve"]), and a RAG_PROJECT_DIR env var pointing at your project root.
Why @^1 and not @latest? The range keeps you on 1.x, so bug fixes and new features still arrive automatically, but a future 2.0 with breaking changes never lands without you asking for it. To move up a major, edit the arg or re-run bunx mimirs init. If you already have mimirs@latest in a config, re-running bunx mimirs init rewrites it to mimirs@^1.
"command not found: bunx" / server fails to start (but bunx works in your terminal)? Editors launched from the Dock or a desktop launcher don't load your shell profile, so ~/.bun/bin isn't on their PATH. Use the absolute path from which bunx as the command instead of the bare bunx in the snippets below. bunx mimirs init writes the absolute path automatically (re-run it to fix an existing config), and bunx mimirs doctor detects the problem.
Claude Code — .mcp.json in project root
{
"mcpServers": {
"mimirs": {
"command": "bunx",
"args": ["mimirs@^1", "serve"],
"env": {
"RAG_PROJECT_DIR": "/absolute/path/to/your/project"
}
}
}
}
Cursor — .cursor/mcp.json in project root
{
"mcpServers": {
"mimirs": {
"command": "bunx",
"args": ["mimirs@^1", "serve"],
"env": {
"RAG_PROJECT_DIR": "/absolute/path/to/your/project"
}
}
}
}
Windsurf — ~/.codeium/windsurf/mcp_config.json (global)
Windsurf reads MCP servers from your home directory, not the project. JetBrains plugin variant uses ~/.codeium/mcp_config.json.
{
"mcpServers": {
"mimirs": {
"command": "bunx",
"args": ["mimirs@^1", "serve"],
"env": {
"RAG_PROJECT_DIR": "/absolute/path/to/your/project"
}
}
}
}
JetBrains (Junie) — .junie/mcp.json in project root
{
"mcpServers": {
"mimirs": {
"command": "bunx",
"args": ["mimirs@^1", "serve"],
"env": {
"RAG_PROJECT_DIR": "/absolute/path/to/your/project"
}
}
}
}