
Citepath
io.github.arif-js由 GitHub 账号 arif-js 发布v0.1.4更新于 Oct 27, 2026
Self-hosted search over your documentation, with citations, for AI assistants and apps
发布方自己的服务:citepath
概览
Citepath 为自有文档站点和本地文档目录建立索引,让助手检索并给出带引用的回答。
- 可以做什么
- 检索已索引的文档,返回排序后的段落,并标注其来自哪个页面章节或文件行
- 读取完整段落,可选附带前后章节以便细读
- 按来源、路径前缀和结果数量过滤,跨多个来源检索
- 索引文档网站(依据 sitemap 或跟随链接)以及本地 Markdown、MDX 或文本目录
- 通过只读的本地 HTTP API 或 JSONL 导出,把同一索引提供给其他工具
- 适用场景
- 适合希望助手依据最新、私有或特定版本的文档作答,而非依赖模型记忆的场景,例如框架文档、内部 wiki、运维手册或仓库文档。也适合离线环境、没有联网搜索的助手,以及需要本地检索层并返回带引用段落的开发者。
- 运行要求
- 以本地进程方式运行,可通过 npx 或全局 npm 安装;需要 Node.js 22.16 或更高版本。需先用命令行创建配置并添加、同步来源。无需账号、API 密钥或遥测。仅在同步文档网站时需要网络访问。
安装
在 SourceWeft 中
- 打开 控制台中的 Citepath,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
Citepath
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.
[Glama MCP server] [npm] [CI] [License: MIT] [MCP] [Node]
Quick start · Demo · Why not RAG? · Commands · Docs · Contributing
Status: pre-release (0.1). Expect breaking changes before 1.0.
What it does
- 📚 Indexes your docs: documentation websites (from the sitemap or by following links, respecting robots.txt) and local Markdown, MDX, or text folders.
- 🔗 Returns cited passages: each search result links to the exact page section or file lines it came from.
- 🧠 Understands code and plain English:
getUserName,--dry-run, and "how do I configure caching" all work. - 🤖 Connects to AI assistants: Claude Code, Cursor, and other MCP clients search your docs; your own tools use the CLI or a local HTTP API.
- 🔒 Runs locally: no account, no API keys, no telemetry. Assistants get read-only access, and a failed sync never deletes good data.
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.
Demo
Index the current Next.js docs once, then search them:
[Searching the Next.js docs with citepath]
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
Who it's for
- Developers using AI coding assistants: answers based on the current docs of your frameworks and services, not on what the model remembers.
- Builders of AI tools: a retrieval layer that returns ranked, cited passages as JSON for any model.
- Small teams: internal wikis, runbooks, and docs folders searchable by assistants, without a hosted platform.
- Open-source maintainers: an easy way for users to connect your project's docs to their assistants.
Why not RAG or web search?
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:
- the docs are private: internal wikis, runbooks, and repo docs aren't on the web;
- the version matters: you choose what's indexed, and search prefers the current copy of a page over old versions;
- you want less to read: on the Next.js docs, 5 cited passages for "how do I set the cache lifetime" are about 4,200 characters, while the five pages they come from hold about 51,000 characters of text (the
cacheLifepage alone is about 1 MB of HTML); - you're offline, or your assistant has no web search.
"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:
- Free to run: no account, API keys, or per-search fees. Searches take milliseconds (p95 13 ms across about 30,000 passages).
- Setup time and disk: syncing 845 Next.js pages took about 7.5 minutes at the polite default of 2 requests per second; the two sites use 83 MB.
- Freshness: results are as current as your last sync. There is no built-in scheduler, so run
citepath syncfrom cron. - Not indexed: sites that need JavaScript to render, PDFs, and docs behind a login.
- Single user: one API token, no per-user permissions.
Use something else for broad questions (web search), meaning-based search (embeddings), or team access control. See Known limitations.
Quick start
Requires Node.js 22.16 or later.
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.
Commands
Global options: --json, --quiet, --config <file>, --data-dir <dir>. See the CLI reference for all options.
Documentation
CLI · Configuration · How sync works · MCP setup · Local API · Result contract · Evaluation · Limitations · Design
Contributing
Contributions are welcome. Read CONTRIBUTING.md, open an issue before a larger feature, and report security problems privately as described in SECURITY.md.
License
来源:README.md,提交 15aeadd
工具
0版本历史
2- v0.1.4最新Oct 20, 2026
- v0.1.3Oct 15, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分