gh-mcp-server
If you are the rightful owner of gh-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.
This Model Context Protocol (MCP) server allows AI models to access GitHub repository contents as context.
The GitHub Repository MCP Server is designed to facilitate AI models in accessing and utilizing GitHub repository contents as context. It provides a suite of tools that enable fetching of file contents, repository structures, and entire repositories. This server is particularly useful for AI interactions that require contextual information from code repositories. By leveraging the GitHub API, the server can retrieve specific files, list repository structures, and filter files based on extensions or exclude certain paths. The server is built to handle both authenticated and unauthenticated requests, with the latter being subject to stricter rate limits. Users can increase their request limits by setting up GitHub authentication using a personal access token. The server is compatible with various platforms and can be integrated with AI models that support the MCP protocol.
Features
- Fetch entire repository contents as context
- Get specific file contents from a repository
- Get repository structure (file listing)
- Filter files by extension
- Exclude specific paths
Tools
get-repo-context
Get all files from a GitHub repository to use as context
get-file-content
Get content of a specific file from a GitHub repository
get-repo-structure
Get the structure of a GitHub repository