GitHub MCP Server
GitHub MCP(モデルコンテキストプロトコル)サーバー
こんにちは!これは、 ClaudeなどのMCP 互換LLM が私の MCP サーバー、ひいては GitHub API と対話できるようにする、私の最初の GitHub MCP サーバーです。
要件
TypeScript(プログラミング言語)
Octokit(GitHubへのAPIリクエストを行うため)
モデルコンテキストプロトコルSDK
プロジェクトをローカルに設定する
リポジトリをクローンする
npm install実行する.env.exampleファイルで提供されているサンプルを参考にして.envファイルを追加します。TypeScriptファイルをJavascriptにビルドするには、
npx tscを実行します。最後にプロジェクトを実行するには、
node build/index.jsを実行します。
Related MCP server: GitHub MCP Server
テスト方法
MCP サーバーは 2 つの方法でテストできます。
MCP検査官
クロードデスクトップ
MCPインスペクターを使用したテスト
ターミナルで
npx @modelcontextprotocol/inspector node build/index.js実行するだけです。http://localhost:5173にアクセスします。
MCP インスペクターとテストが表示されるようになりました。
Claude Desktopを使用したテスト
ここからClaude Desktopをダウンロードしてインストールします
ファイル > 設定... > 開発者 > 設定の編集に移動します
claude_desktop_config.json ファイルの場所が開くはずです。
コード エディターでそのファイルを開き、次のコードを追加します。
{ "mcpServers": { "gh": { "command": "node", "args": ["absolute\\path\\to\\your\\index.js\\file"], "env": { "GITHUB_TOKEN": "your-github-personal-access-token" } } } }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 の「統合を選択」オプションのドロップダウンから適切なプロンプトを選択することもできます。
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 Servers
- FlicenseBqualityDmaintenanceAn 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.4
- AlicenseAqualityCmaintenancePython MCP server for GitHub operations, providing native tool integration with Claude Code and other MCP clients. It enables managing issues, pull requests, CI status, milestones, and batch operations via natural language.15MIT
- Alicense-qualityDmaintenanceA Model Context Protocol (MCP) server that enables AI assistants like Claude to interact with the GitHub API directly.168MIT
- Flicense-qualityDmaintenanceA working MCP server that connects to the real GitHub API, enabling users to manage repositories, issues, pull requests, and more through natural language in Claude Desktop.
Related MCP Connectors
An MCP server that gives your AI access to the source code and docs of all public github repos
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
Driflyte MCP server which lets AI assistants query topic-specific knowledge from web and GitHub.
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/alsonwangkhem/github-mcp-2'
If you have feedback or need assistance with the MCP directory API, please join our Discord server