TL;DR: a self-hosted, free alternative to context7. It serves your agent the docs for the exact version you use, from your git repos, public or private, with nothing leaving your machine.
The problem
I use context7 a lot, because from what I've seen, coding agents write noticeably better code when they read the docs for the version I actually run. What bothered me was that I couldn't run it myself. I wanted something free, on my own machine or homelab, that could also read private repos without anything leaving the box.
What I built
You point ExactDocs at a git repo (GitHub, GitLab, Gitea, anything), pick a tag, branch or commit, then the folders that hold the Markdown docs. Claude Code then gets MCP tools to search and read them.
- The version is a hard filter. Ask about v1.3 and you get v1.3 docs or an explicit "no result".
- Results are the original Markdown with the path, heading, commit SHA and a link to the file.
resolve-library-id and query-docs behave like context7's, so switching is mostly a URL change.- Default search is BM25 on SQLite and needs no models. Embeddings, rerankers and an agentic mode are optional and can run locally on CPU.
- There's a web UI too (screenshots below).
How I used Claude Code to build it
Claude Code wrote most of the code. I did the design and the issues, reviewed everything, and said "no, not like that" a lot. The repo has an AGENTS.md and a set of skills in .agents/skills/ (how to claim an issue, how to test, the architecture rules, how to release) that every session works from. That setup is a big reason it stayed coherent across ~200 commits.
Security and data
It runs on your own machine or server and has no telemetry. It only connects to the git hosts and model endpoints you configure. Git credentials for private repos are stored encrypted and never returned by the API. Apache-2.0, so the code is all there to review.
Try it
uvx exactdocs serve
# or
docker run -d -p 3000:3000 -v exactdocs-data:/data ghcr.io/sircypkowskyy/exactdocs:latest
Then exactdocs config --client claude --new-token prints the MCP snippet for Claude Code.
Repo: https://github.com/SirCypkowskyy/ExactDocs
Docs: https://sircypkowskyy.github.io/ExactDocs/
Disclosure: I'm the author. It's a very early, test-quality release, so things will break, and the config may change under you. Tell me where it breaks, ideally in GitHub issues. If anyone wants to contribute, I'd be happy to take outside PRs :)