Deepwiki

Web search and scrapingDeveloper tools

MCP server for fetch deepwiki.com and get latest knowledge in Cursor and other Code Editors.

Your AI app calls the Deepwiki MCP server, which does the web search and scraping and developer tools work and sends the result back to the chat.

About Deepwiki

Deepwiki is a community MCP server from regenrek, filed in our directory under web search and scraping and developer tools. MCP server for fetch deepwiki.com and get latest knowledge in Cursor and other Code Editors.

Deepwiki runs on your own machine: your AI app starts it with the command npx -y mcp-deepwiki and talks to it over standard input and output.

The README for Deepwiki lists tools such as url, mode and maxDepth, which your AI app can call once the server is connected.

At a glance

Publisher
regenrek (community)
Runs
Locally on your machine
Install from
Node.js package on npm: mcp-deepwiki
Written in
TypeScript
License
MIT
GitHub stars
1,393

Tools Deepwiki gives your AI app

  • url(required): The starting URL of the Deepwiki repository.
  • mode(optional): Output mode, either "aggregate" for a single Markdown document (default) or "pages" for structured page data.
  • maxDepth(optional): Maximum depth of pages to crawl (default: 10).

Tool names as the Deepwiki README lists them. Your AI app shows the live list once Deepwiki is connected.

How to set up Deepwiki

  1. Install Node.js on the machine that runs your AI app, because Deepwiki starts with npx and downloads its package on first run.
  2. Check the Deepwiki README for keys or settings; the registry lists none that Deepwiki requires.
  3. Add Deepwiki to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Deepwiki tools to confirm the connection.
  5. Run one read-only task with Deepwiki first, such as a call to url, before you allow anything that writes or sends.

Deepwiki compared with similar servers

  • CRW Web Scraper by fastcrw has fewer GitHub stars than Deepwiki (1.3k against 1.4k); both are community servers, and both run locally.
  • SearXNG Search by ihor-sokoliuk has more GitHub stars than Deepwiki (1.4k against 1.4k); both are community servers, and both run locally.
  • Search2ai by fatwang2 has fewer GitHub stars than Deepwiki (1.3k against 1.4k); both are community servers, and both run locally.

Before you connect Deepwiki

  • Give Deepwiki its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Deepwiki tool call until you trust what it does with them.
  • Treat text that Deepwiki fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Deepwiki on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Deepwiki

How marketing and sales teams put Deepwiki to work, by company size. Pick the size closest to yours and start Deepwiki on one use case.

Small business

  • A founder can use Deepwiki to research a market or a prospect in minutes, with sources cited, before a pitch or a pricing change.
  • Small teams can ask Deepwiki what competitors launched this month and get the pages, not just a summary.
  • A small business with a developer can use Deepwiki to ship site and tracking fixes faster, with the AI reading the code it changes.
  • Deepwiki runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Marketing teams can use Deepwiki to gather fresh data for content, such as stats, quotes and examples, with each source linked for checking.
  • Outbound teams can connect Deepwiki to research accounts from public pages and add one specific line to each first email.
  • Growth engineers can use Deepwiki to build landing pages, tracking and integrations in fewer cycles, with reviews kept in the normal flow.
  • Start with url and mode, the tools Deepwiki lists first, and add more once the team trusts the results.

Enterprise

  • Enterprise research and competitive intel teams can schedule Deepwiki to monitor many sources, with results stored and cited for review.
  • Large orgs can route Deepwiki through approved providers and respect each site's terms, keeping scraping inside legal guidance.
  • Enterprise engineering teams can roll out Deepwiki with repo scopes and audit logs, so agents work only where they are allowed.
  • Deepwiki is a community server, so have security review the code and pin a version before Deepwiki touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Deepwiki README

From regenrek/deepwiki-mcp on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

Deepwiki MCP Server

Security fix released in 0.0.12. In version 0.0.10, the optional HTTP and SSE modes could accept unauthenticated network connections. Version 0.0.12 fixes this by rejecting --http and --sse before opening a network port. Local stdio remains available.

Maintenance has ended. If you run an older version with either network flag, stop the running process and remove its startup entry from your MCP client. To migrate, follow the official DeepWiki MCP setup guide.

Historical documentation for the discontinued server

This is an unofficial Deepwiki MCP Server

It takes a Deepwiki URL via MCP, crawls all relevant pages, converts them to Markdown, and returns either one document or a list by page.

Features

  • 🔒 Domain Safety: Only processes URLs from deepwiki.com
  • 🧹 HTML Sanitization: Strips headers, footers, navigation, scripts, and ads
  • 🔗 Link Rewriting: Adjusts links to work in Markdown
  • 📄 Multiple Output Formats: Get one document or structured pages
  • 🚀 Performance: Fast crawling with adjustable concurrency and depth
  • NLP: It's to search just for the library name

Usage

Prompts you can use:

deepwiki fetch how can i use gpt-image-1 with "vercel ai" sdk
deepwiki fetch how can i create new blocks in shadcn?
deepwiki fetch i want to understand how X works

Fetch complete Documentation (Default)

use deepwiki https://deepwiki.com/shadcn-ui/ui
use deepwiki multiple pages https://deepwiki.com/shadcn-ui/ui

Single Page

use deepwiki fetch single page https://deepwiki.com/tailwindlabs/tailwindcss/2.2-theme-system

Get by shortform

use deepwiki fetch tailwindlabs/tailwindcss
deepwiki fetch library

deepwiki fetch url
deepwiki fetch <name>/<repo>

deepwiki multiple pages ...
deepwiki single page url ...

