Repository avatar
Developer Tools
v0.7.0
active

docfork-mcp

ai.smithery/docfork-mcp

@latest documentation and code examples to 9000+ libraries for LLMs and AI code editors in a singl…

Documentation

Docfork cover

Docfork MCP

Stop hallucinations, context bloat, and outdated APIs.

Add to Cursor  Get API Key  Website

NPM Downloads NPM Version License

⚡ Why Docfork?

Standard AI models (Claude 4.5, GPT-5.1) have a knowledge cutoff. They don't know about the framework changes released last week.

The Problem:

  • ❌ AI hallucinates syntax from year-old docs.
  • ❌ AI guesses APIs that don't exist.
  • ❌ Valuable coding time is lost debugging deprecated patterns.

The Solution:

  • Live Sync: We pull documentation from the source automatically.
  • Private Cabinets: Scope your search to your specific tech stack (Next.js + Supabase + Tailwind), avoiding generic results.
  • Team Ready: Share context with your whole organization.

🚀 Quick Start

1. Get your Free API Key

Grab a free key at app.docfork.com.

  • Free Tier: 1,000 requests/month (per organization).
  • Team: 5 free seats included per org.
  • Pro Tier & Private Docs: Coming soon 🚀

2. Install MCP

Cursor

Option A: One-Click

Install MCP Server

Option B: Manual (Remote)

Add to Cursor Settings > Tools & MCP:

{
  "mcpServers": {
    "docfork": {
      "url": "https://mcp.docfork.com/mcp",
      "headers": {
        "DOCFORK_API_KEY": "YOUR_API_KEY"
      }
    }
  }
}

Option C: Manual (Local)

{
  "mcpServers": {
    "docfork": {
      "command": "npx",
      "args": ["-y", "docfork", "--api-key", "YOUR_API_KEY"]
    }
  }
}
Claude Code

Remote:

claude mcp add --transport http docfork https://mcp.docfork.com/mcp --header "DOCFORK_API_KEY: YOUR_API_KEY"

Local:

claude mcp add docfork -- npx -y docfork --api-key YOUR_API_KEY
OAuth Setup (Alternative)

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 OAuth Guide →

See Setup for Opencode, Windsurf, and 30+ others →

3. Usage

Tell your AI to fetch specific, version-accurate documentation for your stack:

Implement a secure authentication flow using Better Auth and Supabase. use docfork
Create a responsive dashboard layout with Tailwind CSS and shadcn/ui. use docfork

4. Add a rule to auto-invoke Docfork MCP

Don't want to type use docfork every time? Add a rule to make your AI fetch docs automatically.

Add Rule to Cursor (One-Click) — or configure manually.

Once enabled, your AI will automatically fetch the latest docs when you ask questions like:

Add a Prisma schema for a multi-tenant SaaS and generate the client.

🛡️ The Docfork Difference: Cabinets

Stop searching the entire internet. Other MCP servers treat documentation like a noisy Google search. Docfork Cabinets hard-lock your AI to your specific stack (e.g., "Only use Tailwind v4 and React 19").

  1. Create a Cabinet in your Dashboard.
  2. Add the DOCFORK_CABINET header to your config:
{
  "mcpServers": {
    "docfork": {
      "url": "https://mcp.docfork.com/mcp",
      "headers": {
        "DOCFORK_API_KEY": "YOUR_API_KEY",
        "DOCFORK_CABINET": "my-project-stack"
      }
    }
  }
}

Learn more about Cabinet Scoping →

🔨 Available Tools

ToolPurpose
docfork_search_docsContext-Aware Search. Respects your DOCFORK_CABINET header to strictly limit results to your approved tech stack.
docfork_read_urlThe Deep Dive. Fetches full Markdown content from a search result URL when the snippet isn't enough.

[!TIP] Identity First: Use the docforkIdentifier (e.g., vercel/next.js) for 10x more accurate results. See usage guide →

📖 Documentation & Community

Found an issue? Raise a GitHub issue or contact support.

Star History

Star History Chart

⚠️ Disclaimer

Docfork is an open, community-driven catalogue. While we review submissions, we cannot guarantee accuracy for every project listed. If you spot an issue, raise a GitHub issue or contact support.

License

MIT