Citepath is a self-hosted search tool focused on providing technical documentation retrieval with source citations for AI assistants and applications. By indexing documentation websites and local folders, it enables MCP clients such as Claude and Cursor to answer questions based on the latest documentation, with a link to every section used.
Key capabilities:
- Index documentation: supports indexing documentation websites from a sitemap or by following links (respecting robots.txt), as well as local Markdown, MDX, or text folders.
- Return passages with citations: every search result links to the exact page section or file line it came from.
- Understand code and natural language: supports searching identifiers (such as getUserName), command-line options (such as --dry-run), and natural language questions (such as "how to configure caching").
- Connect AI assistants: Claude Code, Cursor, and other MCP clients can search your documentation; your own tools can use the CLI or local HTTP API.
- Run locally: no account, API key, or telemetry required. Assistants get read-only access, and a failed sync will not delete existing data.
How to use:
- Requires Node.js 22.16 or later.
- Index and search via the CLI, for example run citepath sync to sync documentation.
- Connect in AI assistants via MCP, for example run /mcp in Claude Code to check the connection.
- Can also be integrated into your own tools via the local HTTP API.
Use cases:
- Developers using AI coding assistants: get answers based on the current documentation of frameworks and services, rather than outdated versions from model memory.
- AI tool builders: get a JSON retrieval layer that returns ranked, cited passages, suitable for any model.
- Small teams: internal wikis, runbooks, and documentation folders can be searched by assistants without a hosting platform.
- Open source maintainers: let users easily connect project documentation to their assistants.
Limitations:
- Keyword-based indexing rather than semantic embeddings, so "sign in" will not find a page that only contains "authentication".
- Results are only as fresh as the last sync; there is no built-in scheduler, so run citepath sync via cron.
- Does not index websites that require JavaScript rendering, PDFs or documentation that requires login.
- Single user: one API token, with no per-user permission control.
- Status is pre-release (0.1); breaking changes may occur before 1.0.
- Setup time and disk usage: syncing 845 Next.js pages takes about 7.5 minutes at the default rate of 2 requests per second, and two sites use 83 MB.
- Search speed: p95 of 13 ms over about 30,000 passages.
- Free to run: no account, API key, or per-search charges.