Skip to main content
Glama

GitHub MCP Server

by timbuchinger

GitHub MCP サーバー

Cline を通じて GitHub の問題と対話するための Model Context Protocol (MCP) サーバー実装。

特徴

  • リポジトリからGitHubの問題を一覧表示する
  • 新しいGitHubの問題を作成する
  • エラー処理と検証
  • 環境変数による安全な認証

インストール

  1. リポジトリをクローンします。
git clone https://github.com/timbuchinger/mcp-github.git cd mcp-github
  1. uv を使用して依存関係をインストールします。
pip install uv uv venv source .venv/bin/activate # On Windows: .venv\Scripts\activate uv pip install -r requirements.txt
  1. 環境テンプレートをコピーし、GitHub トークンを設定します。
cp .env.template .env

.envを編集し、GitHub 個人アクセス トークンを追加します。

GITHUB_TOKEN=your_token_here

GitHub 個人アクセス トークンを作成するには:

  1. GitHubの設定 -> 開発者設定 -> 個人アクセストークンに移動します
  2. repoスコープで新しいトークンを生成する
  3. トークンをコピーして.envファイルに貼り付けます

使用法

MCP サーバーを実行します。

python -m src.mcp_github.server

サーバーが起動し、2 つのツールが Cline に公開されます。

get_issues

GitHub リポジトリから問題のリストを取得します。

{ "repo": "owner/repo" }

問題作成

GitHub リポジトリに新しい問題を作成します。

{ "repo": "owner/repo", "title": "Issue title", "body": "Issue description" }

エラー処理

サーバーは一般的なエラーを処理します。

  • GitHubトークンがありません
  • リポジトリ名が無効です
  • 必要なパラメータが不足しています
  • GitHub APIエラー

エラー応答には、問題のトラブルシューティングに役立つ説明メッセージが含まれます。

発達

このプロジェクトでは依存関係の管理にUVを使用しています。開発環境をセットアップするには、以下の手順に従ってください。

# Install all dependencies (including dev dependencies) uv pip install -r requirements.txt # Run tests pytest # Format code black . # Type checking mypy .
-
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. get_issues
        2. 問題作成
      2. エラー処理
        1. 発達

          Related MCP Servers

          • -
            security
            F
            license
            -
            quality
            Enables management of development projects with GitHub integration, facilitating project tracking, repository linking, and metadata maintenance within the Model Context Protocol.
            Last updated -
            3
          • 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 -
          • -
            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 -
            695
            2
            • Apple
          • -
            security
            F
            license
            -
            quality
            A Model Context Protocol server that supports remote connections and authenticates users via GitHub OAuth, allowing them to access tools based on their GitHub identity.
            Last updated -

          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/timbuchinger/mcp-github'

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