Allows to extract code from GitHub repositories and provide it as context to Claude
GitHub MCP Server for Pera1
A Model Context Protocol server that connects GitHub code to Claude.ai. This server utilizes the Pera1 service to extract code from GitHub repositories and provide better context to Claude.
Setup
Add the following to your MCP config file (~/Library/Application Support/Claude/claude_desktop_config.json):
Now you can ask Claude about GitHub code repositories.
Parameters
url: GitHub repository URL (required)dir: Filter files by directory paths (comma-separated)ext: Filter files by extensions (comma-separated)mode: Display mode (e.g.,treeshows directory structure and README files only)branch: Specify the branch to fetch fromfile: Specify a single file to retrieve
Usage Examples
You can ask Claude questions like:
For specific directories:
For a specific file:
For directory structure with README files only:
For a specific branch:
License
MIT
Author
kazuph (https://x.com/kazuph)