Context7
Up-to-date docs for AI agents
作者提供的说明(英文原文)
Self-hosted search over your documentation, with citations, for AI assistants and apps
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"citepath": {
"command": "npx",
"args": [
"-y",
"citepath",
"mcp"
]
}
}
}在终端中运行这条命令
claude mcp add citepath -- npx -y citepath mcp粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"citepath": {
"command": "npx",
"args": [
"-y",
"citepath",
"mcp"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"citepath": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"citepath",
"mcp"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日
注册名称已通过 GitHub 账户 arif-js 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(0.1.4)于18天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有: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、图片和脚本已被移除。链接会离开本站。
Self-hosted search over your documentation, with citations, for AI assistants and apps.
Index docs websites and local folders, then let Claude, Cursor, or any MCP client answer from the current docs, with a link to every section it used.
Quick start · Demo · Why not RAG? · Commands · Docs · Contributing
Status: pre-release (0.1). Expect breaking changes before 1.0.
getUserName, --dry-run, and "how do I configure caching" all work.Citepath finds passages; it doesn't write answers. Your assistant writes the answer from those passages and cites them, so you can check every claim.
Index the current Next.js docs once, then search them:
citepath add nextjs --url https://nextjs.org/docs/app --include '/docs/app/**' --sync
The same search works inside your assistant:
You: Using citepath, how do I set how long cached data lives in Next.js?
Claude: Add
'use cache'to the function and callcacheLife('hours'), or pass{ stale, revalidate, expire }. This requirescacheComponents: trueinnext.config.ts.
Sources: cacheLife, use cache, cacheComponents
It is RAG: the retrieval half, run locally. Instead of embeddings and a vector database, Citepath uses a keyword index. That means no embedding API or keys, exact matches on identifiers like cacheLife, the same results for the same query, and citations down to the section. The trade-off: it matches words, not meaning, so "sign in" won't find a page that only says "authentication".
Web search is better for broad, one-off questions. Citepath is better when:
cacheLife page alone is about 1 MB of HTML);"The model already knows the docs." Only the version it was trained on. Fast-moving APIs, such as Next.js cacheLife, cacheComponents, or the new two-argument revalidateTag, are where models answer from outdated memory.
"Why not paste the docs into the prompt?" That works for a few pages. The Next.js docs are 845 pages; search picks the few passages that matter.
Costs and limits. Measured on a laptop with the Next.js and Vercel docs:
citepath sync from cron.Use something else for broad questions (web search), meaning-based search (embeddings), or team access control. See Known limitations.
Requires Node.js 22.16 or later.
npm install -g citepath
citepath add my-docs --path ~/work/project/docs --sync citepath search "how do I configure authentication"
claude mcp add citepath -s user -- citepath mcp
Run /mcp in Claude Code to check the connection. For other assistants and scope options, see MCP setup. To run from source, see CONTRIBUTING.md.
| Command | What it does |
|---|---|
citepath init | Create the config file. |
citepath add --url | Add a docs website. Repeat --url to add several. Add --sync to index right away. |
citepath add --path | Add a local docs folder. Repeat --path to add several. |
citepath remove | Remove a source and its indexed content. |
citepath sync [id...] | Fetch and index sources, with live progress. Run again to pick up changes or retry failures. |
citepath sources | List sources with document counts and last sync status. |
citepath status [id] | Show index locations, or a source's last sync: failures, removals, warnings. |
citepath search " " | Find matching passages with citations. Filter with --source, --path-prefix, --limit. |
citepath get | Show a passage in full, with --neighbors for surrounding sections. |
citepath mcp | MCP server for AI assistants. Your assistant starts it; you don't run it yourself. |
citepath serve | Read-only local HTTP API on 127.0.0.1:7345. |
citepath export, eval, compact, unlock | Export as JSONL, measure search quality, optimize the index, clear a stuck sync lock. |
Global options: --json, --quiet, --config , --data-dir . See the CLI reference for all options.
CLI · Configuration · How sync works · MCP setup · Local API · Result contract · Evaluation · Limitations · Design
Contributions are welcome. Read CONTRIBUTING.md, open an issue before a larger feature, and report security problems privately as described in SECURITY.md.
MIT