GitHub MCP Server

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
-
license - not tested
-
quality - not tested

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

  1. Requirements
    1. Setup the project locally
    2. Ways to test
    3. Test using MCP inspector
    4. Test using Claude Desktop
    5. Functionalities

Related MCP Servers

  • A
    security
    A
    license
    A
    quality
    MCP Server for the GitHub API, enabling file operations, repository management, search functionality, and more.
    Last updated -
    17
    36,796
    41,457
    JavaScript
    MIT License
  • 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
    1
    TypeScript
  • -
    security
    F
    license
    -
    quality
    An MCP server that enables Claude and other compatible LLMs to interact with the GitHub API, supporting features like creating issues, retrieving repository information, listing issues, and searching repositories.
    Last updated -
    TypeScript
  • -
    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

View all related MCP servers

ID: 65lsnlhpgv