Skip to main content
Glama

GitHub MCP Server

GitHub MCP サーバー

概要

GitHub MCP Serverは、MCP(Modular Command Processor)フレームワークを使用してGitHubと連携するAPIベースのツールです。GitHubのREST APIを使用して、ユーザーの詳細、リポジトリ情報、認証済みユーザーデータを取得するなど、さまざまな機能を提供します。

このプロジェクトはPythonで構築されており、非同期API呼び出しにはhttpxを利用しています。また、GitHub認証トークンの安全な処理にはdotenv使用しています。

特徴

  • ユーザー名で GitHub ユーザー情報を取得します。
  • GitHub リポジトリの詳細を取得します。
  • GitHub 個人アクセス トークンを使用して認証されたユーザーの詳細を取得します。
  • モジュラー コマンド処理にFastMCPを利用します。

プロジェクト構造

D:/MCP_Project/ |----.env │----.gitignore │----claude_desktop_config.json (Create this file in C:\Users\your_username\AppData\Roaming\Claude\) │----main.py │----pyproject.toml │----README.md │----requirements.txt
  • main.py : GitHub MCP サーバーのコアロジック。
  • .env : 環境変数 (例: GitHub トークン) を保存します。
  • claude_desktop_config.json : MCP サーバーを実行するための構成。
  • requirements.txt : 必要な依存関係をリストします。
  • explanation_video.mp4 : プロジェクトを説明するビデオ。

セットアップ手順

前提条件

  • Python >=3.10
  • GitHub 個人アクセス トークン (認証されたリクエスト用)
  • 仮想環境管理のためのcondaまたはvenv

セットアップと使用方法

  1. リポジトリのクローンを作成する
    git clone https://github.com/DivyanshKushwaha/GitHub-MCP-Server-Claude.git cd GitHub-MCP-Server-Claude
  2. Python環境を作成する
python -m venv venv source venv/bin/activate
  1. 依存関係をインストールする
pip install -r requirements.txt
  1. 環境変数を設定する(.env ファイルを作成する)
GITHUB_TOKEN=your_personal_access_token
  1. claude_desktop_config.json を設定する
{ "mcpServers": { "MCP_Server": { "command": "my_env/Scripts/uv", "args": [ "run", "D:/MCP_Project/main.py" ] } } }
  • command キーは、conda 環境にある uv スクリプトへのパスを指定します。これはサーバーの実行に使用されます。
  • args キーは、UV スクリプトに追加の引数を提供します。
    • "run": サーバーを実行するアクションを示します。
    • my_env : Python 環境 'my_env'
    • 「D:/MCP_Project/main.py」: MCP サーバーの実装が含まれる main.py スクリプトへのパスを指定します。
  1. Claudeデスクトップアプリケーションを起動する
  • Claude デスクトップ アプリケーションを開きます。
  • claude_desktop_config.json ファイルで設定された MCP サーバーを使用して、データを取得および処理します。
-
security - not tested
F
license - not found
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

Claude の自然言語コマンドを通じて、GitHub の REST API との対話を可能にし、ユーザーの詳細、リポジトリ情報、認証されたユーザー データを取得できるモジュール式のコマンド プロセッサ サーバーです。

  1. 概要
    1. 特徴
      1. プロジェクト構造
        1. セットアップ手順
          1. 前提条件
          2. セットアップと使用方法

        Related MCP Servers

        • A
          security
          A
          license
          A
          quality
          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.
          Last updated -
          1
          31
          1
          JavaScript
          MIT License
          • Apple
        • -
          security
          A
          license
          -
          quality
          A server that allows AI assistants to browse and read files from specified GitHub repositories, providing access to repository contents via the Model Context Protocol.
          Last updated -
          3
          JavaScript
          MIT License
          • Apple
        • A
          security
          F
          license
          A
          quality
          A Model Context Protocol server that enables AI models to interact with GitHub's API, allowing for repository creation and management with descriptions, topics, and website URLs through natural language commands.
          Last updated -
          1
          JavaScript
        • -
          security
          F
          license
          -
          quality
          A Model Context Protocol server that enables AI assistants like Claude to interact with GitHub repositories, issues, and pull requests.
          Last updated -
          129
          Python

        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/DivyanshKushwaha/GitHub-MCP-Server-Claude'

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