GitHubMCP

GitHubMCP

29

The GitHub MCP Server allows AI systems to interact with GitHub repositories and manage various GitHub resources via MCP. It features advanced repository, issue, pull request, branch, commit, and content management capabilities.

GitHub MCP Server

This project is an implementation of a Model Context Protocol (MCP) server for accessing the GitHub API. It provides various tools for interacting with GitHub resources such as repositories, issues, pull requests, branches, commits, and repository content, aiming at enabling AI agents to perform these operations safely using MCP.

Features

  • Repository Management

    • List and get details of repositories
    • Search for repositories
  • Issue Management

    • List, get details, create issues, and add comments
    • Search for issues
  • Pull Request Management

    • List, get details, create comments, and merge pull requests
  • Branch Management

    • List and create new branches
  • Commit Management

    • Get details, list, and search commits
  • Content Management

    • Get, list, create, and update contents of files

Getting Started

  • Requires Java 17+, Maven 3.6+, Spring Boot 3.3.6, and a GitHub account
  • Environment variables: GITHUB_TOKEN, GITHUB_HOST, and GITHUB_REPOSITORY for authentication

Limitations

  • Requires GitHub personal access token
  • Subject to GitHub API rate limits

Enterprise GitHub Support

  • Supports both standard and enterprise GitHub instances through configuration.