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 を表示します。
🛠️ インストールとセットアップ
リポジトリをクローンします:
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 installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
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.
An MCP server that integrates with Discord to provide AI-powered features.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/amedmohmed925/MCP-Server-to-Github'
If you have feedback or need assistance with the MCP directory API, please join our Discord server