github-mcp

oghenetejiriorukpegmail/github-mcp

3.1

If you are the rightful owner of github-mcp and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

A Model Context Protocol (MCP) server implementation for GitHub integration, providing tools for interacting with GitHub's API through the MCP protocol.

The GitHub MCP Server is designed to facilitate seamless integration with GitHub's API using the Model Context Protocol. It allows users to perform various operations such as creating repositories, pushing content, and retrieving user information. The server is built with TypeScript, ensuring type safety and robust error handling. It includes an automatic installation script to simplify setup, making it accessible for developers who need to interact with GitHub programmatically. The server requires Node.js and npm for installation and operation, and it leverages a GitHub Personal Access Token for authentication. This implementation is particularly useful for developers looking to automate GitHub tasks or integrate GitHub functionalities into their applications.

Features

  • Create GitHub repositories
  • Push content to repositories
  • Get user information
  • Proper error handling and TypeScript type safety
  • Automatic installation script

Usages

usage with windows

powershell
git clone https://github.com/oghenetejiriorukpegmail/github-mcp.git
.\install.ps1

manual installation

powershell
mkdir -p "$env:APPDATA\Roo-Code\MCP\github-mcp"
git clone https://github.com/oghenetejiriorukpegmail/github-mcp.git "$env:APPDATA\Roo-Code\MCP\github-mcp"
cd "$env:APPDATA\Roo-Code\MCP\github-mcp"
npm install
npm run build

mcp settings configuration

{
  "mcpServers": {
    "github": {
      "command": "node",
      "args": [
        "%APPDATA%\Roo-Code\MCP\github-mcp\build\index.js"
      ],
      "env": {
        "GITHUB_TOKEN": "your-github-token-here"
      },
      "disabled": false,
      "alwaysAllow": []
    }
  }
}

Tools

  1. get_user

    Get GitHub user information.

  2. create_repo

    Create a new GitHub repository.

  3. push_to_repo

    Push content to a GitHub repository.