Skip to main content
Glama

GitHub Repository Analyzer

by jar285

GitHub リポジトリ アナライザー MCP サーバー

大規模言語モデルによるGitHubリポジトリのリアルタイム分析を可能にするモデルコンテキストプロトコル(MCP)サーバー。このサーバーは、リポジトリ情報の取得、問題の分析、ドキュメントへのアクセス、アクティビティの可視化のためのツールを提供します。

特徴

  • リポジトリ情報ツール: GitHub リポジトリに関する基本的なメタデータを取得します
  • 問題分析ツール: リポジトリの問題を一覧表示して分類する
  • README アクセスリソース: アクセスリポジトリのドキュメント
  • コミット履歴ツール:最近のコード変更を分析する
  • アクティビティ分析ツール: リポジトリアクティビティメトリックを計算する
  • 可視化ツール: リポジトリのアクティビティを視覚的に表すチャートを作成する

前提条件

  • Python 3.10以上
  • GitHubアカウントと個人アクセストークン

インストール

  1. このリポジトリをクローンします:
git clone <repository-url> cd github-repo-analyzer
  1. 仮想環境を作成してアクティブ化します。
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
  1. 依存関係をインストールします:
pip install -r requirements.txt
  1. GitHub API トークンを使用して.envファイルを作成します。
cp .env.example .env

.envファイルを編集し、 your_github_token_here実際の GitHub 個人アクセス トークンに置き換えます。

使用法

サーバーの実行

MCP インスペクターを使用して開発モードでサーバーを起動するには:

mcp dev src/server.py

これにより、ブラウザに Web インターフェイスが開き、サーバーのツールをテストできるようになります。

Claude Desktopへの登録

サーバーをClaude Desktopに登録するには:

mcp install src/server.py

登録後、Claude Desktopを再起動してください。GitHubリポジトリに関する質問をClaudeに送ることで、GitHubリポジトリアナライザーとやり取りできるようになります。

クロードの例題

  • 「GitHub リポジトリ 'modelcontextprotocol/python-sdk' を分析して、その目的とアクティビティ レベルについて教えていただけますか?」
  • 「'openai/openai-python' リポジトリで未解決の問題のトップ 5 は何ですか?」
  • 「'anthropics/anthropic-sdk-python' リポジトリは過去 30 日間でどの程度アクティブでしたか?」
  • 「'microsoft/TypeScript' リポジトリの README を読んで、その主な機能について説明してください。」
  • 「過去 60 日間の 'facebook/react' のコミット アクティビティを示すグラフを生成します。」

発達

プロジェクト構造

github-repo-analyzer/ ├── src/ │ ├── github_tools.py # GitHub API client implementation │ └── server.py # MCP server implementation ├── requirements.txt # Dependencies ├── .env.example # Example environment variables ├── .gitignore # Git ignore file └── README.md # Project documentation

新しいツールの追加

サーバーに新しいツールを追加するには、次の手順に従います。

  1. github_tools.pyGitHubAPIClientクラスに必要な機能を追加します。
  2. @server.toolデコレータを使用して、 server.pyでツールを MCP サーバーに登録します。
  3. MCP Inspectorを使用してツールをテストする

テスト

サーバーをテストするには、「使用方法」セクションの説明に従ってMCP Inspectorを使用してください。GitHub APIクライアント機能のユニットテストを作成することもできます。

セキュリティに関する考慮事項

  • GitHub APIトークンをバージョン管理にコミットしないでください
  • GitHubトークンに必要な最小限のスコープを使用する
  • GitHub APIのレート制限に注意してください

ライセンス

MITライセンス

-
security - not tested
F
license - not found
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

大規模言語モデルが GitHub リポジトリをリアルタイムで分析できるようにし、リポジトリ情報の取得、問題の分析、ドキュメントへのアクセス、アクティビティの視覚化を行うツールを提供します。

  1. 特徴
    1. 前提条件
      1. インストール
        1. 使用法
          1. サーバーの実行
          2. Claude Desktopへの登録
          3. クロードの例題
        2. 発達
          1. プロジェクト構造
          2. 新しいツールの追加
        3. テスト
          1. セキュリティに関する考慮事項
            1. ライセンス

              Related MCP Servers

              • A
                security
                F
                license
                A
                quality
                Provides tools for mapping and analyzing GitHub repositories. It allows users to set a GitHub Personal Access Token and retrieve detailed information about a specified repository, including its structure and summary statistics.
                Last updated -
                2
                17
                TypeScript
              • -
                security
                F
                license
                -
                quality
                Enables interaction with GitHub through the GitHub API, supporting file operations, repository management, advanced search, and issue tracking with comprehensive error handling and automatic branch creation.
                Last updated -
                9
                1
                TypeScript
              • -
                security
                F
                license
                -
                quality
                Provides integration with Github through the Model Context Protocol (MCP), allowing Large Language Models to interact with Github's repositories, issues, pull requests and search functionality.
                Last updated -
                1
                TypeScript
                • Apple
              • -
                security
                F
                license
                -
                quality
                Enables comprehensive GitHub operations through natural language including file management, repository administration, issue tracking, and advanced code searching.
                Last updated -
                22,573
                1
                TypeScript

              View all related MCP servers

              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/jar285/github_mcp_analyzer'

              If you have feedback or need assistance with the MCP directory API, please join our Discord server