Skip to main content
Glama

GitHub MCP Server

by ualUsham

GitHub MCP(モデルコンテキストプロトコル)サーバー

こんにちは!これは、Claude などの MCP 互換 LLM が MCP サーバーと通信し、GitHub API と対話できるように設計された GitHub MCP サーバーです。

要件

  • TypeScript(プログラミング言語)
  • Octokit(GitHubへのAPIリクエストを行うため)
  • モデルコンテキストプロトコルSDK

プロジェクトをローカルに設定する

  1. リポジトリをクローンする
  2. npm install実行する
  3. .env.exampleファイルで提供されているサンプルを参考にして.envファイルを追加します。
  4. TypeScriptファイルをJavascriptにビルドするには、 npx tscを実行します。
  5. 最後にプロジェクトを実行するには、 node build/index.jsを実行します。

テスト方法

MCP サーバーは 2 つの方法でテストできます。

  • MCP検査官
  • クロードデスクトップ

MCPインスペクターを使用したテスト

  1. ターミナルでnpx @modelcontextprotocol/inspector node build/index.js実行するだけです。
  2. http://localhost:5173にアクセスします。
  3. MCP インスペクターとテストが表示されるようになりました。

Claude Desktopを使用したテスト

  1. ここからClaude Desktopをダウンロードしてインストールします
  2. ファイル > 設定... > 開発者 > 設定の編集に移動します
  3. claude_desktop_config.json ファイルの場所が開くはずです。
  4. コード エディターでそのファイルを開き、次のコードを追加します。
    { "mcpServers": { "gh": { "command": "node", "args": ["absolute\\path\\to\\your\\index.js\\file"], "env": { "GITHUB_TOKEN": "your-github-personal-access-token" } } } }
  5. Claudeデスクトップを終了して再度開きます

機能

MCP は主に次の2 つの機能をサポートします。

  • ツール (4)
    • create-issue : GitHubリポジトリに新しい問題を作成する
    • get-repo-info : 特定の GitHub リポジトリに関する情報を取得する
    • list-issues : GitHub リポジトリ内の問題を一覧表示する
    • search-repos : GitHubリポジトリを検索する
  • プロンプト (5)
    • create-issue-description : GitHub の問題の説明を生成する
    • create-pull-request-description : GitHub プルリクエストの説明を生成する
    • search-repos-prompt : GitHubリポジトリを検索するためのクエリを生成する
    • create-issue-prompt : GitHub の問題を作成するためのパラメータを生成する
    • enhance-github-response : 生の GitHub API レスポンスデータをフォーマットして強化する

独自のプロンプトを作成することも、Claude デスクトップの MCP の「統合を選択」オプションのドロップダウンから適切なプロンプトを選択することもできます。

-
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.

Claude やその他の互換性のある LLM が GitHub API と対話できるようにし、問題の作成、リポジトリ情報の取得、問題の一覧表示、リポジトリの検索などの機能をサポートする MCP サーバーです。

  1. 要件
    1. プロジェクトをローカルに設定する
    2. テスト方法
    3. MCPインスペクターを使用したテスト
    4. Claude Desktopを使用したテスト
    5. 機能

Related MCP Servers

  • A
    security
    F
    license
    A
    quality
    MCP Server for the GitHub API, providing features for file operations, repository management, and advanced search, with automatic branch creation and comprehensive error handling.
    Last updated -
    18
    4
    3
    TypeScript
    • Linux
    • Apple
  • -
    security
    A
    license
    -
    quality
    An MCP server that enables clients to extract LLM-friendly prompts from documentation in GitHub repositories or hosted websites.
    Last updated -
    Python
    Apache 2.0
  • -
    security
    -
    license
    -
    quality
    An 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 -
    TypeScript
  • A
    security
    F
    license
    A
    quality
    An MCP server that enables integration with GitHub Enterprise API, allowing users to access repository information, manage issues, pull requests, workflows, and other GitHub features through Cursor.
    Last updated -
    16
    33
    14
    TypeScript
    • Linux
    • Apple

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

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