ai.smithery/docfork-mcp

AI 与智能体

by docfork

为 LLMs 与 AI 代码编辑器集中提供 9000+ 库的最新文档和代码示例,便于统一检索与调用。

把 9000+ 库的最新文档和代码示例统一喂给 LLM 与 AI 编程工具,少翻网页、少踩版本过时的坑。

什么是 ai.smithery/docfork-mcp

为 LLMs 与 AI 代码编辑器集中提供 9000+ 库的最新文档和代码示例,便于统一检索与调用。

README

Docfork cover

Docfork MCP - Up-to-date Docs for AI Agents

<a href="https://cursor.com/en/install-mcp?name=docfork&config=eyJ1cmwiOiJodHRwczovL21jcC5kb2Nmb3JrLmNvbS9tY3AifQ%3D%3D"><img src="https://cursor.com/deeplink/mcp-install-dark.svg" height="32" alt="Add to Cursor"/></a>  <a href="https://insiders.vscode.dev/redirect?url=vscode%3Amcp%2Finstall%3F%7B%22name%22%3A%22docfork%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22docfork%40latest%22%5D%7D"><img src="https://img.shields.io/badge/Add%20to%20VS%20Code-007ACC?style=for-the-badge&logo=visualstudiocode&logoColor=white" height="32" alt="Add to VS Code"/></a>  <a href="https://app.docfork.com/signup"><img src="https://img.shields.io/badge/Get%20Free%20API%20Key-F02A2B?style=for-the-badge&logo=fire&logoColor=white" height="32" alt="Get Free API Key"/></a>

<a href="https://docfork.com"><img alt="Website" src="https://img.shields.io/badge/Website-docfork.com-blue?style=flat-square" /></a>  <a href="https://www.npmjs.com/package/docfork"><img alt="npm" src="https://img.shields.io/npm/v/docfork?style=flat-square&color=red" /></a>  <a href="https://www.npmjs.com/package/docfork"><img alt="npm downloads" src="https://img.shields.io/npm/dm/docfork?style=flat-square" /></a>  <a href="./LICENSE"><img alt="License" src="https://img.shields.io/npm/l/docfork?style=flat-square" /></a>

Lock your agent's context to your stack.

Define a Docfork CabinetNext.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.

🚀 Quick Start

1. Get your Free API Key

Sign up at docfork.com — free: 1,000 requests/month, 5 team seats.

2. Install MCP

<details> <summary><b>Install in Cursor</b></summary>

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

Install MCP Server

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

Cursor Local Server Connection

Install MCP Server

json
{
  "mcpServers": {
    "docfork": {
      "command": "npx",
      "args": ["-y", "docfork", "--api-key", "YOUR_API_KEY"]
    }
  }
}
</details> <details> <summary><b>Install in Claude Code</b></summary>

Run this command. See Claude Code MCP docs for more info.

Claude Code Local Server Connection

sh
claude mcp add docfork -- npx -y docfork --api-key YOUR_API_KEY

Claude Code Remote Server Connection

sh
claude mcp add --header "DOCFORK_API_KEY: YOUR_API_KEY" --transport http docfork https://mcp.docfork.com/mcp
</details> <details> <summary><b>Install in OpenCode</b></summary>

Add this to your OpenCode configuration file. See OpenCode MCP docs for more info.

OpenCode Remote Server Connection

jsonc
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "docfork": {
      "type": "remote",
      "url": "https://mcp.docfork.com/mcp",
      "headers": {
        "DOCFORK_API_KEY": "YOUR_API_KEY",
      },
      "enabled": true,
    },
  },
}

OpenCode Local Server Connection

jsonc
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "docfork": {
      "type": "local",
      "command": ["npx", "-y", "docfork", "--api-key", "YOUR_API_KEY"],
      "enabled": true,
    },
  },
}
</details> <details> <summary><b>Install in Cline</b></summary>

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

json
{
  "mcpServers": {
    "docfork": {
      "url": "https://mcp.docfork.com/mcp",
      "type": "streamableHttp",
      "headers": {
        "DOCFORK_API_KEY": "YOUR_API_KEY"
      },
      "alwaysAllow": ["search_docs", "fetch_doc"],
      "disabled": false
    }
  }
}

