MCP.so
Sign In

GitHub MCP Server

@jomejia23

About GitHub MCP Server

using git_hub_mcp_server

Config

Add this server to your MCP-compatible client using the configuration below.

{
  "mcpServers": {
    "github_mcp_server": {
      "command": "npx",
      "args": [
        "@modelcontextprotocol/server-github"
      ]
    }
  }
}

Tools

26

Create or update a single file in a GitHub repository

Search for GitHub repositories

Create a new GitHub repository in your account

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

Push multiple files to a GitHub repository in a single commit

Create a new issue in a GitHub repository

Create a new pull request in a GitHub repository

Fork a GitHub repository to your account or specified organization

Create a new branch in a GitHub repository

Get list of commits of a branch in a GitHub repository

List issues in a GitHub repository with filtering options

Update an existing issue in a GitHub repository

Add a comment to an existing issue

Search for code across GitHub repositories

Search for issues and pull requests across GitHub repositories

Search for users on GitHub

Get details of a specific issue in a GitHub repository.

Get details of a specific pull request

List and filter repository pull requests

Create a review on a pull request

Merge a pull request

Get the list of files changed in a pull request

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

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

Get the review comments on a pull request

Get the reviews on a pull request

Overview

What is GitHub MCP Server?

The GitHub MCP Server provides a standardized way to interact with GitHub's API using the Model Context Protocol (MCP), enabling automated interactions between AI models and GitHub repositories.

How to use GitHub MCP Server?

Install the package (npm install @modelcontextprotocol/server-github), set your GitHub Personal Access Token as the environment variable GITHUB_PERSONAL_ACCESS_TOKEN, then start the server with npx @modelcontextprotocol/server-github. Configuration can be done through the claude_desktop_config.json file.

Key features of GitHub MCP Server

  • GitHub API Integration
  • Authentication using Personal Access Tokens
  • Repository Management
  • Issue and Pull Request Handling
  • File Operations
  • Branch Management

Use cases of GitHub MCP Server

  • Automate issue tracking and triage across repositories.
  • Manage pull request reviews and merges programmatically.
  • Perform file read/write operations on repository files.
  • Create, list, and switch branches via AI models.

FAQ from GitHub MCP Server

How do I install the GitHub MCP Server?

Install the npm package: npm install @modelcontextprotocol/server-github.

How do I configure authentication?

Set your GitHub Personal Access Token as the environment variable GITHUB_PERSONAL_ACCESS_TOKEN.

How do I start the GitHub MCP Server?

Run the command npx @modelcontextprotocol/server-github.

Where can I configure the server settings?

The server can be configured through the claude_desktop_config.json file, which should include the necessary GitHub authentication tokens and server settings.

Frequently asked questions

How do I install the GitHub MCP Server?

Install the npm package: `npm install @modelcontextprotocol/server-github`.

How do I configure authentication?

Set your GitHub Personal Access Token as the environment variable `GITHUB_PERSONAL_ACCESS_TOKEN`.

How do I start the GitHub MCP Server?

Run the command `npx @modelcontextprotocol/server-github`.

Where can I configure the server settings?

The server can be configured through the `claude_desktop_config.json` file, which should include the necessary GitHub authentication tokens and server settings.

Comments

More Version Control MCP servers