Context7
Up-to-date docs for AI agents
作者提供的说明(英文原文)
Local-first, source-traceable agent memory — no LLM at ingest, fully offline
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
MIDAS_MCP_DB, MIDAS_MCP_EMBEDDER, MIDAS_MCP_MAX_RECORDS, MIDAS_MCP_MIN_IMPORTANCE你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"midas": {
"command": "uvx",
"args": [
"midas-memory-mcp"
],
"env": {
"MIDAS_MCP_DB": "your-value",
"MIDAS_MCP_EMBEDDER": "your-value",
"MIDAS_MCP_MAX_RECORDS": "your-value",
"MIDAS_MCP_MIN_IMPORTANCE": "your-value"
}
}
}
}在终端中运行这条命令
claude mcp add midas --env MIDAS_MCP_DB=your-value --env MIDAS_MCP_EMBEDDER=your-value --env MIDAS_MCP_MAX_RECORDS=your-value --env MIDAS_MCP_MIN_IMPORTANCE=your-value -- uvx midas-memory-mcp运行前请先填写空着的值。
粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"midas": {
"command": "uvx",
"args": [
"midas-memory-mcp"
],
"env": {
"MIDAS_MCP_DB": "your-value",
"MIDAS_MCP_EMBEDDER": "your-value",
"MIDAS_MCP_MAX_RECORDS": "your-value",
"MIDAS_MCP_MIN_IMPORTANCE": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"midas": {
"type": "stdio",
"command": "uvx",
"args": [
"midas-memory-mcp"
],
"env": {
"MIDAS_MCP_DB": "your-value",
"MIDAS_MCP_EMBEDDER": "your-value",
"MIDAS_MCP_MAX_RECORDS": "your-value",
"MIDAS_MCP_MIN_IMPORTANCE": "your-value"
}
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
MIDAS_MCP_DB envMIDAS_MCP_EMBEDDER envMIDAS_MCP_MAX_RECORDS envMIDAS_MCP_MIN_IMPORTANCE env这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过 GitHub 账户 vornicx 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.0.1)于5个月前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。
同一分类中有:Context7, Codebase Memory, Exa
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Up-to-date docs for AI agents
Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.
Connect AI agents to Exa for web search, content fetching, and multi-step research.
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
Midas
The local memory layer for long-horizon AI agents — remembers across sessions, keeps what's current, and won't act on stale memory. No LLM at ingest · $0 per message · fully local · every recall traces to its source.
Your AI assistant forgets everything between sessions. Midas is the memory that lives next to it, on your machine. Your coding agent remembers the decisions, conventions, and bugs from three sessions ago — without piping every message through an LLM to "extract" facts. It costs nothing per message, nothing leaves your computer, every memory traces back to the exact turn it came from, and it won't let an agent act on memory that's stale or never confirmed.
uv tool install "midas-memory[mcp,local]" # install
midas init # create the shared memory + wire up your MCP clients
uv tool upgrade midas-memory # Update Midas
Install in your agent · See the benchmarks · Complete overview · Roadmap
Most memory tools call an LLM to summarize every session — so you pay in tokens forever, add latency, ship every turn to a provider, and get back *rewritten* facts you can't audit. Midas makes the opposite bet, and that bet is what makes it cheap, private, and trustworthy:
Every Midas number below is measured and reproducible from this repo; the LLM-at-ingest column reflects the structural properties of that design class (Mem0, Zep, Hindsight) and the figures documented in BENCHMARKS.md.
| Midas | LLM-at-ingest systems (Mem0, Zep, Hindsight) | |
|---|---|---|
| LLM calls at ingest | 0 | ≥1 per session |
| Cost per message | $0 | per-token API spend, forever |
| Data egress at ingest | None | every turn leaves the box |
| Ingest latency | ~16–116 ms, local, embed-bound | ~668 ms + API round-trip |
| Recall returns | verbatim source turn, traceable | LLM-rewritten facts (source recall@k not computable) |
| Deterministic & reproducible | yes — every number, one command | no |
| Works fully offline | yes (measured end-to-end with a local Ollama reader) | no |
LongMemEval-s judged answer (gpt-4o) | 0.84 | 0.84 — Observational Memory, with LLM ingest |
| Whole-conversation aggregation / summarization | ❌ by design — top-k retrieval can't cover it (documented) | ✅ their structural edge |
The last row is deliberate: Midas trades whole-conversation abilities for $0, privacy, and auditability, and publishes the measurements that show exactly where that trade bites.
Finding a buried fact is table stakes. A long-horizon coding agent needs memory it can act on safely and resume from cleanly — which is where similarity search alone falls short:
| You ask… | Midas answers with | Why top-k recall can't |
|---|---|---|
| *"Can I run this destructive migration?"* | Guard: allowed only if you confirmed it, and only if that confirmation is still current | provenance + currency aren't a similarity match |
| *"What's the current state of project Apollo?"* | `memory_state`: the live, non-superseded decisions / constraints / facts | a broad "current state" query matches no single turn |
| *"What changed since our last session?"* | `memory_diff`: beliefs added, and beliefs revised (old → new) | "what's new" isn't a content query at all |
| *"How do I speed up the transactions list?"* | the prior fix resurfaces, so the agent doesn't re-diagnose it | — |
These properties are measured, not asserted — the [agent-memory bench suite](docs/agent-memory-benches.md) scores action-safety, decision-adherence, repeated-mistake avoidance, resume fidelity, conflict detection/precision (live contradictions between agents found without over-flagging), and adversarial memory-safety across scripted multi-session projects. The safety eval blocks 10 / 10 adversarial attacks (ASR 0.00) — including a planted confirmation next to a prohibition, a confirmation for a *different* action, a provenance-laundering supersession, and a cross-namespace approval — with no over-blocking (benign-pass 1.00). Deterministic, $0, no LLM. Reproduce every number with one command:
uv run python -m eval.benches # the whole governance suite — or `midas bench` from a checkout
Deterministic, reader-independent retrieval (recall@k — fraction of the gold supporting turns pulled into context) on the full public sets, vs a recency-window baseline:
| Benchmark (full set) | baseline | Midas |
|---|---|---|
| LongMemEval-`s` — 500 questions, 246,750 turns | 0.01 | 0.92 |
| LoCoMo — 10 conversations, n=1,540 | 0.05 | 0.73 |
| BEAM — frontier benchmark, 100K → 10M tokens | 0.00 | 0.56 → 0.32 |
And the cross-system metric, judged answer-rate (same gpt-4o judge the leaderboards use):
| Judged answer | baseline | Midas |
|---|---|---|
LongMemEval-s (gpt-4o reader, ties LLM-ingest SOTA at $0 ingest) | — | 0.84 |
| BEAM-100K (gpt-4o judge, raw-turn floor, $0 ingest) | 0.05 | 0.40 |
All of it at 0 LLM calls, $0, and 0 data egress at ingest. Full numbers, per-category breakdowns, reproduce commands, and the head-to-head vs Mem0/Zep/Mastra are in [BENCHMARKS.md](BENCHMARKS.md).
Eval-first means we publish the misses too. Hybrid retrieval, reranking, thread-diversification,
dual-granularity indexing, and *naive distillation* were all measured to not help (or to hurt) and
are documented as such. That honesty is the point — see BENCHMARKS.md and
docs/frontier-2026.md.
One command wires up everything:
midas init # creates the shared memory + configures every MCP client it finds
midas status # check what's wired · run midas init --dry-run to preview first
Both take `--json` to emit a machine-readable *client wiring receipt* — which memory each client got wired to, under which scope/policy, and which clients were skipped (config paths only, never memory contents). Paste it into a bug report, or let another agent verify the setup without scraping prose.
midas init creates one shared memory (~/.midas/memory.sqlite3) and points the MCP clients it detects — Claude Code, Codex, Grok Build, Cursor, Claude Desktop, Windsurf, VS Code, Gemini CLI, Cline, Zed — at it. So all your agents read and write the same memory, autonomously, with no per-client paths to keep in sync.
Prefer a single endpoint over per-client launches? Run one server and give your clients an MCP URL:
midas serve --http # → http://127.0.0.1:7077/mcp (one server, one memory, every client shares it)
midas serve --http --token # require Authorization: Bearer on every request
Keep Midas current with `midas update`. See your memory anytime with `midas inspect`.
Already carrying agent memory in files? `midas import --from claude-md CLAUDE.md` (or --from cursorrules, --from jsonl, --from mem0, --from zep) turns those rules and exports into first-class, recallable, governable memories — tagged with where they came from, idempotent on re-run.
Want memory even when the agent never calls capture? `midas init --claude-hook` installs a Claude Code SessionEnd hook that offers each session's user turns to memory — Midas's no-LLM policy still decides what is actually kept.
Manual setup — any client, or to customize (click to expand)
Midas is a standard MCP server: point any client at the `midas-mcp` command. It uses the shared store by default — no path needed. The universal block:
{ "mcpServers": { "midas": { "command": "midas-mcp", "env": { "MIDAS_MCP_EMBEDDER": "local" } } } }
| Client | Where the config goes |
|---|---|
| Claude Code | claude mcp add midas -s user -e MIDAS_MCP_EMBEDDER=local -- midas-mcp |
| Cursor | ~/.cursor/mcp.json — paste the JSON block |
| Claude Desktop | Settings → Developer → Edit Config (claude_desktop_config.json) — paste, restart |
| Codex CLI | codex mcp add midas -- midas-mcp |
| Grok Build | grok mcp add --scope user midas -e MIDAS_MCP_EMBEDDER=local -e MIDAS_MCP_CLIENT=grok-build -- midas-mcp |
| Windsurf | ~/.codeium/windsurf/mcp_config.json — paste the block |
| VS Code | user mcp.json (servers key, "type": "stdio") — midas init writes it |
| Gemini CLI | ~/.gemini/settings.json (mcpServers key) — midas init writes it |
| Cline | cline_mcp_settings.json in VS Code global storage — midas init writes it |
| Zed | settings.json → context_servers — midas init writes it |
| Anything else | point it at command midas-mcp |
| No Python | npx -y midas-memory-mcp — the TypeScript port (experimental; semantic embeddings via optional @huggingface/transformers) |
Override per client with env: `MIDAS_MCP_DB` (default ~/.midas/memory.sqlite3; :memory: = ephemeral) · MIDAS_MCP_MAX_RECORDS · MIDAS_MCP_MIN_IMPORTANCE · MIDAS_MCP_NAMESPACE.
⚠️ GUI apps don't share your shell `PATH`. If a client says *"command not found"*, use the absolute
path from
which midas-mcp. On Windows use forward slashes in JSON paths.
Once connected, Midas injects a short policy into the agent (*recall first, then capture durable facts/decisions/preferences/constraints/corrections*). The agent captures freely; Midas decides what's kept — it scores importance (no LLM), drops trivia, skips duplicates, revises stale beliefs, and forgets the low-value tail to stay bounded. Before any memory-justified external or destructive action, the agent calls `che
只显示了开头部分;其余内容请在仓库中阅读