RD

regenrek/deepwiki-mcp

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

1387 stars 81 forks 质量 77 趋势 24MIT

📖 MCP 服务器,用于获取 deepwiki.com 和获取最新的光标及其他代码编辑器知识

概览

⚠️ : 该服务器目前无法运行,因为DeepWiki已切断抓取该服务器的可能性。我们建议暂时使用官方的DeepWiki MCP服务器https://docs.devin.ai/work-with-devin/deepwiki-mcp。 它通过MCP获取Deepwiki的URL,爬取所有相关页面,转换成Markdown,然后返回一个文档或按页面返回列表。 - 🔒 :只处理 deepwiki.com 的URL——🧹:去除页眉、页脚、导航、脚本和广告🔗——:调整链接以适应Markdown——📄:获取一个文档或结构化页面——🚀快速爬取,可调节并发和深度——:只需搜索库名称 该包注册了一个名为 deepwiki_fetch 的工具,你可以在任何兼容 MCP 的客户端中使用: - URL(必填):Deepwiki 仓库的起始 URL - 模式(可选):输出模式,可以是“聚合”用于单个 Markdown 文档(默认)或“页面”用于结构化页面数据 - maxDepth(可选):页面的最大深度......

概述(AI 翻译)

⚠️ 重要通知:该服务器目前无法运行,因为DeepWiki已切断抓取功能。我们建议暂时使用官方的DeepWiki MCP服务器https://docs.devin.ai/work-with-devin/deepwiki-mcp。

这是一个非官方的Deepwiki MCP服务器

它通过MCP获取Deepwiki的URL,爬取所有相关页面,转换成Markdown,然后返回一个文档或按页面返回列表。

特色

  • 🔒 域名安全:仅处理来自 deepwiki.com 的URL。
  • 🧹 HTML 净化:去除页眉、页脚、导航、脚本和广告
  • 🔗 链接重写:调整链接以适应Markdown格式
  • 📄 多种输出格式:获取单文档或结构化页面
  • 🚀 性能:快速爬行,可调节并发和深度
  • NLP:只需搜索图书馆名称

用途

你可以使用的提示:

获取完整文档(默认)

单页

通过短格式获取

光标

将此文件添加到.cursor/mcp.json文件中。

MCP工具集成

该包注册了一个名为 deepwiki_fetch 的工具,你可以在任何兼容 MCP 的客户端中使用:

参数

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Deepwiki MCP Server

⚠️ IMPORTANT NOTICE: This server is currently not working since DeepWiki has cut off the possibility to scrape it. We recommend using the official DeepWiki MCP server at https://docs.devin.ai/work-with-devin/deepwiki-mcp for the time being.

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 /

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

{
在 GitHub 查看完整 README

安装

npx -y mcp-deepwiki@latest
新手?先看 mcpskill.org 教程 →