gh-mcp-server
2
The GitHub Repository MCP Server allows AI models to access and use GitHub repository contents as context. It provides tools to fetch the repository structure, entire contents, or specific files, enhancing AI interactions with structured data.
GitHub Repository MCP Server
This Model Context Protocol (MCP) server enables AI models to access GitHub repository contents for use as context. It provides tools for retrieving file contents, repository structure, and full repositories.
Features
- Fetch entire repository contents
- Retrieve specific file contents
- Access repository structure
- Filter files by extension
- Exclude specific paths
- Limit number of files returned
Usage
- Set up GitHub Authentication to increase API limits
- Use with Cursor by adding as a new MCP Server
Available Tools
- get-repo-context: Retrieve all files from a repository
- get-file-content: Get specific file content
- get-repo-structure: Fetch the structure of a repository