用途:查询 DeepWiki 上针对公开 GitHub 仓库的 AI 生成文档,用于理解开源项目、查找 API 文档和探索代码库。
主要能力:提供仓库结构与架构说明、API 文档、代码解释和交互式图表。可将任意仓库 URL 中的 github.com 替换为 deepwiki.com 访问,例如 github.com/vercel/next.js 变为 deepwiki.com/vercel/next.js。
使用方式:无需 MCP 时可用 WebFetch 直接抓取,如 WebFetch https://deepwiki.com/owner/repo "Summarize the architecture"。配置免费的 MCP 服务器(公开仓库无需认证):在 Claude Code 执行 claude mcp add -s user -t http deepwiki https://mcp.deepwiki.com/mcp;Cursor/Windsurf 在 MCP 配置中加入 {"mcpServers":{"deepwiki":{"serverUrl":"https://mcp.deepwiki.com/sse"}}}。可用 MCP 工具包括 read_wiki_structure(获取文档主题结构)、read_wiki_contents(获取文档内容)、ask_question(对仓库提问)。支持 SSE(https://mcp.deepwiki.com/sse)与 HTTP(https://mcp.deepwiki.com/mcp)两种协议。
若仓库未被索引,可回退到 GitHub API,如 gh api repos/owner/repo 获取概览、gh api repos/owner/repo/readme 获取 README、gh api repos/owner/repo/git/trees/main?recursive=1 获取文件结构。
适用场景:理解热门开源项目、按具体问题检索仓库文档、在编码助手内直接查询代码库信息。
限制:仅支持公开仓库,私有仓库需 Devin 账户;覆盖范围有限,索引约 5 万多个热门仓库;无认证无法访问私有文档。建议先用 WebFetch,确认仓库已被索引,提出具体问题,未收录时改用 GitHub。
其他资源:官网 https://deepwiki.com,文档 https://docs.devin.ai/work-with-devin/deepwiki,代码库 https://github.com/CognitionAI/deepwiki。