Integrations
Supports configuration through environment variables loaded via .env files, enabling customization of server behavior like concurrency and timeout settings.
Mentioned as a contact method for the author through their Bluesky handle, but no explicit integration functionality is described.
Provides deployment options through Docker containers, allowing the MCP server to be containerized and run in various environments.
Deepwiki MCP 服务器
这是一个非官方的 Deepwiki MCP 服务器
它通过 MCP 获取 Deepwiki URL,抓取所有相关页面,将其转换为 Markdown,然后返回一个文档或按页面列出的列表。
特征
- 🔒域名安全:仅处理来自 deepwiki.com 的 URL
- 🧹 HTML 清理:删除页眉、页脚、导航、脚本和广告
- 🔗链接重写:调整链接以使其在 Markdown 中工作
- 📄多种输出格式:获取一个文档或结构化页面
- 🚀性能:快速爬行,并发性和深度可调
用法
您可以使用的提示:
获取完整文档(默认)
单页
按简写形式获取
光标
将其添加到.cursor/mcp.json
文件。
MCP 工具集成
该软件包注册了一个名为deepwiki_fetch
的工具,您可以将其与任何兼容 MCP 的客户端一起使用:
参数
url
(必填):Deepwiki 存储库的起始 URLmode
(可选):输出模式,对于单个 Markdown 文档为“aggregate”(默认),对于结构化页面数据为“pages”maxDepth
(可选):要抓取的页面的最大深度(默认值:10)
响应格式
成功响应(聚合模式)
成功响应(页面模式)
错误响应
部分成功响应
进度事件
使用该工具时,您将在抓取过程中收到进度事件:
本地开发 - 安装
本地使用
来自源
直接 API 调用
对于 HTTP 传输,您可以直接进行 API 调用:
配置
环境变量
DEEPWIKI_MAX_CONCURRENCY
:最大并发请求数(默认值:5)DEEPWIKI_REQUEST_TIMEOUT
:请求超时(以毫秒为单位)(默认值:30000)DEEPWIKI_MAX_RETRIES
:失败请求的最大重试次数(默认值:3)DEEPWIKI_RETRY_DELAY
:重试退避的基本延迟(以毫秒为单位)(默认值:250)
要配置这些,请在项目根目录中创建一个.env
文件:
Docker 部署(未经测试)
构建并运行 Docker 镜像:
发展
故障排除
常见问题
- 权限被拒绝:如果在运行 CLI 时出现 EACCES 错误,请确保使二进制文件可执行:Copy
- 连接被拒绝:确保端口可用且未被防火墙阻止:Copy
- 超时错误:对于大型存储库,请考虑增加超时和并发性:Copy
贡献
欢迎大家贡献!详情请参阅CONTRIBUTING.md 。
执照
麻省理工学院
链接
- X/Twitter: @kregenrek
- Bluesky: @kevinkern.dev
课程
- 学习 Cursor AI:终极光标课程
- 学习使用 AI 构建软件: instructa.ai
查看我的其他项目:
You must be authenticated.
Tools
MCP 服务器可获取 Deepwiki 文档并将其转换为 Markdown,从而允许用户从 deepwiki.com 存储库抓取页面并以不同的输出格式访问它们。
- Features
- Usage
- Cursor
- Local Development - Installation
- Configuration
- Docker Deployment (Untested)
- Development
- Troubleshooting
- Contributing
- License
- Links
- Courses
- See my other projects:
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityA powerful MCP server for fetching and transforming web content into various formats (HTML, JSON, Markdown, Plain Text) with ease.Last updated -414612TypeScriptMIT License
- -securityAlicense-qualityA Python-based MCP server that crawls websites to extract and save content as markdown files, with features for mapping website structure and links.Last updated -1PythonMIT License
- -securityFlicense-qualityAn MCP server that enables searching and retrieving content from Confluence documentation systems, providing capabilities for both document searches and full page content retrieval.Last updated -Python
- AsecurityFlicenseAqualityA MCP server that allows you to search and retrieve content on any wiki site using MediaWiki with LLMs 🤖. wikipedia.org, fandom.com, wiki.gg and more sites using Mediawiki are supported!Last updated -21Python