github-mcp

github-mcp

2.2

The GitHub MCP Server is a Model Context Protocol server designed to facilitate integration with GitHub, allowing users to create repositories, push content, and retrieve user information using GitHub's API. The project emphasizes TypeScript type safety and includes an automatic installation script for ease of use.

GitHub MCP Server

A Model Context Protocol (MCP) server implementation for GitHub integration.

Features

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

Prerequisites

  • Node.js (v18 or higher)
  • npm (v8 or higher)
  • PowerShell (for Windows installation)
  • GitHub Personal Access Token with repo scope

Installation

Windows

  1. Clone this repository.
  2. Run the installation script.

Manual Installation

  1. Create the MCP directory.
  2. Clone the repository into that directory.
  3. Install dependencies.
  4. Build TypeScript code.
  5. Add server configuration to MCP settings file.

Available Tools

  • get_user: Get GitHub user information.
  • create_repo: Create a new GitHub repository.
  • push_to_repo: Push content to a GitHub repository.

Development and Contributing

  • Follow the steps to clone, install dependencies, make changes, build, test, and contribute.