Fire in da houseTop Tip:Paying $100+ per month for Perplexity, MidJourney, Runway, ChatGPT and other tools is crazy - get all your AI tools in one site starting at $15 per month with Galaxy AI Fire in da houseCheck it out free

mcp-github-pera1

MCP.Pizza Chef: kazuph

The mcp-github-pera1 is a Model Context Protocol server that integrates GitHub code repositories with Claude.ai by leveraging the Pera1 service. It extracts and filters code from GitHub repos, providing structured, relevant context to Claude for improved code understanding and interaction. Users can specify repository URLs, filter by directories or file extensions, and choose display modes to tailor the code context. This server enables seamless, real-time access to GitHub codebases within AI workflows, enhancing developer productivity and AI-assisted code analysis.

Use This MCP server To

Provide Claude.ai with real-time GitHub code context Filter GitHub repo files by directory or extension Display GitHub repo structure and README files Integrate GitHub code into AI-assisted development workflows Enable AI code review and analysis from GitHub repos

README

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.

@kazuph/mcp-github-pera1 MCP server

Setup

Add the following to your MCP config file (~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "github": {
      "command": "npx",
      "args": ["-y", "@kazuph/mcp-github-pera1"]
    }
  }
}

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., tree shows directory structure and README files only)
  • branch: Specify the branch to fetch from
  • file: Specify a single file to retrieve

Usage Examples

You can ask Claude questions like:

Tell me about the implementation of GitHub repository https://github.com/username/repository

For specific directories:

Explain the components in https://github.com/username/repository?dir=src/components

For a specific file:

Show me the Button component from https://github.com/username/repository?file=src/components/Button.tsx

For directory structure with README files only:

Show me the structure of https://github.com/username/repository?mode=tree

For a specific branch:

Analyze the develop branch of https://github.com/username/repository?branch=develop

License

MIT

Author

kazuph (https://x.com/kazuph)

mcp-github-pera1 FAQ

How do I install the mcp-github-pera1 server?
Add the server configuration to your Claude desktop config file as shown, using 'npx -y @kazuph/mcp-github-pera1'.
What parameters can I use with mcp-github-pera1?
You can specify 'url' for the GitHub repo, 'dir' for directory filters, 'ext' for file extensions, 'mode' for display options, and 'branch' for the repo branch.
Can I filter which files are included from the GitHub repository?
Yes, you can filter files by directory paths and file extensions using the 'dir' and 'ext' parameters.
Does mcp-github-pera1 support different display modes?
Yes, for example, the 'tree' mode shows the directory structure and README files only.
Is this server compatible with other LLM providers besides Claude?
While designed for Claude.ai, the MCP protocol allows integration with other LLMs like OpenAI's GPT-4 and Anthropic's Claude.
How does mcp-github-pera1 improve AI code understanding?
By extracting structured code context from GitHub repos, it provides richer, more relevant information for AI models to analyze and respond to.
Can I specify a branch of the GitHub repository?
Yes, the 'branch' parameter lets you specify which branch to extract code from.
Is there a way to limit the scope of code extraction?
Yes, using directory and extension filters helps limit the code context to relevant files only.