GitHub MCP Server

by jomejia23

214 downloads
Not rated
GitHub

About

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.

Details

Author
jomejia23
Downloads
214
Categories
Developer Tools

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

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name GitHub MCP Server
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

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.

create_or_update_file

Create or update a single file in a GitHub repository

search_repositories

Search for GitHub repositories

create_repository

Create a new GitHub repository in your account

get_file_contents

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

push_files

Push multiple files to a GitHub repository in a single commit

create_issue

Create a new issue in a GitHub repository

create_pull_request

Create a new pull request in a GitHub repository

fork_repository

Fork a GitHub repository to your account or specified organization

create_branch

Create a new branch in a GitHub repository

list_commits

Get list of commits of a branch in a GitHub repository

list_issues

List issues in a GitHub repository with filtering options

update_issue

Update an existing issue in a GitHub repository

add_issue_comment

Add a comment to an existing issue

search_code

Search for code across GitHub repositories

search_issues

Search for issues and pull requests across GitHub repositories

search_users

Search for users on GitHub

get_issue

Get details of a specific issue in a GitHub repository.

get_pull_request

Get details of a specific pull request

list_pull_requests

List and filter repository pull requests

create_pull_request_review

Create a review on a pull request

merge_pull_request

Merge a pull request

get_pull_request_files

Get the list of files changed in a pull request

get_pull_request_status

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

update_pull_request_branch

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

get_pull_request_comments

Get the review comments on a pull request

get_pull_request_reviews

Get the reviews on a pull request

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

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

McpServers

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

GitHub MCP Server

This repository demonstrates the implementation and usage of the Model Context Protocol (MCP) server for GitHub integration.

Overview

The GitHub MCP Server provides a standardized way to interact with GitHub's API using the Model Context Protocol. It enables seamless integration between AI models and GitHub repositories, allowing automated interactions with GitHub's features.

Features

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

Setup

1. Install the MCP GitHub server package:

npm install @modelcontextprotocol/server-github

2. Configure your GitHub Personal Access Token in environment variables:

export GITHUB_PERSONAL_ACCESS_TOKEN=your_token_here

Usage

Start the MCP GitHub server:

npx @modelcontextprotocol/server-github

Configuration

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

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.