@latest docs for 9000+ libraries in your AI code editor, with a single MCP.
Just tell Cursor to use docfork
Create a basic Next.js app with the App Router. use docfork
or manually:
Settings
-> Cursor Settings
-> MCP Tools
.cursor/mcp.json
Recommended Setup:
Add this to your global ~/.cursor/mcp.json
(or per-project in ./.cursor/mcp.json
):
{
"mcpServers": {
"docfork": {
"url": "https://mcp.docfork.com/mcp"
}
}
}
{
"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>
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>Add this to your Windsurf MCP config. See Windsurf MCP docs for more info.
{
"mcpServers": {
"docfork": {
"serverUrl": "https://mcp.docfork.com/sse"
}
}
}
{
"mcpServers": {
"docfork": {
"command": "npx",
"args": ["-y", "docfork"]
}
}
}
</details>
<details>
<summary><b>Install in VS Code</b></summary>
Add this to your VS Code MCP config. See VS Code MCP docs for more info.
{
"mcpServers": {
"docfork": {
"type": "http",
"url": "https://mcp.docfork.com/mcp"
}
}
}
{
"servers": {
"docfork": {
"type": "stdio",
"command": "npx",
"args": ["-y", "docfork"]
}
}
}
</details>
<details>
<summary><b>Install in Zed</b></summary>
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>
Run this command. See Claude Code MCP docs for more info.
claude mcp add --transport sse docfork https://mcp.docfork.com/sse
claude mcp add docfork -- npx -y docfork
</details>
<details>
<summary><b>Install in Claude Desktop</b></summary>
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>
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>If you prefer to run the MCP server in a Docker container:
First, create a Dockerfile
in the project root (or anywhere you prefer):
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 the Dockerfile
:
docker build -t docfork .
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., mcpServers
vs servers
). Also, ensure the image name in args
matches the tag used during the docker build
command.
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>
To configure Docfork MCP in Augment Code, follow these steps:
mcpServers
array in the augment.advanced
object"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>Add this to your Roo Code MCP configuration file. See Roo Code MCP docs for more info.
{
"mcpServers": {
"docfork": {
"type": "streamable-http",
"url": "https://mcp.docfork.com/mcp"
}
}
}
{
"mcpServers": {
"docfork": {
"command": "npx",
"args": ["-y", "docfork"]
}
}
}
</details>
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"
}
}
}
}
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 configured DEFAULT_MINIMUM_TOKENS
value or the default value of 10000 are automatically increased to that value.Clone the project and install dependencies:
npm i
Build:
npm run build
{
"mcpServers": {
"docfork": {
"command": "npx",
"args": ["tsx", "/path/to/folder/docfork/src/index.ts"]
}
}
}
npx -y @modelcontextprotocol/inspector npx docfork
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.
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"]
}
}
}
@latest
to the package name to pull the newest release.npx
for bunx
if the command stalls or fails.fetch
is available natively.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.
Stay in the loop and meet the community:
MIT
docfork/docfork-mcp
June 5, 2025
July 6, 2025
JavaScript