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
- Globally installed:
Available Tools
get_individual_file_content
: Retrieve specific file contentget_entire_repo_contents
: Retrieve repository content with filtersanalyzeRepository
: Provide repository statisticssearchRepository
: 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.