Skip to main content
Glama

GitHub DeepWiki MCP Server

GitHub DeepWiki MCP Server

Q: これは結局何なの?

A: 本家deepwikiがリポジトリオーナー/リポジトリ名入力であるせいでなかなかLLMが使用してくれない問題を解決するためにリポジトリURLで呼び出せるようにしたやつ。ついでにREADMEも取得できる。

A comprehensive GitHub repository documentation server built with FastMCP.

This MCP server provides detailed GitHub repository information by integrating with mcp.deepwiki.com and GitHub API to fetch repository wiki content, README files, and enable intelligent question-answering about repositories.

Features

  • Comprehensive Repository Analysis: Fetches wiki information, README files, and architectural details
  • Intelligent Q&A: Ask detailed questions about repositories and get structured answers
  • Multi-source Integration: Combines data from mcp.deepwiki.com and GitHub API
  • Structured Output: Organizes repository information in a readable format
  • Fallback Support: Works even when wiki or README information is partially unavailable

Development

To get started, clone the repository and install the dependencies.

git clone https://github.com/kongyo2/github-deepwiki-mcp-server.git cd github-deepwiki-mcp-server npm install npm run dev

Usage

Start the server

If you simply want to start the server, you can use the start script.

npm run start

However, you can also interact with the server using the dev script.

npm run dev

This will start the server and allow you to interact with it using CLI.

Available Tools

The server provides two main tools:

  • get-github-wiki: Retrieves comprehensive GitHub repository wiki information and README files
    • repoUrl (required): GitHub repository URL (e.g., https://github.com/facebook/react)
  • ask-github-question: Ask detailed questions about GitHub repositories
    • repoUrl (required): GitHub repository URL
    • question (required): Detailed question about the repository (include context, background, and specific requirements)

Available Resources

  • DeepWiki MCP Server Information: General server information and usage guidelines

Available Prompts

  • github-analysis: Template for analyzing GitHub repositories
    • repoUrl (required): GitHub repository URL
    • analysisType (optional): Type of analysis (architecture, features, tech stack, etc.)

Testing

# Unit tests npm test # MCP Inspector CLI integration tests npm run test:inspector

The unit tests verify URL validation, success/failure cases, error handling, and formatting. The MCP Inspector CLI tests verify actual server functionality including tool listings, resource reading, and real tool execution.

Linting

Having a good linting setup reduces the friction for other developers to contribute to your project.

npm run lint

This project uses Prettier, ESLint and TypeScript ESLint to lint the code.

Formatting

Use npm run format to format the code.

npm run format

External Service Integration

This server integrates with the following external services:

mcp.deepwiki.com

Connects via HTTP Streamable transport to access:

  • read_wiki_structure: Repository documentation structure
  • read_wiki_contents: Detailed wiki content
  • ask_question: Repository question-answering

GitHub API

Uses GitHub REST API v3 to fetch:

  • README files (README.md, README, readme.md, readme)
  • Repository metadata and structure
  • Rate limit: 60 requests per hour for public repositories

Configuration

The server is designed to work out of the box with no configuration required. It dynamically fetches content from both mcp.deepwiki.com and GitHub API.

Technical Stack

  • FastMCP: MCP server framework
  • TypeScript: Type safety and code quality
  • Zod: Schema validation
  • Vitest: Testing framework
  • ESLint + Prettier: Code quality management

How to use with Claude Desktop?

Follow the guide https://modelcontextprotocol.io/quickstart/user and add the following configuration:

{ "mcpServers": { "github-deepwiki": { "command": "npx", "args": ["tsx", "/PATH/TO/YOUR_PROJECT/src/server.ts"], } } }
-
security - not tested
A
license - permissive license
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

This MCP server provides detailed GitHub repository information by integrating with mcp.deepwiki.com and GitHub API to fetch repository wiki content, README files, and enable intelligent question-answering about repositories.

  1. Q: これは結局何なの?
    1. Features
      1. Development
        1. Usage
          1. Start the server
          2. Available Tools
          3. Available Resources
          4. Available Prompts
          5. Testing
          6. Linting
          7. Formatting
        2. External Service Integration
          1. mcp.deepwiki.com
          2. GitHub API
        3. Configuration
          1. Technical Stack
            1. How to use with Claude Desktop?

              Related MCP Servers

              • A
                security
                A
                license
                A
                quality
                MCP Server for the GitHub API, enabling file operations, repository management, search functionality, and more.
                Last updated -
                17
                22,573
                66,043
                MIT License
              • A
                security
                F
                license
                A
                quality
                MCP Server for the GitHub API, providing features for file operations, repository management, and advanced search, with automatic branch creation and comprehensive error handling.
                Last updated -
                18
                1
                4
                • Linux
                • Apple
              • A
                security
                A
                license
                A
                quality
                A MCP server that provides access to GitHub trending repositories and developers data through a simple API interface.
                Last updated -
                2
                29
                MIT License
                • Apple

              View all related MCP servers

              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/kongyo2/github-deepwiki-mcp-server'

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