Skip to main content
Glama

GitHub MCP Server

by Jehan26

MCP インスペクター v0.6.0

GitHub MCP サーバー

Claude のような AI アシスタントが GitHub リポジトリ、問題、プル リクエストと対話できるようにする Model Context Protocol (MCP) サーバー。

特徴

  • リポジトリ検索: 検索クエリに基づいて GitHub リポジトリを検索します
  • 問題管理: 問題を取得、作成、コメントする
  • プルリクエストの処理: プルリクエストの表示と管理
  • リポジトリ分析: リポジトリに関する統計情報と洞察を取得します

インストール

前提条件

  • Python 3.8以上
  • GitHub APIトークン

手順

  1. このリポジトリをクローンします:
    git clone https://github.com/yourusername/github-mcp-server.git cd github-mcp-server
  2. 依存関係をインストールします:
    pip install -r requirements.txt
  3. GitHub トークンを環境変数として設定します。
    export GITHUB_TOKEN=your_github_token_here
  4. サーバーを実行します。
    python server.py

サーバーはhttp://localhost:5000で実行を開始します。

使用法

エンドポイント

MCP サーバーは次のエンドポイントを提供します。

  • GET /mcp/discover : 利用可能な操作とそのパラメータを返します
  • POST /mcp/execute : 指定されたパラメータに基づいて操作を実行します。

リクエストの例

発見
curl -X GET http://localhost:5000/mcp/discover
リポジトリ検索を実行する
curl -X POST http://localhost:5000/mcp/execute \ -H "Content-Type: application/json" \ -d '{ "endpoint": "search_repositories", "parameters": { "query": "machine learning" } }'
リポジトリの問題を取得する
curl -X POST http://localhost:5000/mcp/execute \ -H "Content-Type: application/json" \ -d '{ "endpoint": "get_repo_issues", "parameters": { "owner": "openai", "repo": "whisper" } }'

建築

サーバーはモデルコンテキストプロトコル仕様に準拠しており、AI アシスタントが次のことを実行できるようにします。

  1. 利用可能な操作を見つける
  2. 適切なパラメータで操作を実行する
  3. 構造化された形式で結果を処理し、返す

サーバーの拡張

このサーバーは次の方法で拡張できます。

  1. discover()関数に新しいエンドポイントを追加する
  2. 対応するハンドラー関数の実装
  3. execute()関数内のルーティングの更新

セキュリティに関する考慮事項

  • サーバーはGitHubでの認証にAPIトークンを使用します
  • 不正使用を防ぐためにレート制限を実装する
  • すべてのパラメータに入力検証を追加する
  • より安全なトークン管理のためにOAuthの実装を検討してください

デモ

サーバーの機能の詳細については、デモ ビデオをご覧ください。

ライセンス

MITライセンス

接触

ご質問やサポートについては、このリポジトリで問題を開いてください。

-
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 のような AI アシスタントが GitHub リポジトリ、問題、プル リクエストと対話できるようにするモデル コンテキスト プロトコル サーバー。

  1. GitHub MCP サーバー
    1. 特徴
    2. インストール
    3. 使用法
    4. 建築
    5. サーバーの拡張
    6. セキュリティに関する考慮事項
    7. デモ
    8. ライセンス
    9. 接触

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
  • -
    security
    A
    license
    -
    quality
    A Model Context Protocol server that enables AI agents to retrieve and understand entire codebases at once, providing tools to analyze local workspaces or remote GitHub repositories.
    Last updated -
    9
    TypeScript
    MIT License
    • Linux
    • 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

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/Jehan26/MCP-Inspector-v0.6.0'

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