github

github

4.3

MCP Server for the GitHub API, enabling file operations, repository management, search functionality, and more.

create_or_update_file

Create or update a single file in a GitHub repository

Try it

Repository owner (username or organization)

    Repository name

      Path where to create/update the file

        Content of the file

          Commit message

            Branch to create/update the file in

              SHA of the file being replaced (required when updating existing files)

                  Result:

                  search_repositories

                  Search for GitHub repositories

                  Try it

                  Search query (see GitHub search syntax)

                    Page number for pagination (default: 1)

                      Number of results per page (default: 30, max: 100)

                          Result:

                          create_repository

                          Create a new GitHub repository in your account

                          Try it

                          Repository name

                            Repository description

                              Whether the repository should be private

                              Whether the repository should be private

                                Initialize with README.md

                                Initialize with README.md

                                    Result:

                                    get_file_contents

                                    Get the contents of a file or directory from a GitHub repository

                                    Try it

                                    Repository owner (username or organization)

                                      Repository name

                                        Path to the file or directory

                                          Branch to get contents from

                                              Result:

                                              push_files

                                              Push multiple files to a GitHub repository in a single commit

                                              Try it

                                              Repository owner (username or organization)

                                                Repository name

                                                  Branch to push to (e.g., 'main' or 'master')

                                                    Array of files to push

                                                    files

                                                    Array of files to push

                                                    No items yet. Use the button below to add some.

                                                      Commit message

                                                          Result:

                                                          create_issue

                                                          Create a new issue in a GitHub repository

                                                          Try it

                                                                  assignees

                                                                  No items yet. Use the button below to add some.

                                                                      labels

                                                                      No items yet. Use the button below to add some.

                                                                          Result:

                                                                          create_pull_request

                                                                          Create a new pull request in a GitHub repository

                                                                          Try it

                                                                          Repository owner (username or organization)

                                                                            Repository name

                                                                              Pull request title

                                                                                Pull request body/description

                                                                                  The name of the branch where your changes are implemented

                                                                                    The name of the branch you want the changes pulled into

                                                                                      Whether to create the pull request as a draft

                                                                                      Whether to create the pull request as a draft

                                                                                        Whether maintainers can modify the pull request

                                                                                        Whether maintainers can modify the pull request

                                                                                            Result:

                                                                                            fork_repository

                                                                                            Fork a GitHub repository to your account or specified organization

                                                                                            Try it

                                                                                            Repository owner (username or organization)

                                                                                              Repository name

                                                                                                Optional: organization to fork to (defaults to your personal account)

                                                                                                    Result:

                                                                                                    create_branch

                                                                                                    Create a new branch in a GitHub repository

                                                                                                    Try it

                                                                                                    Repository owner (username or organization)

                                                                                                      Repository name

                                                                                                        Name for the new branch

                                                                                                          Optional: source branch to create from (defaults to the repository's default branch)

                                                                                                              Result:

                                                                                                              list_commits

                                                                                                              Get list of commits of a branch in a GitHub repository

                                                                                                              Try it

                                                                                                                          Result:

                                                                                                                          list_issues

                                                                                                                          List issues in a GitHub repository with filtering options

                                                                                                                          Try it

                                                                                                                                labels

                                                                                                                                No items yet. Use the button below to add some.

                                                                                                                                              Result:

                                                                                                                                              update_issue

                                                                                                                                              Update an existing issue in a GitHub repository

                                                                                                                                              Try it

                                                                                                                                                        assignees

                                                                                                                                                        No items yet. Use the button below to add some.

                                                                                                                                                            labels

                                                                                                                                                            No items yet. Use the button below to add some.

                                                                                                                                                                  Result:

                                                                                                                                                                  add_issue_comment

                                                                                                                                                                  Add a comment to an existing issue

                                                                                                                                                                  Try it

                                                                                                                                                                            Result:

                                                                                                                                                                            search_code

                                                                                                                                                                            Search for code across GitHub repositories

                                                                                                                                                                            Try it

                                                                                                                                                                                      Result:

                                                                                                                                                                                      search_issues

                                                                                                                                                                                      Search for issues and pull requests across GitHub repositories

                                                                                                                                                                                      Try it

                                                                                                                                                                                                  Result:

                                                                                                                                                                                                  search_users

                                                                                                                                                                                                  Search for users on GitHub

                                                                                                                                                                                                  Try it

                                                                                                                                                                                                              Result:

                                                                                                                                                                                                              get_issue

                                                                                                                                                                                                              Get details of a specific issue in a GitHub repository.

                                                                                                                                                                                                              Try it

                                                                                                                                                                                                                      Result:

                                                                                                                                                                                                                      get_pull_request

                                                                                                                                                                                                                      Get details of a specific pull request

                                                                                                                                                                                                                      Try it

                                                                                                                                                                                                                      Repository owner (username or organization)

                                                                                                                                                                                                                        Repository name

                                                                                                                                                                                                                          Pull request number

                                                                                                                                                                                                                              Result:

                                                                                                                                                                                                                              list_pull_requests

                                                                                                                                                                                                                              List and filter repository pull requests

                                                                                                                                                                                                                              Try it

                                                                                                                                                                                                                              Repository owner (username or organization)

                                                                                                                                                                                                                                Repository name

                                                                                                                                                                                                                                  State of the pull requests to return

                                                                                                                                                                                                                                    Filter by head user or head organization and branch name

                                                                                                                                                                                                                                      Filter by base branch name

                                                                                                                                                                                                                                        What to sort results by

                                                                                                                                                                                                                                          The direction of the sort

                                                                                                                                                                                                                                            Results per page (max 100)

                                                                                                                                                                                                                                              Page number of the results

                                                                                                                                                                                                                                                  Result:

                                                                                                                                                                                                                                                  create_pull_request_review

                                                                                                                                                                                                                                                  Create a review on a pull request

                                                                                                                                                                                                                                                  Try it

                                                                                                                                                                                                                                                  Repository owner (username or organization)

                                                                                                                                                                                                                                                    Repository name

                                                                                                                                                                                                                                                      Pull request number

                                                                                                                                                                                                                                                        The SHA of the commit that needs a review

                                                                                                                                                                                                                                                          The body text of the review

                                                                                                                                                                                                                                                            The review action to perform

                                                                                                                                                                                                                                                              Comments to post as part of the review (specify either position or line, not both)

                                                                                                                                                                                                                                                              comments

                                                                                                                                                                                                                                                              Comments to post as part of the review (specify either position or line, not both)

                                                                                                                                                                                                                                                              No items yet. Use the button below to add some.

                                                                                                                                                                                                                                                                  Result:

                                                                                                                                                                                                                                                                  merge_pull_request

                                                                                                                                                                                                                                                                  Merge a pull request

                                                                                                                                                                                                                                                                  Try it

                                                                                                                                                                                                                                                                  Repository owner (username or organization)

                                                                                                                                                                                                                                                                    Repository name

                                                                                                                                                                                                                                                                      Pull request number

                                                                                                                                                                                                                                                                        Title for the automatic commit message

                                                                                                                                                                                                                                                                          Extra detail to append to automatic commit message

                                                                                                                                                                                                                                                                            Merge method to use

                                                                                                                                                                                                                                                                                Result:

                                                                                                                                                                                                                                                                                get_pull_request_files

                                                                                                                                                                                                                                                                                Get the list of files changed in a pull request

                                                                                                                                                                                                                                                                                Try it

                                                                                                                                                                                                                                                                                Repository owner (username or organization)

                                                                                                                                                                                                                                                                                  Repository name

                                                                                                                                                                                                                                                                                    Pull request number

                                                                                                                                                                                                                                                                                        Result:

                                                                                                                                                                                                                                                                                        get_pull_request_status

                                                                                                                                                                                                                                                                                        Get the combined status of all status checks for a pull request

                                                                                                                                                                                                                                                                                        Try it

                                                                                                                                                                                                                                                                                        Repository owner (username or organization)

                                                                                                                                                                                                                                                                                          Repository name

                                                                                                                                                                                                                                                                                            Pull request number

                                                                                                                                                                                                                                                                                                Result:

                                                                                                                                                                                                                                                                                                update_pull_request_branch

                                                                                                                                                                                                                                                                                                Update a pull request branch with the latest changes from the base branch

                                                                                                                                                                                                                                                                                                Try it

                                                                                                                                                                                                                                                                                                Repository owner (username or organization)

                                                                                                                                                                                                                                                                                                  Repository name

                                                                                                                                                                                                                                                                                                    Pull request number

                                                                                                                                                                                                                                                                                                      The expected SHA of the pull request's HEAD ref

                                                                                                                                                                                                                                                                                                          Result:

                                                                                                                                                                                                                                                                                                          get_pull_request_comments

                                                                                                                                                                                                                                                                                                          Get the review comments on a pull request

                                                                                                                                                                                                                                                                                                          Try it

                                                                                                                                                                                                                                                                                                          Repository owner (username or organization)

                                                                                                                                                                                                                                                                                                            Repository name

                                                                                                                                                                                                                                                                                                              Pull request number

                                                                                                                                                                                                                                                                                                                  Result:

                                                                                                                                                                                                                                                                                                                  get_pull_request_reviews

                                                                                                                                                                                                                                                                                                                  Get the reviews on a pull request

                                                                                                                                                                                                                                                                                                                  Try it

                                                                                                                                                                                                                                                                                                                  Repository owner (username or organization)

                                                                                                                                                                                                                                                                                                                    Repository name

                                                                                                                                                                                                                                                                                                                      Pull request number

                                                                                                                                                                                                                                                                                                                          Result: