Allows to extract code from GitHub repositories and provide it as context to Claude
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@@kazuph/mcp-github-pera1 explain the main components in https://github.com/username/project?dir=src"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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)