Cursor

Add this to .cursor/mcp.json file.

{
  "mcpServers": {
    "mcp-deepwiki": {
      "command": "npx",
      "args": ["-y", "mcp-deepwiki@latest"]
    }
  }
}
MCP Tool Integration

The package registers a tool named deepwiki_fetch that you can use with any MCP-compatible client:

{
  "action": "deepwiki_fetch",
  "params": {
    "url": "https://deepwiki.com/user/repo",
    "mode": "aggregate",
    "maxDepth": "1"
  }
}
Parameters
  • url (required): The starting URL of the Deepwiki repository
  • mode (optional): Output mode, either "aggregate" for a single Markdown document (default) or "pages" for structured page data
  • maxDepth (optional): Maximum depth of pages to crawl (default: 10)
Response Format
Success Response (Aggregate Mode)
{
  "status": "ok",
  "data": "# Page Title\n\nPage content...\n\n---\n\n# Another Page\n\nMore content...",
  "totalPages": 5,
  "totalBytes": 25000,
  "elapsedMs": 1200
}
Success Response (Pages Mode)
{
  "status": "ok",
  "data": [
    {
      "path": "index",
      "markdown": "# Home Page\n\nWelcome to the repository."
    },
    {
      "path": "section/page1",
      "markdown": "# First Page\n\nThis is the first page content."
    }
  ],
  "totalPages": 2,
  "totalBytes": 12000,
  "elapsedMs": 800
}
Error Response
{
  "status": "error",
  "code": "DOMAIN_NOT_ALLOWED",
  "message": "Only deepwiki.com domains are allowed"
}
Partial Success Response
{
  "status": "partial",
  "data": "# Page Title\n\nPage content...",
  "errors": [
    {
      "url": "https://deepwiki.com/user/repo/page2",
      "reason": "HTTP error: 404"
    }
  ],
  "totalPages": 1,
  "totalBytes": 5000,
  "elapsedMs": 950
}
Progress Events

When using the tool, you'll receive progress events during crawling:

Fetched https://deepwiki.com/user/repo: 12500 bytes in 450ms (status: 200)
Fetched https://deepwiki.com/user/repo/page1: 8750 bytes in 320ms (status: 200)
Fetched https://deepwiki.com/user/repo/page2: 6200 bytes in 280ms (status: 200)

Local Development - Installation

Local Usage
{
  "mcpServers": {
    "mcp-deepwiki": {
      "command": "node",
      "args": ["./bin/cli.mjs"]
    }
  }
}
From Source
# Clone the repository
git clone https://github.com/regenrek/deepwiki-mcp.git
cd deepwiki-mcp

# Install dependencies
npm install

# Build the package
npm run build

Configuration

Environment Variables
  • DEEPWIKI_MAX_CONCURRENCY: Maximum concurrent requests (default: 5)
  • DEEPWIKI_REQUEST_TIMEOUT: Request timeout in milliseconds (default: 30000)
  • DEEPWIKI_MAX_RETRIES: Maximum retry attempts for failed requests (default: 3)
  • DEEPWIKI_RETRY_DELAY: Base delay for retry backoff in milliseconds (default: 250)

To configure these, create a .env file in the project root:

DEEPWIKI_MAX_CONCURRENCY=10
DEEPWIKI_REQUEST_TIMEOUT=60000
DEEPWIKI_MAX_RETRIES=5
DEEPWIKI_RETRY_DELAY=500

Docker Deployment (Untested)

Build and run the Docker image:

# Build the image
docker build -t mcp-deepwiki .

# Run with stdio transport
docker run -i --rm mcp-deepwiki

# Run with environment variables
docker run -i --rm \
  -e DEEPWIKI_MAX_CONCURRENCY=10 \
  -e DEEPWIKI_REQUEST_TIMEOUT=60000 \
  mcp-deepwiki

Development

# Install dependencies
pnpm install

# Run in development mode with stdio
pnpm run dev-stdio

# Run tests
pnpm test

# Run linter
pnpm run lint

# Build the package
pnpm run build

Troubleshooting

Common Issues
  1. Permission Denied: If you get EACCES errors when running the CLI, make sure to make the binary executable:

    chmod +x ./node_modules/.bin/mcp-deepwiki
    
  2. Timeout Errors: For large repositories, consider increasing the timeout and concurrency:

    DEEPWIKI_REQUEST_TIMEOUT=60000 DEEPWIKI_MAX_CONCURRENCY=10 npx mcp-deepwiki
    

Contributing

We welcome contributions! Please see CONTRIBUTING.md for details.

License

MIT

Questions about Deepwiki

What is the Deepwiki MCP server?

MCP server for fetch deepwiki.com and get latest knowledge in Cursor and other Code Editors. Deepwiki is maintained by regenrek on GitHub at regenrek/deepwiki-mcp, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Deepwiki MCP server?

Add Deepwiki to your AI app's MCP config with the command npx -y mcp-deepwiki. In Claude Code, run claude mcp add --transport stdio deepwiki -- npx -y mcp-deepwiki. To run Deepwiki this way you need Node.js installed.

Does Deepwiki need an API key?

The registry lists no required keys for Deepwiki. Check the Deepwiki README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Deepwiki an official MCP server?

No. Deepwiki is a community server maintained by regenrek. Community servers can be excellent; read the code and the open issues before you give Deepwiki access to company data.

What license is Deepwiki under?

Deepwiki is released under the MIT license, according to its GitHub repository. The license covers the code of Deepwiki; the service it connects to has its own terms.