@kazuph/mcp-github-pera1
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-pera1explain 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):
{
"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.,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:
Tell me about the implementation of GitHub repository https://github.com/username/repositoryFor specific directories:
Explain the components in https://github.com/username/repository?dir=src/componentsFor a specific file:
Show me the Button component from https://github.com/username/repository?file=src/components/Button.tsxFor directory structure with README files only:
Show me the structure of https://github.com/username/repository?mode=treeFor a specific branch:
Analyze the develop branch of https://github.com/username/repository?branch=developLicense
MIT
Author
kazuph (https://x.com/kazuph)
Available Tools
1 toolgithub_get_codeA
Retrieves code from a GitHub repository URL and combines it into a single file. The URL must start with "https://".
Query Parameters:
dir: Filter files by directory paths (comma-separated) Example: ?dir=src/components,tests/unit
ext: Filter files by extensions (comma-separated) Example: ?ext=ts,tsx,js
mode: Display mode Example: ?mode=tree (Shows directory structure and README files only)
branch: Specify the branch to fetch from (optional) Example: ?branch=feature/new-feature
file: Specify a single file to retrieve (optional) Example: ?file=src/components/Button.tsx
Examples:
For GitHub tree URLs with branch: https://github.com/kazuph/pera1/tree/feature/great-branch This URL will be automatically parsed to extract the branch information.
For specific directory in a branch: url: https://github.com/modelcontextprotocol/servers dir: src/fetch branch: develop
For a single file: url: https://github.com/username/repository file: src/components/Button.tsx
For directory structure with README files only: url: https://github.com/username/repository mode: tree
The tool will correctly parse the repository structure and fetch the files from the specified branch.
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| dir | No | ||
| ext | No | ||
| mode | No | ||
| branch | No | ||
| file | No |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
The description discloses that the tool retrieves and combines code, parses repository structure, and auto-extracts branch from tree URLs. Given no annotations, it covers key behaviors but does not mention rate limits or error handling.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is well-structured with sections for parameters and examples, and the first sentence clearly states the purpose. It is somewhat lengthy but all content is informative.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given no annotations or output schema, the description covers all behaviors: parameter usage, URL parsing, combining files, and example scenarios. It is complete for a read-only code retrieval tool.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Despite 0% schema description coverage, the description thoroughly explains each parameter with formats (e.g., comma-separated for dir/ext) and examples. This fully compensates for the schema's lack of descriptions.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's verb ('retrieves code') and resource ('GitHub repository URL'), and specifies that it combines content into a single file. There are no sibling tools, so no differentiation needed.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides detailed query parameters and multiple examples covering different use cases (tree URLs, directories, single file, tree mode). However, it does not explicitly state when to use this tool versus alternatives, though no siblings exist.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
1 tool update
v1.0.0- First observed
github_get_code
TDQS
Only one tool exists, so there is no risk of confusion between tools.
The single tool follows a consistent verb_noun pattern (github_get_code).
A single tool for code retrieval is very minimal; users might expect additional GitHub operations, making the server feel incomplete.
For the stated purpose of retrieving code from a GitHub repository, the tool covers key needs with filtering by directory, extension, branch, and single file, as well as a tree mode. Minor gap: no support for private repos or authentication details in the description.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
An MCP server that gives your AI access to the source code and docs of all public github repos
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
A Model Context Protocol (MCP) application for automated GitHub PR analysis and issue management.…
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables AI assistants like Claude to interact with GitHub repositories, issues, and pull requests.17MIT
- AlicenseNot gradedqualityDmaintenanceModel Context Protocol server that enables Claude to retrieve and analyze code from GitHub repositories through the uithub API.1421MIT
- FlicenseNot gradedqualityNot gradedmaintenanceA Model Context Protocol server that provides comprehensive GitHub integration for Claude Desktop, allowing users to manage repositories, issues, and pull requests. It supports file operations, branch management, and repository searches through natural language commands.467-
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol (MCP) server that enables AI assistants like Claude to interact with the GitHub API directly.48MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/kazuph/mcp-github-pera1'
If you have feedback or need assistance with the MCP directory API, please join our Discord server