GitHub MCP Server
GitHub MCP Server 🚀
Node.js と TypeScript で構築されたカスタム Model Context Protocol (MCP) サーバーです。このサーバーにより、MCP 互換の AI アシスタント(Gemini Code Assist、Claude Desktop、Roo Code など)が GitHub アカウントと直接やり取りできるようになります。
✨ 機能(利用可能なツール)
このサーバーは、AI アシスタントに 7 つの強力なツールを提供します:
create_repository: 新しい公開または非公開のリポジトリを作成します。get_my_repositories: 認証済みユーザーの最近更新されたリポジトリを一覧表示します。get_repository: 特定のリポジトリの詳細を取得します。get_file_content: コード分析のために、リポジトリ内の任意のファイルの正確な内容を読み取ります。search_code: リポジトリ全体で関数、キーワード、構文を検索します。create_issue: 特定のリポジトリに新しい issue を開きます。list_issues: リポジトリのオープンな issue を表示します。
Related MCP server: GitHub MCP Server
🛠️ インストールとセットアップ
リポジトリをクローンします:
git clone [https://github.com/YOUR_USERNAME/mcp-github-server.git](https://github.com/YOUR_USERNAME/mcp-github-server.git) cd mcp-github-server Install dependencies:
Bash npm install プロジェクトをビルドします:
Bash npm run build
🔑 GitHub トークンの取得方法
このサーバーがあなたの代わりに動作するには、GitHub から Personal Access Token (PAT) が必要です。
GitHub アカウントの設定に移動します。
左サイドバーの下部にある「Developer settings」に移動します。
「Personal access tokens」→「Tokens (classic)」をクリックします。
「Generate new token (classic)」をクリックします。
トークンにメモを付けます(例:「MCP Server」)。
必要なスコープ:
「repo」ボックスにチェックを入れます(これにより、プライベートリポジトリの完全な制御が許可され、リポジトリの作成、ファイルの読み取り、issue の管理に必要です)。
下にスクロールして「Generate token」をクリックします。
トークンをすぐにコピーします(ghp_... で始まります)。
環境の設定 このプロジェクトのルートディレクトリに .env ファイルを作成します:
Bash touch .env トークンを .env ファイルに追加します:
مقتطف الرمز GITHUB_TOKEN=your_generated_token_here 🔌 IDE / AI クライアントへの接続 MCP 対応の IDE または拡張機能でこのサーバーを使用するには、クライアントの MCP 設定(通常は mcp.json または mcp_config.json ファイル)を、ビルドされた index.js ファイルを指すように構成する必要があります。
設定例:
JSON { "mcpServers": { "github-mcp": { "command": "node", "args": [ "--no-warnings", "ABSOLUTE_PATH_TO_YOUR_PROJECT/dist/index.js" ], "env": { "GITHUB_TOKEN": "your_generated_token_here" } } } }
注:ABSOLUTE_PATH_TO_YOUR_PROJECT を、お使いのマシン上の実際のパスに置き換えてください。
🤝 コントリビューション これは小さな教育用プロジェクトです! さらに多くのツール(プルリクエスト管理やコミット読み取りなど)を追加したい場合は、リポジトリをフォークしてプルリクエストを送信してください。
This server cannot be deployed
Maintenance
Related MCP Connectors
An MCP server that gives your AI access to the source code and docs of all public github repos
Driflyte MCP server which lets AI assistants query topic-specific knowledge from web and GitHub.
Create, deploy, and operate MCP servers directly from your GitHub repositories.
An MCP server that integrates with Discord to provide AI-powered features.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that wraps around the GitHub CLI tool, allowing AI assistants to interact with GitHub repositories through commands for pull requests, issues, and repository operations.15 npmMIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that enables AI agents to directly manage GitHub repositories, including PRs, issues, and code search, using natural language.MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that provides tools for interacting with the GitHub API, enabling AI assistants to query repositories, pull requests, issues, commits, users, and more.470 npmISC
- AlicenseAqualityDmaintenanceMCP server that enables AI assistants to look up and analyze GitHub repositories, including stars, forks, description, open issues, and README content.243 npmMIT