Citepath MCP Server
Self-hosted search over your documentation, with citations, for AI assistants and apps
Citepath scores 30 (Limited), licensed MIT and written in TypeScript. It installs as a local process. It does not declare tools yet. Filed under Knowledge. GitHub shows 0 stars. Package registries report about 65 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.
Limited trust
30 of 100 from six public signals. Nobody can buy a point.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade C
65/100 for listing completeness. Lost points: no listed tools, short summary.
How quality is graded
Where the 30 comes from
0 + 6 + 3 + 10 + 4 + 7 = 30. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 0 of 30 points.How recently the repository saw a commit or release.
Maintenance: 6 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 3 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 7 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "arif-js-citepath": { "command": "npx", "args": [ "-y", "citepath@0.1.4" ] } }}
Environment variables
This server does not declare environment variables.
Tools
All capabilitiesTools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.
About
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.
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:
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
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.
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.
Commands
| 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.
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
Frequently asked questions
What is Citepath MCP Server?
Self-hosted search over your documentation, with citations, for AI assistants and apps
How do I install Citepath MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Citepath MCP Server runs locally from the npm package citepath with the command npx -y citepath@0.1.4.
Is Citepath MCP Server free and open source?
Yes. Citepath MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does Citepath MCP Server support remote (HTTP) connections?
No remote endpoint is listed for Citepath MCP Server. It runs locally on your machine over stdio, started by your MCP client.
How is Citepath MCP Server's trust score calculated?
Citepath MCP Server scores 30 out of 100 (Limited). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.