The Docfork server provides up-to-date documentation and code examples for over 9000 code libraries through its get-library-docs tool.
Retrieve Documentation: Fetch comprehensive documentation for any library by specifying the author/library name (e.g., "vercel/next.js", "shadcn-ui/ui")
Focus on Topics: Target specific topics within a library (e.g., "routing", "authentication", "hooks") to get relevant documentation and code examples
Control Output Size: Limit response length by specifying maximum token count to manage context size
Automatic Library Selection: Intelligently finds and selects the most relevant library based on the provided name
AI Integration: Integrates with various AI code editors and clients (Cursor, Claude, VS Code, JetBrains AI Assistant) via the Model Context Protocol (MCP)
The server returns detailed documentation with code examples directly from source, along with an explanation of the library selection process.
Provides alternative installation method using Bun package manager for users experiencing issues with NPX
Offers alternative runtime environment for running the Docfork MCP server when users encounter bundler issues
Supports containerized deployment of the Docfork MCP server with a provided Dockerfile configuration
Provides up-to-date documentation and examples for Next.js development, specifically mentioned in usage examples
Requires Node.js ≥ v18 as runtime environment, with native fetch API support
Click on "Install 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., "@Docforkshow me the latest React useState hook documentation"
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.

Docfork MCP - Up-to-date Docs for AI Agents
Lock your agent's context to your stack.
Define a Docfork Cabinet — Next.js 16 + Drizzle ORM + Better Auth — and every query returns only docs from your stack. No more bloated results. No more hallucinations.
⚡ Built for Precision
Documentation context as precise as your dependency lockfile:
Cabinets — Lock your agent to a verified stack. Only your libraries. Fully isolated.
10,000+ libraries — Pre-chunked docs and code examples. ~200ms edge retrieval.
Team-ready — Share Cabinets and API keys across your org. Same context, every engineer.
Set a Cabinet:
Next.js 16+Drizzle ORM+Better Auth. Your agent only sees docs for your stack. No stray Express docs. No Prisma confusion.
Related MCP server: RAG Documentation MCP Server
🚀 Quick Start
1. Get your Free API Key
Sign up at docfork.com — free: 1,000 requests/month, 5 team seats.
2. Install MCP
Go to: Settings -> Cursor Settings -> MCP -> Add new global MCP server
Paste this into ~/.cursor/mcp.json. For project-scoped config, create .cursor/mcp.json in your project folder. See Cursor MCP docs for more info.
Since Cursor 1.0, click the buttons below to install instantly.
Cursor Remote Server Connection
Cursor Local Server Connection
Run this command. See Claude Code MCP docs for more info.
Claude Code Local Server Connection
Claude Code Remote Server Connection
Add this to your OpenCode configuration file. See OpenCode MCP docs for more info.
OpenCode Remote Server Connection
OpenCode Local Server Connection
Add this to your Cline cline_mcp_settings.json file. To access it: Click the MCP Servers icon in the top navigation bar → Select the "Configure" tab → Click "Configure MCP Servers" at the bottom. See Cline MCP docs for more info.
Cline Remote Server Connection
Cline Local Server Connection
Windsurf, Roo Code, and 40+ more →
Docfork supports MCP OAuth specs. Change your endpoint to use OAuth:
Note: OAuth is for remote HTTP connections only.
3. Just say use docfork
Add use docfork to any prompt:
4. Make it automatic
Add a rule so Docfork stays active — skip the prompt suffix.
Copy rule:
Now your AI fetches the latest docs automatically:
🔨 Tools
Tool | Purpose |
| Context-Aware Search. Respects your |
| Fetch URL. Fetches full Markdown content from a URL when chunks aren't enough. |
📖 Docs
Search Public Libraries – Find libraries to add to your Cabinet.
Installation Guides – Setup guides for every IDE.
Cabinets – Lock your agent to specific libraries.
Library Identifiers – Target exact repos with
owner/repo.Troubleshooting – Fix connection or auth issues.
💬 Community
Changelog – We ship constantly. Every release, documented.
X (Twitter) – Product updates and what's next.
Found an issue? Raise a GitHub issue or contact support.
Star History
Disclaimer
Docfork is an open, community-driven catalogue. We review submissions but can't guarantee accuracy for every project. Spot an issue? Raise a GitHub issue or contact support.
License
MIT