Cline Local Server Connection

json
{
  "mcpServers": {
    "docfork": {
      "command": "npx",
      "args": ["-y", "docfork", "--api-key", "YOUR_API_KEY"],
      "alwaysAllow": ["search_docs", "fetch_doc"],
      "disabled": false
    }
  }
}
</details>

Windsurf, Roo Code, and 40+ more →

<details> <summary><b>OAuth Authentication</b></summary>

Docfork supports MCP OAuth specs. Change your endpoint to use OAuth:

diff
- "url": "https://mcp.docfork.com/mcp"
+ "url": "https://mcp.docfork.com/mcp/oauth"

Note: OAuth is for remote HTTP connections only. View OAuth Guide →

</details>

3. Just say use docfork

Add use docfork to any prompt:

txt
Implement a secure authentication flow using Better Auth and Supabase. use docfork

4. Make it automatic

Add a rule so Docfork stays active — skip the prompt suffix.

[!NOTE] Add Rule to Cursor (One-Click)

Copy rule:

markdown
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.

Now your AI fetches the latest docs automatically:

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

🔨 Tools

ToolPurpose
search_docsContext-Aware Search. Respects your DOCFORK_CABINET header to strictly limit results to your approved tech stack.
fetch_docFetch Doc. Fetches full Markdown content from a URL when chunks aren't enough.

📖 Docs

💬 Community

Star History

Star History Chart

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

常见问题

ai.smithery/docfork-mcp 是什么?

为 LLMs 与 AI 代码编辑器集中提供 9000+ 库的最新文档和代码示例,便于统一检索与调用。

相关 Skills

Claude接口

by anthropics

Universal
热门

面向接入 Claude API、Anthropic SDK 或 Agent SDK 的开发场景,自动识别项目语言并给出对应示例与默认配置,快速搭建 LLM 应用。

想把Claude能力接进应用或智能体,用claude-api上手快、兼容Anthropic与Agent SDK,集成路径清晰又省心

AI 与智能体
未扫描109.6k

提示工程专家

by alirezarezvani

Universal
热门

覆盖Prompt优化、Few-shot设计、结构化输出、RAG评测与Agent工作流编排,适合分析token成本、评估LLM输出质量,并搭建可落地的AI智能体系统。

把提示优化、LLM评测到RAG与智能体设计串成一套方法,适合想系统提升AI开发效率的人。

AI 与智能体
未扫描9.0k

智能体流程设计

by alirezarezvani

Universal
热门

面向生产级多 Agent 编排,梳理顺序、并行、分层、事件驱动、共识五种工作流设计,覆盖 handoff、状态管理、容错重试、上下文预算与成本优化,适合搭建复杂 AI 协作系统。

帮你把多智能体流程设计、编排和自动化统一起来,复杂工作流也能更稳地落地,适合追求强控制力的团队。

AI 与智能体
未扫描9.0k

相关 MCP Server

顺序思维

编辑精选

by Anthropic

热门

Sequential Thinking 是让 AI 通过动态思维链解决复杂问题的参考服务器。

这个服务器展示了如何让 Claude 像人类一样逐步推理,适合开发者学习 MCP 的思维链实现。但注意它只是个参考示例,别指望直接用在生产环境里。

AI 与智能体
82.9k

知识图谱记忆

编辑精选

by Anthropic

热门

Memory 是一个基于本地知识图谱的持久化记忆系统,让 AI 记住长期上下文。

帮 AI 和智能体补上“记不住”的短板,用本地知识图谱沉淀长期上下文,连续对话更聪明,数据也更可控。

AI 与智能体
82.9k

PraisonAI

编辑精选

by mervinpraison

热门

PraisonAI 是一个支持自反思和多 LLM 的低代码 AI 智能体框架。

如果你需要快速搭建一个能 24/7 运行的 AI 智能体团队来处理复杂任务(比如自动研究或代码生成),PraisonAI 的低代码设计和多平台集成(如 Telegram)让它上手极快。但作为非官方项目,它的生态成熟度可能不如 LangChain 等主流框架,适合愿意尝鲜的开发者。

AI 与智能体
6.4k

评论