GitHub MCP Server Plus
GitHub MCP サーバー プラス
GitHub API 用の MCP サーバー。ファイル操作、リポジトリ管理、検索機能などを有効にします。
特徴
自動ブランチ作成: ファイルを作成/更新したり変更をプッシュしたりするときに、ブランチが存在しない場合は自動的に作成されます。
包括的なエラー処理: 一般的な問題に対する明確なエラーメッセージ
Git 履歴の保存: 強制プッシュなしで適切な Git 履歴を維持する操作
バッチ操作: コンテンツまたはファイルパスを使用した単一ファイルと複数ファイルの操作の両方をサポート
高度な検索: コード、問題/PR、ユーザーの検索をサポート
ツール
create_or_update_fileリポジトリ内の単一のファイルを作成または更新する
入力:
owner(文字列): リポジトリの所有者(ユーザー名または組織)repo(文字列): リポジトリ名path(文字列): ファイルを作成/更新するパスcontent(文字列): ファイルの内容message(文字列): コミットメッセージbranch(文字列): ファイルを作成/更新するブランチsha(オプションの文字列): 置き換えられるファイルのSHA (更新用)
戻り値: ファイルの内容とコミットの詳細
push_files_content1回のコミットで直接コンテンツを含む複数のファイルをプッシュする
入力:
owner(文字列): リポジトリの所有者repo(文字列): リポジトリ名branch(文字列): プッシュ先のブランチfiles(配列): プッシュするファイル。pathとcontentがそれぞれ指定されます。message(文字列): コミットメッセージ
戻り値: 更新されたブランチ参照
push_files_from_path1回のコミットでファイルシステムパスから複数のファイルをプッシュする
入力:
owner(文字列): リポジトリの所有者repo(文字列): リポジトリ名branch(文字列): プッシュ先のブランチfiles(配列): プッシュするファイル。それぞれ以下の内容が含まれます。path(文字列): リポジトリ内のターゲットパスfilepath(文字列): 読み取り元のファイルシステムのパス
message(文字列): コミットメッセージ
戻り値: 更新されたブランチ参照
search_repositoriesGitHubリポジトリを検索する
入力:
query(文字列): 検索クエリpage(オプションの数値):ページ番号perPage(オプションの数値):1ページあたりの結果数(最大100件)
戻り値: リポジトリ検索結果
create_repository新しいGitHubリポジトリを作成する
入力:
name(文字列): リポジトリ名description(オプションの文字列): リポジトリの説明private(オプションのブール値): リポジトリを非公開にするかどうかautoInit(オプションのブール値): READMEで初期化する
戻り値: 作成されたリポジトリの詳細
get_file_contentsファイルまたはディレクトリの内容を取得する
入力:
owner(文字列): リポジトリの所有者repo(文字列): リポジトリ名path(文字列): ファイル/ディレクトリへのパスbranch(オプションの文字列):コンテンツを取得するブランチ
戻り値: ファイル/ディレクトリの内容
create_issue新しい問題を作成する
入力:
owner(文字列): リポジトリの所有者repo(文字列): リポジトリ名title(文字列): 問題のタイトルbody(オプションの文字列): 問題の説明assignees(オプションの文字列[]):割り当てるユーザー名labels(オプションの文字列[]):追加するラベルmilestone(オプションの番号):マイルストーン番号
返品: 作成された問題の詳細
create_pull_request新しいプルリクエストを作成する
入力:
owner(文字列): リポジトリの所有者repo(文字列): リポジトリ名title(文字列): PRのタイトルbody(オプションの文字列): PRの説明head(文字列): 変更を含むブランチbase(文字列): マージ先のブランチdraft(オプションのブール値): ドラフト PR として作成maintainer_can_modify(オプションのブール値): メンテナーによる編集を許可する
戻り値: 作成されたプルリクエストの詳細
fork_repositoryリポジトリをフォークする
入力:
owner(文字列): リポジトリの所有者repo(文字列): リポジトリ名organization(オプションの文字列):フォーク先の組織
戻り値: フォークされたリポジトリの詳細
create_branch
新しいブランチを作成する
入力:
owner(文字列): リポジトリの所有者repo(文字列): リポジトリ名branch(文字列): 新しいブランチの名前from_branch(オプションの文字列): ソースブランチ (デフォルトはリポジトリのデフォルト)
戻り値: 作成されたブランチ参照
list_issues
リポジトリの問題の一覧表示とフィルタリング
入力:
owner(文字列): リポジトリの所有者repo(文字列): リポジトリ名state(オプションの文字列):状態(「open」、「closed」、「all」)でフィルタリングlabels(オプションの文字列[]):ラベルでフィルタリングsort(オプションの文字列): ('created'、'updated'、'comments') で並べ替えdirection(オプションの文字列):並べ替えの方向('asc'、'desc')since(オプションの文字列): 日付でフィルタリング (ISO 8601 タイムスタンプ)page(オプションの数字): ページ番号per_page(オプションの数値):ページあたりの結果数
戻り値: 問題の詳細の配列
update_issue
既存の問題を更新する
入力:
owner(文字列): リポジトリの所有者repo(文字列): リポジトリ名issue_number(数値): 更新する問題番号title(オプションの文字列):新しいタイトルbody(オプションの文字列): 新しい説明state(オプションの文字列):新しい状態(「open」または「closed」)labels(オプションの文字列[]):新しいラベルassignees(オプションの文字列[]): 新しい担当者milestone(オプションの番号):新しいマイルストーン番号
返品: 問題の詳細を更新しました
add_issue_comment
問題にコメントを追加する
入力:
owner(文字列): リポジトリの所有者repo(文字列): リポジトリ名issue_number(数値): コメントする問題番号body(文字列): コメントテキスト
戻り値: 作成されたコメントの詳細
search_code
GitHubリポジトリ全体でコードを検索する
入力:
q(文字列): GitHubコード検索構文を使用した検索クエリsort(オプションの文字列): ソートフィールド ('indexed' のみ)order(オプションの文字列): ソート順 ('asc' または 'desc')per_page(オプションの数値):1ページあたりの結果数(最大100件)page(オプションの数字):ページ番号
戻り値: リポジトリコンテキストを含むコード検索結果
search_issues
問題とプルリクエストを検索する
入力:
q(文字列): GitHub の問題検索構文を使用した検索クエリsort(オプションの文字列): 並べ替えフィールド (コメント、反応、作成など)order(オプションの文字列): ソート順 ('asc' または 'desc')per_page(オプションの数値):1ページあたりの結果数(最大100件)page(オプションの数字):ページ番号
戻り値: 問題とプルリクエストの検索結果
search_users
GitHubユーザーを検索
入力:
q(文字列): GitHubユーザーの検索構文を使用した検索クエリsort(オプションの文字列): 並べ替えフィールド (フォロワー、リポジトリ、参加)order(オプションの文字列): ソート順 ('asc' または 'desc')per_page(オプションの数値):1ページあたりの結果数(最大100件)page(オプションの数字):ページ番号
返されるもの: ユーザー検索結果
list_commits
リポジトリ内のブランチのコミットを取得します
入力:
owner(文字列): リポジトリの所有者repo(文字列): リポジトリ名page(オプションの文字列):ページ番号per_page(オプションの文字列):ページあたりのレコード数sha(オプションの文字列): ブランチ名
戻り値: コミットのリスト
get_issue
リポジトリ内の問題の内容を取得します
入力:
owner(文字列): リポジトリの所有者repo(文字列): リポジトリ名issue_number(数値): 取得する問題番号
戻り値: GitHub Issueオブジェクトと詳細
get_pull_request
特定のプルリクエストの詳細を取得する
入力:
owner(文字列): リポジトリの所有者repo(文字列): リポジトリ名pull_number(数値): プルリクエスト番号
戻り値: 差分とレビューステータスを含むプルリクエストの詳細
list_pull_requests
リポジトリのプルリクエストの一覧表示とフィルタリング
入力:
owner(文字列): リポジトリの所有者repo(文字列): リポジトリ名state(オプションの文字列):状態(「open」、「closed」、「all」)でフィルタリングhead(オプションの文字列): ヘッドユーザー/組織とブランチでフィルタリングbase(オプションの文字列): ベースブランチでフィルタリングsort(オプションの文字列): ('created'、'updated'、'popularity'、'long-running') で並べ替えdirection(オプションの文字列):並べ替えの方向('asc'、'desc')per_page(オプションの数値):1ページあたりの結果数(最大100件)page(オプションの数字):ページ番号
戻り値: プルリクエストの詳細の配列
create_pull_request_review
プルリクエストのレビューを作成する
入力:
owner(文字列): リポジトリの所有者repo(文字列): リポジトリ名pull_number(数値): プルリクエスト番号body(文字列): レビューコメントのテキストevent(文字列):レビューアクション('APPROVE'、'REQUEST_CHANGES'、'COMMENT')commit_id(オプションの文字列): レビューするコミットのSHAcomments(オプションの配列): 行固有のコメント。それぞれ次の内容が含まれます。path(文字列): ファイルパスposition(数値):diff内の行位置body(文字列): コメントテキスト
返品: 作成されたレビューの詳細
merge_pull_request
プルリクエストをマージする
入力:
owner(文字列): リポジトリの所有者repo(文字列): リポジトリ名pull_number(数値): プルリクエスト番号commit_title(オプションの文字列): マージコミットのタイトルcommit_message(オプションの文字列):マージコミットの詳細merge_method(オプションの文字列): マージ方法 ('merge'、'squash'、'rebase')
戻り値: マージ結果の詳細
get_pull_request_files
プルリクエストで変更されたファイルのリストを取得する
入力:
owner(文字列): リポジトリの所有者repo(文字列): リポジトリ名pull_number(数値): プルリクエスト番号
戻り値: パッチとステータスの詳細を含む変更されたファイルの配列
get_pull_request_status
プルリクエストのすべてのステータスチェックを組み合わせたステータスを取得します
入力:
owner(文字列): リポジトリの所有者repo(文字列): リポジトリ名pull_number(数値): プルリクエスト番号
戻り値: ステータスチェックの結果と個々のチェックの詳細を組み合わせたもの
update_pull_request_branch
ベースブランチからの最新の変更でプルリクエストブランチを更新する
入力:
owner(文字列): リポジトリの所有者repo(文字列): リポジトリ名pull_number(数値): プルリクエスト番号expected_head_sha(オプションの文字列): プルリクエストのHEAD参照の予想されるSHA
戻り値: ブランチが更新されたときの成功メッセージ
get_pull_request_comments
プルリクエストのレビューコメントを取得する
入力:
owner(文字列): リポジトリの所有者repo(文字列): リポジトリ名pull_number(数値): プルリクエスト番号
戻り値: プルリクエストのレビューコメントの配列
get_pull_request_reviews
プルリクエストのレビューを取得する
入力:
owner(文字列): リポジトリの所有者repo(文字列): リポジトリ名pull_number(数値): プルリクエスト番号
戻り値: プルリクエストレビューの配列
Related MCP server: mcp-github
検索クエリ構文
コード検索
language:javascript: プログラミング言語で検索repo:owner/name: 特定のリポジトリを検索path:app/src: 特定のパスで検索extension:js: ファイル拡張子で検索例:
q: "import express" language:typescript path:src/
問題検索
is:issueまたはis:pr: タイプでフィルタリングis:openまたはis:closed: 状態でフィルタリングlabel:bug: ラベルで検索author:username:著者で検索例:
q: "memory leak" is:issue is:open label:bug
ユーザー検索
type:userまたはtype:org: アカウントの種類でフィルタリングfollowers:>1000: フォロワー数でフィルタリングlocation:London: 場所で検索例:
q: "fullstack developer" location:London followers:>100
詳細な検索構文については、 GitHub の検索ドキュメントを参照してください。
設定
個人アクセストークン
適切な権限を持つGitHub 個人アクセス トークンを作成します。
個人アクセストークンに移動します(GitHubの設定>開発者設定)
このトークンでアクセスするリポジトリを選択します(パブリック、すべて、または選択)
repoスコープ(「プライベートリポジトリのフルコントロール」)を持つトークンを作成しますあるいは、パブリックリポジトリのみで作業する場合は、
public_repoスコープのみを選択します。
生成されたトークンをコピーする
Claude Desktopでの使用
Claude Desktop でこれを使用するには、 claude_desktop_config.jsonに以下を追加します。
ドッカー
{
"mcpServers": {
"github": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"GITHUB_PERSONAL_ACCESS_TOKEN",
"mcp/github"
],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "<YOUR_TOKEN>"
}
}
}
}NPX
{
"mcpServers": {
"github": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-github"
],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "<YOUR_TOKEN>"
}
}
}
}建てる
Dockerビルド:
docker build -t mcp/github -f src/github/Dockerfile .ライセンス
このMCPサーバーはMITライセンスに基づいてライセンスされています。つまり、MITライセンスの条件に従って、ソフトウェアを自由に使用、改変、配布することができます。詳細については、プロジェクトリポジトリのLICENSEファイルをご覧ください。
Available Tools
18 toolsadd_issue_commentC
Add a comment to an existing issue
Inputs: owner (required), repo (required), issue_number (required), body (required).
create_branchC
Create a new branch in a GitHub repository
Inputs: owner (required), repo (required), branch (required), from_branch.
create_issueC
Create a new issue in a GitHub repository
Inputs: owner (required), repo (required), title (required), body, +3 more.
create_or_update_fileC
Create or update a single file in a GitHub repository
Inputs: owner (required), repo (required), path (required), content (required), +3 more.
create_pull_requestC
Create a new pull request in a GitHub repository
Inputs: owner (required), repo (required), title (required), head (required), +4 more.
create_repositoryC
Create a new GitHub repository in your account
Inputs: name (required), description, private, autoInit.
fork_repositoryC
Fork a GitHub repository to your account or specified organization
Inputs: owner (required), repo (required), organization.
get_file_contentsC
Get the contents of a file or directory from a GitHub repository
Inputs: owner (required), repo (required), path (required), branch.
get_issueC
Get details of a specific issue in a GitHub repository.
Inputs: owner (required), repo (required), issue_number (required).
list_commitsC
Get list of commits of a branch in a GitHub repository
Inputs: owner (required), repo (required), sha, page, +1 more.
list_issuesC
List issues in a GitHub repository with filtering options
Inputs: owner (required), repo (required), direction, labels, +5 more.
push_files_contentA
Push multiple files with direct content to a GitHub repository in a single commit
Inputs: owner (required), repo (required), branch (required), files (required), +1 more.
push_files_from_pathA
Push multiple files from filesystem paths to a GitHub repository in a single commit
Inputs: owner (required), repo (required), branch (required), files (required), +1 more.
search_codeC
Search for code across GitHub repositories
Inputs: q (required), order, page, per_page.
search_issuesC
Search for issues and pull requests across GitHub repositories
Inputs: q (required), order, page, per_page, +1 more.
search_repositoriesC
Search for GitHub repositories
Inputs: query (required), page, perPage.
search_usersC
Search for users on GitHub
Inputs: q (required), order, page, per_page, +1 more.
update_issueC
Update an existing issue in a GitHub repository
Inputs: owner (required), repo (required), issue_number (required), title, +5 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 18 tools
Most tools have distinct purposes targeting specific GitHub resources and actions, but there is some overlap between push_files_content and push_files_from_path (both push multiple files, differing only in input source) and between list_issues and search_issues (both retrieve issues, differing in scope). Descriptions help clarify these distinctions, but agents might occasionally confuse them.
All tools follow a consistent verb_noun or verb_noun_preposition pattern (e.g., create_issue, get_file_contents, search_repositories), with no mixing of conventions like camelCase or snake_case variations. The naming is predictable and readable throughout the set.
With 18 tools, the count is slightly high but reasonable for a comprehensive GitHub server covering repositories, issues, files, search, and operations. It avoids being excessive (under 25) and each tool appears to serve a specific function, though some could be consolidated (e.g., the two push tools).
The tool set provides complete coverage for core GitHub workflows, including CRUD operations for repositories, issues, files, and branches, along with search across code, issues, repositories, and users. There are no obvious gaps; agents can perform end-to-end tasks like creating repos, managing issues, and pushing code without dead ends.
Related MCP Connectors
Create, deploy, and operate MCP servers directly from your GitHub repositories.
An MCP server that gives your AI access to the source code and docs of all public github repos
A MCP server built for developers enabling Git based project management with project and personal…
MCP server for OpenAI API (chat completions, image generation, embeddings) via AceDataCloud
Related MCP Servers
- -licenseNot gradedqualityBmaintenanceMCP Server for the GitHub API, enabling file operations, repository management, search functionality, and more.127,455 npm92,301MIT
- FlicenseNot gradedqualityDmaintenanceMCP server for the GitHub REST API that enables interaction with repositories, pull requests, issues, branches, commits, reviews, and code search, with configurable write and destructive operations.-
- FlicenseNot gradedqualityDmaintenanceStandalone MCP server for GitHub that enables repository management, branch operations, pull request handling, and commit retrieval via tools listed in the README.1-
- AlicenseBqualityDmaintenanceMCP (Model Context Protocol) server for GitHub API integration. This server provides comprehensive tools for interacting with GitHub repositories, issues, pull requests, branches, and code search through a unified interface.158 npmMIT