GitHub MCP サーバー
概要
GitHub MCP Serverは、MCP(Modular Command Processor)フレームワークを使用してGitHubと連携するAPIベースのツールです。GitHubのREST APIを使用して、ユーザーの詳細、リポジトリ情報、認証済みユーザーデータを取得するなど、さまざまな機能を提供します。
このプロジェクトはPythonで構築されており、非同期API呼び出しにはhttpxを利用しています。また、GitHub認証トークンの安全な処理にはdotenv使用しています。
特徴
ユーザー名で GitHub ユーザー情報を取得します。
GitHub リポジトリの詳細を取得します。
GitHub 個人アクセス トークンを使用して認証されたユーザーの詳細を取得します。
モジュラー コマンド処理に
FastMCPを利用します。
プロジェクト構造
main.py: GitHub MCP サーバーのコアロジック。.env: 環境変数 (例: GitHub トークン) を保存します。claude_desktop_config.json: MCP サーバーを実行するための構成。requirements.txt: 必要な依存関係をリストします。explanation_video.mp4: プロジェクトを説明するビデオ。
セットアップ手順
前提条件
Python >=3.10
GitHub 個人アクセス トークン (認証されたリクエスト用)
仮想環境管理のための
condaまたはvenv
セットアップと使用方法
リポジトリのクローンを作成する
git clone https://github.com/DivyanshKushwaha/GitHub-MCP-Server-Claude.git cd GitHub-MCP-Server-ClaudePython環境を作成する
依存関係をインストールする
環境変数を設定する(.env ファイルを作成する)
claude_desktop_config.json を設定する
command キーは、conda 環境にある uv スクリプトへのパスを指定します。これはサーバーの実行に使用されます。
args キーは、UV スクリプトに追加の引数を提供します。
"run": サーバーを実行するアクションを示します。
my_env : Python 環境 'my_env'
「D:/MCP_Project/main.py」: MCP サーバーの実装が含まれる main.py スクリプトへのパスを指定します。
Claudeデスクトップアプリケーションを起動する
Claude デスクトップ アプリケーションを開きます。
claude_desktop_config.json ファイルで設定された MCP サーバーを使用して、データを取得および処理します。
This server cannot be installed
Related Resources
Related MCP Servers
- -securityFlicense-qualityA Model Context Protocol server that enables AI assistants like Claude to interact with GitHub repositories, issues, and pull requests.Last updated -9
- AsecurityFlicenseAqualityAn MCP server that enables Claude and other compatible LLMs to interact with the GitHub API, supporting features like creating issues, retrieving repository information, listing issues, and searching repositories.Last updated -4
- AsecurityFlicenseAqualityAn MCP server that allows Claude and other MCP-compatible LLMs to interact with the GitHub API, supporting features like creating issues, getting repository information, listing issues, and searching repositories.Last updated -4
- -securityAlicense-qualityAn MCP server that enables AI assistants like Claude to help users manage their GitHub notifications through natural language commands.Last updated -116MIT License