
docfork
by docfork·★ 479·Score 53
Docfork provides AI coding agents with real-time documentation access through MCP servers to prevent API hallucinations.
Overview
Docfork is an MCP server that serves up-to-date documentation directly to AI coding agents like Cursor, Claude Code, and Windsurf. It solves the problem of AI agents hallucinating APIs, using stale documentation, or writing code against outdated function signatures. The server provides two main tools: search_docs for finding relevant documentation sections and fetch_doc for retrieving full rendered markdown content. It supports both public libraries and custom private repositories, with authentication via API keys or OAuth.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose Docfork when working with multiple libraries and frameworks where up-to-date documentation is critical for accurate AI-generated code.
When NOT to choose this
Don't choose Docfork if you need offline access to documentation or prefer a self-hosted solution without external API dependencies.
Tools this server exposes
2 tools extracted from the READMEsearch_docsRanked documentation sections with titles, URLs, and relevance scores.
fetch_docFull rendered markdown content from a documentation URL.
Comparable tools
Installation
Installation
- **Automatic Setup (Recommended)**
``bash npx dgrep setup --cursor # For Cursor npx dgrep setup --claude # For Claude Code npx dgrep setup --opencode # For OpenCode ``
- **Manual Configuration for Claude Desktop**
Add to your Claude Desktop config: ``json { "mcpServers": { "docfork": { "url": "https://mcp.docfork.com/mcp", "headers": { "DOCFORK_API_KEY": "YOUR_API_KEY" } } } } ``
- **For Other MCP Clients**
Follow the setup guides for your specific client at [docfork.com/docs/mcp/setup](https://docfork.com/docs/mcp/setup)
FAQ
- How is Docfork different from Context7?
- Docfork provides stack scoping by reading your package.json, resolves package names once and caches mappings, and uses hybrid search combining semantic and BM25 with AST-aware chunking.
- Does Docfork store my code or prompts?
- No, your code and prompts never leave your machine. Only queries and library names are sent to Docfork at search time, and queries are not stored.
Compare docfork with
Last updated · Auto-generated from public README + GitHub signals.