Pera1 用 GitHub MCP サーバー
GitHubコードをClaude.aiに接続するモデルコンテキストプロトコルサーバー。このサーバーはPera1サービスを利用してGitHubリポジトリからコードを抽出し、Claudeに適切なコンテキストを提供します。
設定
MCP 構成ファイル ( ~/Library/Application Support/Claude/claude_desktop_config.json ) に次の内容を追加します。
{
"mcpServers": {
"github": {
"command": "npx",
"args": ["-y", "@kazuph/mcp-github-pera1"]
}
}
}
これで、Claude に GitHub コード リポジトリについて質問できるようになりました。
パラメータ
url: GitHubリポジトリのURL(必須)dir: ディレクトリパス(カンマ区切り)でファイルをフィルタリングするext: 拡張子でファイルをフィルタリングする(カンマ区切り)mode: 表示モード (例:treeディレクトリ構造と README ファイルのみを表示します)branch: 取得するブランチを指定するfile: 取得するファイルを1つ指定する
使用例
クロードに次のような質問をすることができます:
Tell me about the implementation of GitHub repository https://github.com/username/repository
特定のディレクトリの場合:
Explain the components in https://github.com/username/repository?dir=src/components
特定のファイルの場合:
Show me the Button component from https://github.com/username/repository?file=src/components/Button.tsx
README ファイルのみを含むディレクトリ構造の場合:
Show me the structure of https://github.com/username/repository?mode=tree
特定のブランチの場合:
Analyze the develop branch of https://github.com/username/repository?branch=develop
ライセンス
マサチューセッツ工科大学
著者
カズフ( https://x.com/kazuph )