Exact-version library docs from your lockfile, offline. No rate limits, private packages work.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent — or use 1-click editor setup below.
One-click editor setup isn’t available for this listing yet — we don’t have a confirmed install command, and we’d rather show nothing than point your editor at the wrong package or host. Follow the project’s own setup instructions, linked above.
Exact-version library docs from your lockfile — local, offline, no rate limits.
Reads your lockfile. Answers from the docs and type declarations of the exact version you installed.
npm · PyPI · crates.io · Go. MCP server + CLI in one Rust binary. No account, no API key. MIT.
Docs · Quickstart · Tools · Benchmarks · Compare · How it works
A real terminal: one question, two projects. The zod 3 project gets .strict(), the zod 4 project gets z.strictObject(), each cited to package@version file:line.
That's it. setup detects the clients you have, writes their MCP config, and prints every change. Run it again and nothing changes. Then ask your agent something like "Use lockdocs: how do I reject unknown keys with the zod we use?"
From a terminal, inside any project:
Claude Code: claude mcp add lockdocs -- npx -y @sylphx/lockdocs mcp
Claude Code plugin: /plugin marketplace add SylphxAI/lockdocs, then /plugin install lockdocs@lockdocs
Codex (~/.codex/config.toml):
The server answers for the client's workspace root (or its working directory, or LOCKDOCS_ROOT). Every tool also takes root.
Your agent writes code against the library version it remembers, not the one you installed. So it calls .dict() on a pydantic 2 model, cookies() without await on Next.js 15, and /:id routes on axum 0.8. Hosted doc servers help, but they guess the version from the prompt, cap free usage, and cannot see your private packages.
lockdocs takes the version question off the table:
package-lock.json, pnpm-lock.yaml, yarn.lock, bun.lock, Cargo.lock, uv.lock, poetry.lock, Pipfile.lock, requirements*.txt and go.mod. No library IDs, no "use v14" in the prompt.docs/ folders, plus the API reference in the package itself: .d.ts declarations with JSDoc, Python docstrings and stubs, rustdoc comments, Go doc comments. If it is installed, it is documented, including your private and internal packages.node_modules, your virtualenv, ~/.cargo/registry and the Go module cache. Offline after a one-time model download (129 MB, kept as 32 MB); keyword-only mode (LOCKDOCS_EMBED=0) needs no network at all. No account, no rate limit, and nothing about your dependencies leaves your machine.lockdocs fetch pulls their docs folders from GitHub at the git tag of your pinned version, once, then stays offline.model_validate instead").package@version path:line.Three tools, cheap enough to call before every unfamiliar API:
| Tool | Ask it | Returns |
|---|---|---|
resolve | "Which zod do we use?" | Pinned versions from every lockfile, direct vs transitive, and where their docs are (or what to install) |
docs | "How do I reject unknown keys?" (optionally package: "zod") | The most relevant README, changelog and API sections of the installed version, within budget, each cited zod@4.1.5 v4/classic/schemas.d.ts:453 |
api | z.object, tokio::spawn, BaseModel.model_dump, gin.Context.JSON | The exact signature and doc comment, overloads, members of a class/interface/struct/trait, and other matches |
Example, in a pydantic 2 project:
The same call in a pydantic 1 project answers that pydantic 1.10.18 has no model_dump, and shows the closest documentation instead.
| Ecosystem | Versions from | Docs read from | API reference |
|---|---|---|---|
| npm | package-lock.json, npm-shrinkwrap.json, pnpm-lock.yaml (v5-v9), yarn.lock (v1 and Berry), bun.lock; else package.json + node_modules | node_modules (including pnpm's .pnpm store and monorepo roots), Yarn PnP zip cache (.yarn/cache, global Berry cache) | .d.ts/.d.mts/.d.cts with JSDoc; @types/* when the package ships none; JSDoc'd JS otherwise |
| PyPI | uv.lock, poetry.lock, pdm.lock, Pipfile.lock, requirements*.txt; else the virtualenv | .venv, venv, $VIRTUAL_ENV, $CONDA_PREFIX, then the system interpreter | Docstrings and signatures from .py, .pyi stubs; README from the wheel's METADATA |
| crates.io | Cargo.lock | ~/.cargo/registry/src (or $CARGO_HOME), git dependencies from ~/.cargo/git/checkouts, vendor/ | Public items with rustdoc (///, //!), including items declared inside macros such as tokio's cfg_rt! |
| Go | go.mod (with replace) | $GOMODCACHE/~/go/pkg/mod, vendor/ | Exported funcs, methods, types, interface methods with doc comments; package docs |
Legacy copies bundled inside a package (zod/v3 inside zod 4, pydantic/v1 inside pydantic 2) rank below the current API.
lockdocs fetch adds, once, each direct dependency's upstream docs: it finds the GitHub repository in the package's own metadata and the git tag of your pinned version, and downloads only the docs folders at that tag (Markdown, MDX, reStructuredText, docs examples). Answers then cite next@15.1.0 upstream:docs/01-app/.../cookies.mdx:12. See Upstream docs and fetching.
Out of the box lockdocs reads only your disk (plus the one-time embedding model download). If a pinned package is not installed (a fresh clone, CI, a lockfile you are reviewing), it says so and tells you how to install it. Pass --fetch (or set LOCKDOCS_FETCH=1, or lockdocs setup --fetch) to let it download exactly that version from the registry (npm tarball, PyPI wheel or sdist, crates.io .crate, Go module proxy zip) into its cache. Fetched answers say fetched from registry.npmjs.org. You can also ask for a version you do not use: lockdocs npm:zod@4.1.5 "strict object" --fetch.
105 questions whose correct answer depends on the version, over 15 libraries (zod, Next.js, React Router, pydantic, axum, tokio, Tailwind CSS, ESLint, Prisma, React, Vite, Express, SQLAlchemy, Django, FastAPI), each asked in a real project with that version installed. An answer passes when it contains the version-correct API and none of the other version's. Same questions and grader against Context7's anonymous API, on a GitHub-hosted runner (run):
| correct | older majors | newer majors | tokio | held-out | median tokens | median latency | |
|---|---|---|---|---|---|---|---|
lockdocs + lockdocs fetch | 96/105 | 38/45 | 53/55 | 5/5 | 16/18 | 866 | 97 ms |
| lockdocs, package files only | 60/105 | 27/45 | 29/55 | 4/5 | 6/18 | 903 | 52 ms |
| Context7 (anonymous) | 77/105 | 19/45 | 53/55 | 5/5 | 15/18 | 908 | 2,583 ms |
No reviews yet — be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/lockdocs)<a href="https://allmcps.com/mcp/lockdocs"><img src="https://allmcps.com/api/badge/lockdocs?style=directory" alt="Lockdocs on AllMCPs" /></a>