
本地MCP服务器,为AI编码代理提供持久且可搜索的代码库内存
概览
MIMIRS 以北欧智慧与知识之神米米尔命名。为人工智能编码代理提供持续项目内存。只需设置一个命令,无需维护。 你的客服每次会话开始时都是盲目的——猜文件名,查找关键词,烧掉无关文件的上下文,甚至忘记你昨天讨论的所有内容。 在一个真实项目中,典型的提示是“燃烧”。 用 mimirs 索引后:——该代码库下降了 76%。你的数据会根据仓库大小、查询和模型而变化。 没有API密钥。没有云。没有Docker。只有bun和SQLite。语义搜索 · 自动生成的维基跨会话内存 · 依赖图 · 注释支持:Claude Code · Cursor · Windsurf · JetBrains(Junie) · GitHub Copilot · 任何MCP客户端 Bun(卷发 -fsSL https://bun.
概述(AI 翻译)
米米尔斯 以北欧智慧与知识之神米米尔命名。 为AI编码代理提供持久的项目内存。只需设置一个命令,无需维护。
你的客服每次会话开始时都是盲目的——猜文件名,查找关键词,烧掉无关文件的上下文,甚至忘记你昨天讨论的所有内容。
在一个真实项目中,典型的提示是烧掉**38万个代币和~12秒的端到端*。
用 mimirs 索引后:91K tokens,~3秒——该代码库下降了 76%。你的数据会根据仓库大小、查询和型号而变化。
没有API密钥。没有云。没有Docker。只有bun和SQLite。
语义搜索 · 自动生成的维基
跨会话内存 · 依赖图 · 注释
支持:Claude Code · Cursor · Windsurf · JetBrains(Junie) · GitHub Copilot · 任何 MCP 客户端
快速开始
1.前提条件
Bun(curl -fsSL https://bun.sh/install | bash)以及macOS上的现代SQLite——苹果捆绑的SQLite不支持扩展:
Linux和Windows已经自带兼容的SQLite了。
2.
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
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.
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.
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"mimirs": {
"command": "bunx",
"args": ["mimirs@^1", "serve"],
"env": {
"RAG_PROJECT_DIR": "/absolute/path/to/your/project"
}
}
}
}