Context7
Up-to-date docs for AI agents
作者提供的说明(英文原文)
Local code exploration with progressive zoom and measured token budgets.
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"droste-memory": {
"command": "uvx",
"args": [
"droste-memory",
"mcp"
]
}
}
}在终端中运行这条命令
claude mcp add droste-memory -- uvx droste-memory mcp粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"droste-memory": {
"command": "uvx",
"args": [
"droste-memory",
"mcp"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"droste-memory": {
"type": "stdio",
"command": "uvx",
"args": [
"droste-memory",
"mcp"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过 GitHub 账户 lorismascio17 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(1.3.0)于18天前进入注册中心。
支持 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、图片和脚本已被移除。链接会离开本站。
Search your local code graph, then zoom from a map to structure and source. The new explore interface keeps its entire response inside a measured token budget, including metadata, and reuses unchanged views the client still retains. Find definitions, inspect static references and verify source freshness.
Local-first · progressive zoom · measured tokens · CLI + MCP
*Explore the FastAPI code galaxy in motion. Watch the video or open the interactive galaxy.*
Code galaxy · Token zoom demo · Quickstart · Exploration · MCP
Install v1.3.0 from PyPI or GitHub Releases. See release status.
# Windows
python -m pip install --upgrade droste-memory
python3 -m pip install --upgrade droste-memory
droste index . # index the current repo droste view # open the fractal galaxy in your browser
Install once, then index and view. droste view opens a full-screen, zoomable map of your code — scroll to dive from the project star into folder orbits, down to the individual functions and their indexed relationships.
Need it for an agent instead of your eyes?
droste explore "checkout flow" --tokens 1500
Use returned node IDs as --focus and choose --level map, structure or source to navigate the same region at different detail. used measures the complete compact response under the selected tokenizer. Source bodies downgrade explicitly when they cannot fit. Prepare the small token vocabularies once with droste explore --prepare-tokenizers for later offline use. See the workflow, receipts and measured limits. The older droste context --budget interface still budgets characters.
For everyday code investigation:
droste check # verify source hashes and index coverage
droste find calculate # find symbol IDs, paths and line numbers droste references calculate --direction both droste references helper --file src/math.py --direction callers --depth 3 droste watch . # refresh after additions, edits, renames or deletions
references returns candidates for ambiguous names; choose a file or symbol ID instead of guessing. Python links include the call expression and source line. Other language links report their heuristic resolution method. check exits with status 1 for stale, partial or unverifiable indexes. Context responses warn about stale/partial coverage using a quick size/mtime check; check additionally verifies SHA-256 hashes. Run it before relying on an old index.
Indexing respects nested .gitignore rules and a project-root .drosteignore (Git ignore syntax; applied last). Symlinks, generated bundles, dependency directories and Droste's own storage are excluded. Use an explicit --db per project when running independent writers. watch batches root refreshes and reuses unchanged extraction/embeddings; view remains a snapshot, so reopen it to see a refreshed graph.
Running droste with no arguments prints the command palette:
.-----------------------.
.----' | '----. .---' .-----+-----. '---. .' .----' | '----. '. / .---' .---+---. '---. \ / .-' .-' | '-. '-. \ | .' .-' .---+---. '-. '. | | / .' .' | '. '. \ |
| .--+--. | ||||||
|---|---|---|---|---|---|---|
| '--+--' | ||||||
| \ '. '. | .' .' / | |||||
| '. '-. '---+---' .-' .' |
\ '-. '-. | .-' .-' / \ '---. '---+---' .---' / '. '----. | .----' .' '---. '-----+-----' .---' '----. | .----' '-----------------------'
DROSTE-MEMORY // RIGID FRACTAL RADIAL LAYOUT Local Graph Engine v1.3.0-Alpha-Sharded
Commands droste index [--reset] droste status droste zoom droste context [query] --budget 1500 droste explore [query] --tokens 2000 --level map|structure|source droste mcp
Fast path: droste context hub_core --budget 1000 | clip
Droste combines lexical and semantic retrieval with a static code graph and an interactive map. A graph can bring callers and callees into context even when they share few words with the query. Other tools also offer graph-based MCP retrieval; see the dated ecosystem review.
Droste focuses on a small Python CLI, budgeted context, and visual exploration. The graph is a static approximation: name matching and cross-language bridges can produce false positives and do not prove runtime behavior.
The useful building blocks are:
self/cls members. Dynamic receivers remain unresolved. Other languages use local/unique-name matching; ambiguous candidates are skipped..rpc('x'), .from('table')), to edge functions, and same-name handlers between any two languages. Your Dart/TS/Python frontend and your database stop being two separate worlds on the map.Polyglot: Python (AST) + tree-sitter for Dart, TypeScript/JavaScript, Go, Rust, Java, C#, C/C++, Kotlin, Swift, Ruby, PHP, SQL — symbols *and* edges.
Honest scope: the measured advantage is structural / causal retrieval. On
pure semantic "concept" queries it's competitive with a vector baseline, not a
leap. Cross-language bridges are strongest where the target is actually defined
in the indexed repo (e.g. SQL schema in your migrations).
The public source validation uses pinned Requests and CPython revisions with manually labelled edge assertions. It currently passes 19 of 20 assertions: 15/16 expected edges found, 0/4 forbidden edges emitted. The missed edge is documented; this small corpus is not an agent-task benchmark or a comparison against competing products.
python eval/public_corpus.py --output public-results.json
The evaluation script compares structural retrieval against lexical and vector baselines, using caller/callee relations extracted from the same code as the reference. This measures graph-neighbor retrieval, not agent task completion or superiority over another product. Previous headline numbers are omitted until we publish a fixed public corpus, pinned revisions and complete result files.
python eval/comparative_eval.py --repos /path/to/public/repo --sample 60 --seed 7 --json results.json
Use the real embedding backend for semantic comparisons; the offline hash mode is deterministic but does not provide semantic similarity.
bge-small-en-v1.5, 384-dim), then the graph expands the seed bidirectionally (callees and callers).explore budgets its complete response in reference tokenizer tokens, including metadata. Navigate map, structure and source by node ID; acknowledge exact retained views to avoid resending their bodies.context --budget is characters, with a minimum of 500. Full source, contracts or explicit source stubs fit that effective limit, including separators. That legacy interface does not promise tokenizer-specific counts..droste/ directory, blake2b dirty-tracking so a re-index rewrites only what changed; atomic file replacement with metadata written last. Multi-file updates are not transactions; use one writer per DB and re-index after an interrupted write.Droste is a drop-in MCP server — an AI agent can call it as primary code memory instead of doing blind file reads. Add this to your client configuration file (e.g., Cursor, Claude Desktop, or Codex):
First install or upgrade to the current PyPI release:
# Windows
python -m pip install --upgrade droste-memory
python3 -m pip install --upgrade droste-memory
droste mcp --help
For Codex, add this to C:\Users\ \.codex\config.toml on Windows, or ~/.codex/config.toml on macOS/Linux:
[mcp_servers.droste]
command = "droste" args = ["mcp"] startup_timeout_sec = 120
Installed packages store their default database in %LOCALAPPDATA%/Droste on Windows, ~/Library/Application Support/Droste on macOS, or ${XDG_DATA_HOME:-~/.local/share}/droste on Linux. Source checkouts preserve their repository-local database. Set DROSTE_DB or pass --db to override. Existing databases inside an older installation are not moved automatically; point --db at the old file to continue using it, or re-index your source.
For explicitly offline operation, set DROSTE_EMBEDDING_BACKEND=hash. The default auto backend may download an embedding model on first use; code is processed locally. Hash mode trades semantic retrieval for deterministic, network-free embedding. droste view serves a snapshot; rerun it after indexing.
By default, droste mcp uses Droste's global local database. That is fine for quick use and small workflows. For serious multi-repo work, use one database per repository so each project has isolated memory and agents can safely re-index that project with reset=true.
The --db option is global, so keep it before mcp:
# Windows example
[mcp_servers.droste] command = "droste" args = ["--db", "C:/Users/you/AppData/Local/Droste/my-project/droste_memory_db.json", "mcp"] startup_timeout_sec = 120
# macOS / Linux example
[mcp_servers.droste] command = "droste" args = ["--db", "/Users/you/.local/share/droste/my-project/droste_memory_db.json", "mcp"] startup_timeout_sec = 120
For JSON-
只显示了开头部分;其余内容请在仓库中阅读