wiki_parser
Extract tables of contents and chapter content from DeepWiki AI-generated docs for GitHub repositories, with depth control and file saving options.
Instructions
A comprehensive tool for parsing and extracting content from DeepWiki documentation pages. This tool helps you navigate and extract specific content from DeepWiki's AI-generated documentation for GitHub repositories. DeepWiki analyzes codebases and creates detailed, structured documentation making complex projects easier to understand.
When to use this tool:
Getting a table of contents or structure overview of a repository's documentation
Extracting specific chapters or sections from the documentation
Understanding the organization of a project's documentation
Pulling detailed explanations of specific components or features
Gathering comprehensive documentation for offline use or analysis
Key features:
View documentation structure with customizable depth levels
Extract single or multiple chapters/sections
Support for nested section extraction using "Chapter##Section" format
Flexible depth control per chapter
Optional file saving with customizable paths
Efficient caching for repeated requests
Usage examples:
Get overview of documentation structure: action: "structure", depth: 2
Extract a complete chapter: action: "extract", chapters: ["Introduction"]
Extract specific sections from multiple chapters: action: "extract", chapters: ["Setup##Installation", "Configuration##Environment Variables", "API##Core Methods"]
Extract with custom depth per chapter: action: "extract", chapters: ["API", "Examples"], chapterDepths: {"API": 4, "Examples": 2}
Save documentation for offline use: action: "extract", chapters: ["Introduction", "Setup", "Configuration"], saveToFile: "save-and-show"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | GitHub repository in 'owner/repo' format (e.g., 'facebook/react') | |
| depth | No | For structure view, how many header levels deep to show (1-4) | |
| action | Yes | 'structure' to see table of contents, 'extract' to get chapter content | |
| chapters | No | Chapter names to extract, can include sections like 'Setup##Installation' | |
| saveToFile | No | 'save-only' returns just file path, 'save-and-show' returns content + saves | |
| saveLocation | No | Custom file path for saving (defaults to ~/.deepwiki-mcp/output/) | |
| chapterDepths | No | Override depth for specific chapters (e.g., {'Introduction': 2, 'API': 3}) |