MCP.so
ログイン

GitHub MCP Server

@s2005

基本情報

カテゴリ

バージョン管理

ライセンス

MIT license

トランスポート

stdio

作者

s2005

GitHub MCP Server について

Standalone MCP server for GitHub API

GitHub MCP Server の設定

以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。

{
  "mcpServers": {
    "mcp-github-server-s2005": {
      "command": "docker",
      "args": [
        "build",
        "-t",
        "mcp/github",
        "-f",
        "Dockerfile",
        "."
      ]
    }
  }
}

GitHub MCP Server のツール

40

`owner` (string): Repository owner (username or organization)

File content and commit details

`owner` (string): Repository owner

Updated branch reference

`query` (string): Search query

Repository search results

`name` (string): Repository name

Created repository details

`owner` (string): Repository owner

File/directory contents

`owner` (string): Repository owner

Created issue details

`owner` (string): Repository owner

Created pull request details

`owner` (string): Repository owner

Forked repository details

`owner` (string): Repository owner

Created branch reference

`owner` (string): Repository owner

List of commits

`owner` (string): Repository owner

Github Issue object & details

`owner` (string): Repository owner

Pull request details including diff and review status

`owner` (string): Repository owner

Array of pull request details

`owner` (string): Repository owner

Created review details

`owner` (string): Repository owner

Merge result details

`owner` (string): Repository owner

Array of changed files with patch and status details

`owner` (string): Repository owner

Combined status check results and individual check details

`owner` (string): Repository owner

Success message when branch is updated

`owner` (string): Repository owner

Array of pull request review comments with details like the comment text, author, and location in the diff

`owner` (string): Repository owner

Array of pull request reviews with details like the review state (APPROVED, CHANGES_REQUESTED, etc.), reviewer, and review body

概要

What is GitHub MCP Server?

A Model Context Protocol server that provides direct access to the GitHub API, enabling file operations, repository management, search functionality, and more. It is designed for developers using MCP clients to automate GitHub workflows.

How to use GitHub MCP Server?

—

Key features of GitHub MCP Server

  • Automatic branch creation when creating or updating files
  • Comprehensive error handling with clear error messages
  • Preserves Git history without force pushing
  • Supports both single-file and multi-file operations
  • Advanced search for code, issues/PRs, and users

Use cases of GitHub MCP Server

  • Automate file creation and updates in repositories
  • Manage issues and pull requests programmatically
  • Search across code, issues, and users from an AI assistant
  • Fork and create repositories without manual interaction
  • Review and merge pull requests through natural language commands

よくある質問

1

What tools does GitHub MCP Server provide?

It offers over 25 tools covering file operations (create, update, push, get contents), repository management (create, fork, branch), issue/PR handling (create, update, list, comment, review, merge), and advanced search (code, issues, users).

2

Does it support batch operations?

Yes, the `push_files` tool allows pushing multiple files in a single commit, supporting batch operations.

3

Can I search for code, issues, and users?

Yes, dedicated search tools (`search_code`, `search_issues`, `search_users`) support GitHub’s search syntax with filters like language, repository, labels, and account type.

4

How is branch creation handled?

When creating or updating files or pushing changes, branches are automatically created if they do not already exist.

5

What is the limit on search results?

The `per_page` parameter for search tools has a maximum value of 100, and pagination is supported via the `page` parameter.

コメント

「バージョン管理」の他のコンテンツ