Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
default_directoryNoWhere to save exported files. Default: ~/.deepwiki-mcp/output~/.deepwiki-mcp/output
allowed_directoriesNoComma-separated list of allowed directories for writing files. Default: ~/.deepwiki-mcp and default_directory~/.deepwiki-mcp
DEEPWIKI_POLL_INTERVALS_DEEPNoPoll intervals in seconds for deep research mode, comma-separated. Default: 180,240,300,420,540,720,900180,240,300,420,540,720,900
DEEPWIKI_POLL_INTERVALS_REGULARNoPoll intervals in seconds for regular mode, comma-separated. Default: 10,15,20,30,45,75,120,180,30010,15,20,30,45,75,120,180,300

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
resources
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
wiki_parserA

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:

  1. Get overview of documentation structure: action: "structure", depth: 2

  2. Extract a complete chapter: action: "extract", chapters: ["Introduction"]

  3. Extract specific sections from multiple chapters: action: "extract", chapters: ["Setup##Installation", "Configuration##Environment Variables", "API##Core Methods"]

  4. Extract with custom depth per chapter: action: "extract", chapters: ["API", "Examples"], chapterDepths: {"API": 4, "Examples": 2}

  5. Save documentation for offline use: action: "extract", chapters: ["Introduction", "Setup", "Configuration"], saveToFile: "save-and-show"

wiki_questionA

A powerful tool for asking questions about GitHub repositories using DeepWiki's AI analysis. This tool provides intelligent answers based on deep codebase analysis, with the ability to retrieve specific code snippets and file contents. DeepWiki's AI examines the entire repository structure, code patterns, and relationships to provide accurate, context-aware answers.

When to use this tool:

  • Understanding how a specific feature or system works in a repository

  • Getting explanations of complex code implementations

  • Finding where specific functionality is implemented

  • Understanding architectural decisions and patterns

  • Retrieving exact code snippets that answer your questions

  • Getting full file contents for detailed analysis

  • Following up on previous questions with cached results

  • Going deeper on existing queries for more detailed analysis

  • Sending follow-up questions to continue conversations

⚠️ Important: Do NOT ask for specific files in new questions (e.g., "show me auth.js"). Instead ask conceptual questions and use queryId to retrieve referenced files.

Key features:

  • Ask natural language questions about any GitHub repository

  • Retrieve exact code snippets that DeepWiki referenced in its answer

  • Get complete file contents or specific line ranges

  • Use cached results for efficient follow-up queries

  • Optional deep research mode for comprehensive analysis (3-15 minutes) - consider running in tmux for background processing

  • Go deeper functionality for existing queries to get more detailed analysis

  • Follow-up questions to continue conversations with existing queries (supports deep research)

  • Save responses to files for documentation or sharing

  • Flexible output control to show only what you need

CRITICAL: Understanding when to use queryId vs new question:

  • USE queryId when: Getting references/files from previous response, asking follow-ups about the same topic, going deeper, sending follow-up questions

  • USE new question when: Asking something completely different, no previous query exists

Usage examples:

  1. Ask a new question: question: "How does the authentication system work?", includeReferencesList: true

  2. Get specific references from previous query: queryId: "query-12345", referencesNumbers: [1, 2], includeAnswer: false

  3. Get full file content from previous query: queryId: "query-12345", contextFiles: ["src/auth/login.ts"], includeAnswer: false

  4. Get specific line ranges: queryId: "query-12345", contextFiles: ["src/index.ts"], contextRanges: {"src/index.ts": {"start": 100, "end": 150}}

  5. Deep research with file saving: question: "Explain the entire data flow architecture", useDeepResearch: true, saveToFile: "save-and-show"

  6. Go deeper on existing query: queryId: "query-12345", goDeeper: true

  7. Send follow-up question (shows only new response): queryId: "query-12345", followUpQuestion: "Can you explain how error handling works?", includeFullConversation: false

  8. Send follow-up with deep research (shows full conversation): queryId: "query-12345", followUpQuestion: "What are the security implications?", useDeepResearch: true, includeFullConversation: true

  9. Get all code snippets without the explanation: queryId: "query-12345", referencesAll: true, includeAnswer: false, includeReferencesList: false

Important notes:

  • referencesNumbers gets the EXACT snippets DeepWiki used (not full files)

  • contextFiles gets COMPLETE file contents (not just snippets)

  • Always check the queryId in responses for follow-up queries

  • Deep research mode provides more comprehensive analysis but takes significantly longer - consider using tmux for background execution

  • goDeeper creates a new query with deeper analysis on existing queries - returns a new queryId

  • followUpQuestion continues existing conversation with same queryId, supports deep research

  • includeFullConversation=false (default) shows only new response; true shows complete conversation

  • Use queryId instead of question when following up on previous responses

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
available-commands

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ai-vivid/deepwiki-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server