mcp-github-reader-prod

mcp-github-reader-prod

1

MCP GitHub Reader is a server application designed for large language models to access and analyze GitHub repositories using the Model Context Protocol. It features API-based interactions, repository analysis, and file retrieval with smart filtering, supporting efficient integration into language models.

MCP GitHub Reader

A lightweight Model Context Protocol (MCP) server for bringing GitHub repositories into context for large language models.

Features

  • API-based interaction without local cloning
  • Repository overview and statistics
  • File content retrieval and structure analysis
  • Smart filtering using glob and regex patterns
  • Caching to avoid API limits
  • Search files within repositories
  • Compatible with LLMs supporting MCP
  • Ready-to-use prompt templates for repository analysis

Installation

  • Global: npm install -g mcp-github-reader
  • Local: npm install mcp-github-reader

Usage

  • Run as a standalone server:
    • Globally installed: mcp-github-reader
    • Locally installed: npx mcp-github-reader

Available Tools

  1. get_individual_file_content: Retrieve specific file content
  2. get_entire_repo_contents: Retrieve repository content with filters
  3. analyzeRepository: Provide repository statistics
  4. searchRepository: Search files within a repository

Limitations

  • Only supports public GitHub repositories
  • No private repository or authentication support
  • Subject to GitHub API rate limits

License

Apache License 2.0.