Docfork
OfficialAIエージェントはAPIをハルシネーション(幻覚)したり、古いドキュメントでコンテキストを肥大化させたり、古いシグネチャに基づいてコードを書いたりします。Docforkは、Cursor、Claude Code、Windsurf内で直接、最新のドキュメントを提供します。
Docforkなしの場合
app.use('/api/*', jwt({ secret: ... }))
- ^^^ removed in Hono v4Docforkありの場合
app.use('/api/*', bearerAuth({ verifyToken: ... }))
+ ^^^ current API, Hono v4.2はじめに
npx dgrep setup --cursorIDEにDocfork MCPサーバーをインストールします。依存関係を検出し、APIキーをプロビジョニングし、設定ファイルを書き込みます。--claudeおよび--opencodeもサポートしています。
エージェントは以下の2つのツールを使用できるようになります:
ツール | 戻り値 |
| タイトル、URL、関連度スコアを含むランク付けされたドキュメントセクション。 |
| ドキュメントURLからレンダリングされた完全なMarkdownコンテンツ。 |
プロンプトのサフィックスは不要です:
Set up server-side rendering with Next.js App Router.またはターミナルから検索します:
dgrep search "middleware redirect based on authentication" -l vercel/next.js
dgrep search "server actions with forms" -l vercel/next.jsクイックスタート → · dgrepドキュメント → · CLIリファレンス →
独自のドキュメント
公開または非公開のGitHubリポジトリをカスタムライブラリとしてインデックス化できます。社内のAPI、SDK、ランブックをエージェントが検索可能になります。公開ライブラリと同じパイプラインを使用します。GitHub連携の設定 →
Related MCP server: RAG Documentation MCP Server
チーム
無料:組織あたり月間1,000リクエスト。チームへの導入には、MCP設定をリポジトリにコミットしてください:
// .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"
}
}
}
}APIキーとCabinetsを組織内で共有できます。Docforkはコードやプロンプトを保存しません。セキュリティ → · 料金 →
MCP設定
npx dgrep setup --cursor(または --claude、--opencode)を実行して自動インストールしてください。その他のクライアントの手動設定は以下を参照してください。
Cursor —
{
"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/oauthOpenCode
{
"mcp": {
"docfork": {
"type": "remote",
"url": "https://mcp.docfork.com/mcp",
"headers": { "DOCFORK_API_KEY": "YOUR_API_KEY" },
"enabled": true,
},
},
}お使いのクライアントが見当たりませんか?サポートされている全29クライアントのセットアップガイド →
OAuth認証
DocforkはMCP OAuth仕様をサポートしています。エンドポイントを変更してOAuthを使用してください:
- "url": "https://mcp.docfork.com/mcp"
+ "url": "https://mcp.docfork.com/mcp/oauth"注:OAuthはリモートHTTP接続専用です。OAuthガイド全文を読む →
エージェントルール
エージェントが自動的にDocfork MCPを呼び出すようにルールを追加します。ルール全文とIDEごとの設定 →
Claude Code — 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.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.よくある質問
DocforkとContext7の違いは何ですか? どちらもライブラリドキュメントを検索するためのMCPサーバーとCLIを提供しています。主な違いは以下の通りです:
スタックのスコープ設定。
dgrep initはpackage.jsonを読み取り、すべての検索を宣言された依存関係にスコープします。Cabinetsを使用すると、チーム全体でライブラリのバージョンを固定できます。一度の解決、多重検索。
dgrep initはパッケージ名を正規の識別子に一度だけ解決し、そのマッピングを.dgrep/config.jsonにキャッシュします。クエリごとの解決ステップは不要です。ハイブリッド検索。 セマンティック検索とBM25を並行して実行し、Reciprocal Rank Fusionで統合します。ASTを認識したチャンク分割により、関数の境界を保持します。
Docforkは私のコードやプロンプトを保存しますか? コードやプロンプトがマシンから外部に出ることはありません。検索時にクエリとライブラリ名のみがDocforkに送信されますが、クエリ自体は保存されません。インデックス化されたドキュメントコンテンツはアップストリームのベクトルストアに存在し、非公開ライブラリのコンテンツはエンドツーエンドで暗号化され、ライブラリを削除すると自動的に削除されます。セキュリティ →
どのライブラリがサポートされていますか? Docforkは人気のあるフレームワークの厳選されたカタログを維持しています。公開または非公開のGitHubリポジトリをカスタムライブラリとして追加できます。カスタムライブラリを追加 →
ドキュメント
コミュニティ
問題を見つけましたか?GitHub issueを開くか、お問い合わせください。
スターの推移
ライセンス
MIT
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/docfork/docfork-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server