Integrates with the GitHub API to provide file browsing, content retrieval, and directory navigation capabilities for an...
Created byApr 23, 2025
MCP GitHub Repository Server
An MCP (Model Context Protocol) server that provides access to GitHub repository contents. This server allows AI assistants to browse and read files from specified GitHub repositories.
Demo

Features
Resources
Access any file in a GitHub repository via URI
List repository contents and navigate directories
Support for branch-specific file access
File contents are served as plain text
Resource URIs
Base URL format: `https://api.github.com/repos/{owner}/{repo}/contents/{path}`
Supports both files and directories
Files are served with `text/plain` MIME type
Directories are served with `application/x-directory` MIME type
Configuration
The server requires the following environment variables:
Development
Install dependencies:
Build the server:
For development with auto-rebuild:
Installation
To use with Claude Desktop, add the server configuration: