Self-hosted search over your documentation, with citations, for AI assistants and apps
Runs on your machine from its package; the steps are below.

At most: only reads or looks up information.
Odel charges nothing per call. The publisher may charge for its own service.
Runs locally over stdio
This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).
Run
npx -y citepath
MCP client config
{
"mcpServers": {
"citepath": {
"command": "npx",
"args": [
"-y",
"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.
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"
# Connect Claude Code (all projects)
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 <id> --url <url> | Add a docs website. Repeat --url to add several. Add --sync to index right away. |
citepath add <id> --path <dir> | Add a local docs folder. Repeat --path to add several. |
citepath remove <id> | 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 "<query>" | Find matching passages with citations. Filter with --source, --path-prefix, --limit. |
citepath get <passage-id> | Show a passage in full, with --neighbors <n> 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 <file>, --data-dir <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.