libdocs
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@libdocsGet the latest Next.js documentation on routing with a 20k token cap."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
libdocs
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.
Install
npx @reneturcios/libdocs resolve "next.js"Or run the container image:
docker run -i ghcr.io/cloudcorprecords/libdocsThe container defaults to the MCP server (see below). Pass CLI arguments to use it as a CLI instead.
Related MCP server: Context7 MCP Clone
CLI
# Find the Context7-compatible IDs for a library name
libdocs resolve "next.js"
libdocs resolve react
# Fetch documentation for an exact library ID
libdocs docs /vercel/next.js
libdocs docs /vercel/next.js --topic routing --tokens 20000
libdocs --versionExit 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.
MCP server
One bin serves both faces. The mcp subcommand starts a stdio MCP
server:
npx -y @reneturcios/libdocs mcpMCP client configuration:
{
"mcpServers": {
"libdocs": {
"command": "npx",
"args": ["-y", "@reneturcios/libdocs", "mcp"],
"env": {
"CONTEXT7_API_KEY": "your-key-if-you-have-one"
}
}
}
}The env block is optional — leave it out entirely to run keyless.
Tools
Tool | Input | What it returns |
|
| The matching libraries, each with its title, Context7-compatible library ID, description, and the token, snippet, and trust figures the service reports. |
|
| The library's documentation and code examples as plain text, focused on |
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.
Development
npm install
npm 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 tsxLicense
MIT — see LICENSE.
This server cannot be deployed
Maintenance
Related MCP Connectors
Find open-source libraries and fetch contextual code snippets by version to accelerate development…
@latest documentation and code examples to 9000+ libraries for LLMs and AI code editors in a singl…
Docsy gives AI assistants current, version-specific documentation for libraries, frameworks and SDKs. Resolve library IDs and versions, then search and fetch focused official documentation with original source links using five read-only MCP tools. Hosted Streamable HTTP with OAuth 2.1 sign-in.
Provide your AI coding tools with token-efficient access to up-to-date technical documentation for…
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceProvides access to the Context7 API for searching up-to-date documentation, code examples, API references, and troubleshooting help across thousands of programming libraries and frameworks. Enables developers and AI agents to quickly find accurate documentation, compare libraries, get migration guides, and resolve coding issues.-
- AlicenseNot gradedqualityDmaintenanceProvides up-to-date, version-specific documentation and code examples for software libraries directly to LLMs, enabling resolution of library identifiers and retrieval of relevant documentation with code snippets.MIT
- AlicenseNot gradedqualityNot gradedmaintenanceProvides real-time access to code library documentation and examples through Context7 API integration, enabling AI assistants to retrieve up-to-date technical documentation, code snippets, and best practices for various programming libraries.1MIT
- AlicenseNot gradedqualityDmaintenanceProvides up-to-date library documentation by resolving library names and fetching docs via the Context7 API.MIT