Docfork
Provides up-to-date documentation for 9000+ libraries directly in your AI code editor, enabling accurate code suggestions and eliminating outdated information.
Tools
get-library-docs
Retrieves up-to-date documentation and code examples for any library. This tool automatically searches for the library by name and fetches its documentation. Usage: 1. Provide the author and library name pair (e.g., "vercel/next.js", "shadcn-ui/ui", "vuejs/docs") 2. Specify a topic to focus the documentation on (e.g., "dynamic", "routing", "authentication") The tool will: 1. Automatically find and select the most relevant library based on the provided name 2. Fetch comprehensive documentation for the selected library 3. Return relevant sections focused on the specified topic Response includes: - Library selection explanation - Comprehensive documentation with code examples - Focused content if a topic was specified
README
Docfork: 🌿 Fresh docs for your AI Code Editor
@latest docs for 9000+ libraries in your AI code editor, with a single MCP.
❌ The Problem: Expired Knowledge
- Out of date code & stale data
- API ghost towns & hallucinations
- Old or mismatched versions
✅ The Solution: Fresh docs at warp speed
- Always in sync with the latest version of docs
- Accurate descriptions and code examples
- Sub-second retrieval results in your AI code editor
Just tell Cursor to use docfork
Create a basic Next.js app with the App Router. use docfork
🛠️ Get Started in Seconds
📋 Requirements
- Node.js ≥ v18
- Cursor/Windsurf/Claude Desktop (any MCP client)
⚡ Install in Cursor
or manually:
Settings->Cursor Settings->MCP Tools- Add New MCP Server
- Or configure per-project via
.cursor/mcp.json
Recommended Setup:
Add this to your global ~/.cursor/mcp.json (or per-project in ./.cursor/mcp.json):
Cursor Remote Server Connection
{
"mcpServers": {
"docfork": {
"url": "https://mcp.docfork.com/mcp"
}
}
}
Cursor Local Server Connection
{
"mcpServers": {
"docfork": {
"command": "npx",
"args": ["-y", "docfork"]
}
}
}
<details> <summary>Alternative: Use Bun</summary>
{
"mcpServers": {
"docfork": {
"command": "bunx",
"args": ["-y", "docfork"]
}
}
}
</details>
<details> <summary>Alternative: Use Deno</summary>
{
"mcpServers": {
"docfork": {
"command": "deno",
"args": ["run", "--allow-env", "--allow-net", "npm:docfork"]
}
}
}
</details>
</details>
<details> <summary><b>Installing via Smithery</b></summary>
Installing via Smithery
To install Docfork MCP Server for any client automatically via Smithery:
npx -y @smithery/cli@latest install @docfork/mcp --client <CLIENT_NAME> --key <YOUR_SMITHERY_KEY>
You can find your Smithery key in the Smithery.ai webpage.
</details>
<details> <summary><b>Install in Windsurf</b></summary>
Install in Windsurf
Add this to your Windsurf MCP config. See Windsurf MCP docs for more info.
Windsurf Remote Server Connection
{
"mcpServers": {
"docfork": {
"serverUrl": "https://mcp.docfork.com/sse"
}
}
}
Windsurf Local Server Connection
{
"mcpServers": {
"docfork": {
"command": "npx",
"args": ["-y", "docfork"]
}
}
}
</details>
<details> <summary><b>Install in VS Code</b></summary>
Install in VS Code
Add this to your VS Code MCP config. See VS Code MCP docs for more info.
VS Code Remote Server Connection
{
"mcpServers": {
"docfork": {
"type": "http",
"url": "https://mcp.docfork.com/mcp"
}
}
}
VS Code Local Server Connection
{
"servers": {
"docfork": {
"type": "stdio",
"command": "npx",
"args": ["-y", "docfork"]
}
}
}
</details>
<details> <summary><b>Install in Zed</b></summary>
Install in Zed
One-click install: → Get the Docfork Extension
Or Manual config (for power users):
{
"context_servers": {
"docfork": {
"command": {
"path": "npx",
"args": ["-y", "docfork"]
},
"settings": {}
}
}
}
</details>
<details> <summary><b>Install in Claude Code</b></summary>
Install in Claude Code
Run this command. See Claude Code MCP docs for more info.
Claude Code Remote Server Connection
claude mcp add --transport sse docfork https://mcp.docfork.com/sse
Claude Code Local Server Connection
claude mcp add docfork -- npx -y docfork
</details>
<details> <summary><b>Install in Claude Desktop</b></summary>
Install in Claude Desktop
Add this to your Claude Desktop claude_desktop_config.json file. See Claude Desktop MCP docs for more info.
{
"mcpServers": {
"docfork": {
"command": "npx",
"args": ["-y", "docfork"]
}
}
}
</details>
<details> <summary><b>Install in BoltAI</b></summary>
Install in BoltAI
Open the "Settings" page of the app, navigate to "Plugins," and enter the following JSON:
{
"mcpServers": {
"docfork": {
"command": "npx",
"args": ["-y", "docfork"]
}
}
}
More info is available on BoltAI's Documentation site. For BoltAI on iOS, see this guide.
</details>
<details> <summary><b>Using Docker</b></summary>
Using Docker
If you prefer to run the MCP server in a Docker container:
-
Build the Docker Image:
First, create a
Dockerfilein the project root (or anywhere you prefer):<details> <summary>Click to see Dockerfile content</summary>
FROM node:18-alpine WORKDIR /app # Install the latest version globally RUN npm install -g docfork # Expose default port if needed (optional, depends on MCP client interaction) # EXPOSE 3000 # Default command to run the server CMD ["docfork"]</details>
Then, build the image using a tag (e.g.,
docfork-mcp). Make sure Docker Desktop (or the Docker daemon) is running. Run the following command in the same directory where you saved theDockerfile:docker build -t docfork . -
Configure Your MCP Client:
Update your MCP client's configuration to use the Docker command.
Example for a cline_mcp_settings.json:
{ "mcpServers": { "docfork": { "autoApprove": [], "disabled": false, "timeout": 60, "command": "docker", "args": ["run", "-i", "--rm", "docfork-mcp"], "transportType": "stdio" } } }Note: This is an example configuration. Please refer to the specific examples for your MCP client (like Cursor, VS Code, etc.) earlier in this README to adapt the structure (e.g.,
mcpServersvsservers). Also, ensure the image name inargsmatches the tag used during thedocker buildcommand.
</details>
<details> <summary><b>Install in Windows</b></summary>
Install in Windows
The configuration on Windows is slightly different compared to Linux or macOS (Cline is used in the example). The same principle applies to other editors; refer to the configuration of command and args.
{
"mcpServers": {
"github.com/docfork/mcp": {
"command": "cmd",
"args": ["/c", "npx", "-y", "docfork@latest"],
"disabled": false,
"autoApprove": []
}
}
}
</details>
<details> <summary><b>Install in Augment Code</b></summary>
Install in Augment Code
To configure Docfork MCP in Augment Code, follow these steps:
- Press Cmd/Ctrl Shift P or go to the hamburger menu in the Augment panel
- Select Edit Settings
- Under Advanced, click Edit in settings.json
- Add the server configuration to the
mcpServersarray in theaugment.advancedobject
"augment.advanced": {
"mcpServers": [
{
"name": "docfork",
"command": "npx",
"args": ["-y", "docfork"]
}
]
}
Once the MCP server is added, restart your editor. If you receive any errors, check the syntax to make sure closing brackets or commas are not missing.
</details>
<details> <summary><b>Install in Roo Code</b></summary>
Install in Roo Code
Add this to your Roo Code MCP configuration file. See Roo Code MCP docs for more info.
Roo Code Remote Server Connection
{
"mcpServers": {
"docfork": {
"type": "streamable-http",
"url": "https://mcp.docfork.com/mcp"
}
}
}
Roo Code Local Server Connection
{
"mcpServers": {
"docfork": {
"command": "npx",
"args": ["-y", "docfork"]
}
}
}
</details>
🔧 Environment Variables
The Docfork MCP server supports the following environment variables:
DEFAULT_MINIMUM_TOKENS: Set the minimum token count for documentation retrieval (default: 10000)
Example configuration with environment variables:
{
"mcpServers": {
"docfork": {
"command": "npx",
"args": ["-y", "docfork@latest"],
"env": {
"DEFAULT_MINIMUM_TOKENS": "10000"
}
}
}
}
🔨 Available Tools
Docfork MCP provides the following tool that LLMs can use:
get-library-docs: Searches the library and returns its documentation.libraryName(required): The name of the library to search fortopic(required): Focus the docs on a specific topic (e.g., "routing", "hooks")tokens(optional, default 10000, max 50000): Max number of tokens to return. Values less than the configuredDEFAULT_MINIMUM_TOKENSvalue or the default value of 10000 are automatically increased to that value.
Development
Clone the project and install dependencies:
npm i
Build:
npm run build
Local Configuration Example
{
"mcpServers": {
"docfork": {
"command": "npx",
"args": ["tsx", "/path/to/folder/docfork/src/index.ts"]
}
}
}
Testing with MCP Inspector
npx -y @modelcontextprotocol/inspector npx docfork
Troubleshooting
Module Not Found Errors
If you encounter ERR_MODULE_NOT_FOUND, try using bunx instead of npx:
{
"mcpServers": {
"docfork": {
"command": "bunx",
"args": ["-y", "docfork"]
}
}
}
This often resolves module resolution issues in environments where npx doesn't properly install or resolve packages.
ESM Resolution Issues
For errors like Error: Cannot find module 'uriTemplate.js', try the --experimental-vm-modules flag:
{
"mcpServers": {
"docfork": {
"command": "npx",
"args": ["-y", "--node-options=--experimental-vm-modules", "docfork"]
}
}
}
Troubleshooting Common MCP Client Errors
- Append
@latestto the package name to pull the newest release. - Swap
npxforbunxif the command stalls or fails. - Prefer Deno as a drop-in alternative when you hit bundler issues.
- Verify you're on Node.js v18+ so
fetchis available natively.
⚠️ Disclaimer
Docfork is an open, community-driven catalogue. Although we review submissions, we make no warranties—express or implied—about the accuracy, completeness, or security of any linked documentation or code. Projects listed here are created and maintained by their respective authors, not by Docfork.
If you spot content that is suspicious, inappropriate, or potentially harmful, please contact us.
By using Docfork, you agree to do so at your own discretion and risk.
🌟 Connect with us
Stay in the loop and meet the community:
- 🐦 Follow us on X → @docfork_ai for product news and updates
- 🌐 Visit our Website
Star History
License
MIT
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。