resolve-library-id
Resolve a library name into a Context7-compatible library ID, returning the matching libraries.
libraryNamerequired
io.github.CloudCorpRecordsPublished by GitHub account CloudCorpRecordsv0.1.0Updated Nov 7, 2026
Resolve library names and fetch current, version-specific documentation via Context7.
Local MCP server that resolves library names to Context7 IDs and fetches current, version-specific documentation and code examples for coding agents.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Follow the launch instructions in the repository.
libdocs answers the question every coding agent runs into: what does the current version of this library actually do? You give it a library name, it finds the library's Context7-compatible ID, and then it pulls the up-to-date documentation and code examples for that library — optionally focused on one topic and capped at a token budget you pick. It works from the command line or as an MCP server for agents.
An API key is optional. When CONTEXT7_API_KEY is set, libdocs sends
it as a Bearer token; when it is not set, requests simply go out
without one. There is no sign-up step to get started.
Or run the container image:
The container defaults to the MCP server (see below). Pass CLI arguments to use it as a CLI instead.
Exit codes: 0 on success, 1 when a lookup fails (the error names
the problem, including the HTTP status when the service answers with
one), 2 for usage errors.
Token budgets below the service minimum of 10000 are raised to 10000, matching the upstream behaviour.
One bin serves both faces. The mcp subcommand starts a stdio MCP
server:
MCP client configuration:
The env block is optional — leave it out entirely to run keyless.
Resolution talks to the service's search endpoint; documentation is fetched per library ID in plain-text mode. Lookup failures (unknown IDs, rate limits, unreachable hosts) are reported as tool errors.
MIT — see LICENSE.
Source: README.md at commit bcd2961
Resolve a library name into a Context7-compatible library ID, returning the matching libraries.
libraryNamerequiredFetch current documentation and code examples for a library using its Context7-compatible library ID.
topictokenscontext7CompatibleLibraryIDrequired90% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
npx @reneturcios/libdocs resolve "next.js"docker run -i ghcr.io/cloudcorprecords/libdocs# Find the Context7-compatible IDs for a library namelibdocs resolve "next.js"libdocs resolve react
# Fetch documentation for an exact library IDlibdocs docs /vercel/next.jslibdocs docs /vercel/next.js --topic routing --tokens 20000
libdocs --versionnpx -y @reneturcios/libdocs mcp{ "mcpServers": { "libdocs": { "command": "npx", "args": ["-y", "@reneturcios/libdocs", "mcp"], "env": { "CONTEXT7_API_KEY": "your-key-if-you-have-one" } } }}npm installnpm run build # tsc -> dist/npm test # node test runner over test/*.test.ts, no network (fake fetch fixtures)npm run dev # run the CLI from source via tsx