Docfork Mcp

com.docfork由 docfork.com 發布官方發布者v1.3.3更新於 Oct 24, 2026

Up-to-date docs for AI. DEPRECATED: Use io.github.docfork/docfork instead.

已驗證Streamable HTTP可網頁執行知識與記憶開發者工具

概覽

AI 產生的概覽

已棄用的文件查詢 MCP 伺服器,曾讓程式開發助理搜尋並取得最新的函式庫文件;此服務已關閉,端點皆已下線

可以做什麼
搜尋函式庫文件,回傳附標題、連結與相關度分數的排序章節(search_docs)。依文件連結取得完整的轉譯後 Markdown 內容(fetch_doc)。將公開或私有 GitHub 儲存庫索引為自訂函式庫,讓內部 API 與維運手冊可被搜尋。把搜尋範圍限定在專案宣告的相依套件,並在團隊內固定函式庫版本。
適用情境
不適合新安裝:README 說明此服務已於 2026 年 6 月 14 日關閉,MCP 伺服器、CLI 與所有託管端點皆已離線。登錄描述將其標示為已棄用,並指向替代伺服器。
執行需求
遠端端點,或透過 stdio 執行的 npm 套件 docfork。README 提到首次使用時登入或提供 DOCFORK_API_KEY 標頭,遠端 HTTP 連線可使用 OAuth。這些目前都無法使用:API 金鑰已失效,安裝指令會失敗。
安裝前請注意
服務已停止營運,工具無法回傳結果,安裝也會失敗。README 說明 API 金鑰已不再有效。其團隊設定範例把 API 金鑰寫入提交到儲存庫的設定檔,會讓任何有儲存庫存取權的人看到該金鑰。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Docfork Mcp,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/com.docfork%2Fdocfork-mcp/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "docfork": {
      "type": "http",
      "url": "https://mcp.docfork.com/"
    }
  }
}

README

[Docfork]

[!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 setup will 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

diff
  app.use('/api/*', jwt({ secret: ... }))-                       ^^^ removed in Hono v4

With Docfork

diff
  app.use('/api/*', bearerAuth({ verifyToken: ... }))+                       ^^^ current API, Hono v4.2

Get Started

bash
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:

ToolReturns
search_docsRanked documentation sections with titles, URLs, and relevance scores.
fetch_docFull 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:

bash
dgrep search "middleware redirect based on authentication" -l vercel/next.jsdgrep 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:

json
// .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 setup to install automatically (use --agent claude-code to target one). Manual config below for other clients.

Cursor — [Add to Cursor]

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

Claude Code

bash
claude mcp add --transport http docfork https://mcp.docfork.com/mcp/oauth

OpenCode

jsonc
{  "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:

diff
- "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:

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

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 init reads your package.json and scopes all searches to your declared dependencies. Cabinets let you version-pin those libraries across a team.
  • Resolve once, search many. dgrep init resolves 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

Star History

[Star History Chart]

License

MIT

來源:README.md,提交 3cb4ba2

工具

0
SourceWeft 尚未讀取此伺服器的工具。

版本歷史

1
  1. v1.3.3最新Sep 16, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式必需10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 Docfork 整合