
Docfork
- 489 repo stars
- Updated June 13, 2026
- docfork/docfork
Docfork is a MCP server that delivers up-to-date developer documentation to AI agents over a local npm stdio connection.
About
Docfork is a Model Context Protocol server that supplies current documentation tuned for AI coding agents. developers hitting constant drift—framework releases, renamed APIs, moved guides—can add the npm stdio server so the assistant retrieves fresher doc slices instead of confabulating from training data. It complements generic web search by focusing on structured doc access for developer libraries, which speeds integration spikes, dependency upgrades, and framework migrations. Installation is oriented toward Node-capable MCP clients; it is an integration layer rather than a doc authoring CMS. For one-person teams shipping fast, Docfork reduces rework from wrong imports and deprecated patterns during the build phase.
- npm stdio MCP package docfork v1.3.2
- Positioned explicitly for up-to-date docs consumed by AI agents
- GitHub-hosted project with MCP registry metadata and SVG icon
- stdio transport for local MCP clients (Cursor, Claude Code, Windsurf)
Docfork by the numbers
- Data as of Jul 7, 2026 (Skillselion catalog sync)
claude mcp add docfork -- npx -y docforkAdd your badge
Show developers this MCP server is listed on Skillselion. Paste this into your README.
| repo stars | ★ 489 |
|---|---|
| Package | docfork |
| Transport | STDIO |
| Auth | None |
| Last updated | June 13, 2026 |
| Repository | docfork/docfork ↗ |
What it does
Fetch fresh, agent-oriented library and framework docs through MCP so Claude Code stops citing outdated package documentation mid-build.
Who is it for?
Best when you're on Node-friendly MCP setups and routinely integrate third-party packages and need doc freshness in Cursor or Claude Code.
Skip if: Skip if you want proprietary internal wiki hosting only, or workflows with no npm/Node MCP runtime available.
What you get
After you add the Docfork stdio server, the agent can pull newer documentation context while you integrate libraries and frameworks.
- Agent queries backed by newer public documentation
- Fewer integration errors from stale API references
By the numbers
- npm package version 1.3.2
- stdio transport via registry identifier docfork
- Repository: github.com/docfork/docfork
README.md
[!CAUTION] Docfork has shut down as of June 14, 2026. The MCP server, CLI, and all hosted endpoints are offline and will not return. API keys no longer work, and
npx dgrep setupwill fail. Thank you to everyone who used the service.
Up-to-date docs for AI coding agents.
AI agents hallucinate APIs, bloat context with stale docs, and write code against outdated signatures. Docfork serves up-to-date documentation directly in Cursor, Claude Code, and Windsurf.
Without Docfork
app.use('/api/*', jwt({ secret: ... }))
- ^^^ removed in Hono v4
With Docfork
app.use('/api/*', bearerAuth({ verifyToken: ... }))
+ ^^^ current API, Hono v4.2
Get Started
npx dgrep setup
Installs the Docfork MCP server in your IDE. Detects your installed agents and writes the config file; sign in to Docfork on first use, no API key needed. Target one with --agent claude-code (also: cursor, codex, opencode, vscode, windsurf, amp, factory, zed).
Your agent now has two tools:
| Tool | Returns |
|---|---|
search_docs |
Ranked documentation sections with titles, URLs, and relevance scores. |
fetch_doc |
Full rendered markdown content from a documentation URL. |
No prompt suffix needed:
Set up server-side rendering with Next.js App Router.
Or search from the terminal:
dgrep search "middleware redirect based on authentication" -l vercel/next.js
dgrep search "server actions with forms" -l vercel/next.js
Quickstart → · dgrep docs → · CLI reference →
Your own docs
Index any public or private GitHub repository as a custom library. Your internal APIs, SDKs, and runbooks become searchable by your agents — same pipeline as public libraries. GitHub integration setup →
Teams
Free: 1,000 requests/month per organization. For team rollout, commit the MCP config to your repo:
// .cursor/mcp.json (committed to git, picked up by every engineer)
{
"mcpServers": {
"docfork": {
"url": "https://mcp.docfork.com/mcp",
"headers": {
"DOCFORK_API_KEY": "YOUR_TEAM_API_KEY"
}
}
}
}
Share API keys and Cabinets across your organization. Docfork doesn't store your code or prompts. Security → · Pricing →
MCP Setup
[!TIP] Run
npx dgrep setupto install automatically (use--agent claude-codeto target one). Manual config below for other clients.
{
"mcpServers": {
"docfork": {
"url": "https://mcp.docfork.com/mcp",
"headers": {
"DOCFORK_API_KEY": "YOUR_API_KEY"
}
}
}
}
Claude Code
claude mcp add --transport http docfork https://mcp.docfork.com/mcp/oauth
OpenCode
{
"mcp": {
"docfork": {
"type": "remote",
"url": "https://mcp.docfork.com/mcp",
"headers": { "DOCFORK_API_KEY": "YOUR_API_KEY" },
"enabled": true,
},
},
}
Don't see your client? Setup guides for all 29 supported clients →
OAuth Authentication
Docfork supports MCP OAuth specs. Change your endpoint to use OAuth:
- "url": "https://mcp.docfork.com/mcp"
+ "url": "https://mcp.docfork.com/mcp/oauth"
Note: OAuth is for remote HTTP connections only. View full OAuth guide →
Agent Rule
Add a rule so your agent calls Docfork MCP automatically. Full rule and IDE-specific setup →
[!NOTE] Add Rule to Cursor (One-Click)
Claude Code — add to your CLAUDE.md:
## Docfork policy
Use Docfork MCP `search_docs` and `fetch_doc` tools for library/API docs, setup, and configuration questions.
- Start `library` with a short name or keyword (e.g., `nextjs`, `zod`). Use the `owner/repo` from the result URL for follow-up calls, never guess it upfront.
- After finding a relevant result, call `fetch_doc` to get the full content. Search results are summaries only.
- Prefer Docfork results over training data when they conflict.
Full rule (all clients)
When writing or debugging code that involves third-party libraries, frameworks, or APIs, use Docfork MCP `search_docs` and `fetch_doc` tools rather than relying on training data.
**Two defaults to follow every time:**
- Start `library` with a short name or keyword (e.g., `nextjs`, `zod`). Use the `owner/repo` from the result URL for follow-up calls, never guess it upfront.
- After finding a relevant result, call `fetch_doc` to get the full content. Search results are summaries only.
Skip Docfork when:
- Language built-ins, general algorithms, syntax stable across versions
- Code or docs the user has already provided in context
When uncertain, default to using Docfork.
FAQ
How is Docfork different from Context7? Both provide MCP servers and CLIs for searching library documentation. Here are the key differences:
- Stack scoping.
dgrep initreads yourpackage.jsonand scopes all searches to your declared dependencies. Cabinets let you version-pin those libraries across a team. - Resolve once, search many.
dgrep initresolves package names to canonical identifiers once and caches the mapping in.dgrep/config.json. No per-query resolution step. - Hybrid search. Semantic search and BM25 run in parallel, fused via Reciprocal Rank Fusion. AST-aware chunking preserves function boundaries.
Does Docfork store my code or prompts? Your code and prompts never leave your machine. At search time, only the query and library name are sent to Docfork — queries are not stored. Indexed documentation content lives in an upstream vector store; private library content is end-to-end encrypted and deleted atomically when you remove the library. Security →
What libraries are supported? Docfork maintains a curated catalog of popular frameworks. Add any public or private GitHub repository as a custom library. Add custom libraries →
Docs
Community
- Changelog
- X (Twitter)
- Found an issue? Open a GitHub issue or contact us.
Star History
License
MIT
Recommended MCP Servers
How it compares
Live docs MCP integration via npm, not a static skills.sh coding skill or hosted doc2mcp remote for one repo.
FAQ
Who is Docfork for?
It is for AI-assisted developers who want an MCP-accessible doc source that stays closer to current package documentation than model memory alone.
When should I use Docfork?
Use it during builds and dependency upgrades whenever accurate, recent library docs would prevent wrong API usage or broken examples.
How do I add Docfork to my agent?
Register the docfork npm package as a stdio MCP server in your client (per Docfork’s install docs), typically requiring Node and the published v1.3.2 identifier.